-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy paththreecode.nimble
More file actions
36 lines (32 loc) · 1.58 KB
/
Copy paththreecode.nimble
File metadata and controls
36 lines (32 loc) · 1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
version = "0.5.0"
author = "Carlo Capocasa"
description = "The economical coding agent. It's so lean you can use it for free!"
license = "MIT"
srcDir = "src"
namedBin["threecode"] = "3code"
requires "nim >= 2.0.0"
requires "streamhttp >= 0.3.2"
requires "ttty >= 0.2.0"
requires "unicodedb >= 0.13.0"
requires "tinotify >= 0.1.1"
task test, "Run the test suite (parallel compile + run)":
# Overrides nimble's default sequential test runner, which recompiles the
# full src tree once per test file. tools/test.sh compiles all tests in
# parallel and builds the ./3code binary the spawn-based tests need.
# For filters/flags (e.g. a single test, -j N) call tools/test.sh directly.
exec "tools/test.sh"
task docs, "Build HTML manual from docs/manual.md":
# nim md2html regenerates nimdoc.out.css from nimdoc's built-in default
# (light theme + visible theme switcher). Our curated dark theme lives
# in 3code.css and wins by overwriting the generated file.
withDir "docs":
exec "nim md2html --docCmd:skip --outdir:. manual.md"
mvFile("manual.html", "index.html")
cpFile("3code.css", "nimdoc.out.css")
task devdocs, "Build developer HTML docs from source":
# nim doc regenerates nimdoc.out.css and dochack.js from its built-in
# defaults (light theme + no 3code header). Restore the curated dark CSS
# and re-append the 3code header block to dochack.js after generating.
exec "nim doc --project --outdir:docs/dev src/threecode.nim"
cpFile("docs/dev/3code.css", "docs/dev/nimdoc.out.css")
exec "cat docs/dev/3code-header.js >> docs/dev/dochack.js"