-
Notifications
You must be signed in to change notification settings - Fork 10
/
nimib.nimble
37 lines (30 loc) · 1.24 KB
/
nimib.nimble
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
37
# Package
version = "0.3.13"
author = "Pietro Peterlongo & Hugo Granström"
description = "nimib 🐳 - nim 👑 driven ⛵ publishing ✍"
license = "MIT"
srcDir = "src"
# Dependencies
requires "nim >= 1.4.0"
requires "fusion >= 1.2"
requires "markdown >= 0.8.1"
requires "mustache >= 0.2.1"
requires "parsetoml >= 0.7.0"
requires "jsony >= 1.1.5"
task docsdeps, "install dependendencies required for doc building":
exec "nimble -y install [email protected] [email protected] nimoji nimpy [email protected] [email protected]"
task test, "General tests":
for file in ["tsources.nim", "tblocks.nim", "tnimib.nim", "trenders.nim"]:
exec "nim r --hints:off tests/" & file
for file in ["tblocks.nim", "tnimib.nim", "trenders.nim"]:
exec "nim r --hints:off -d:nimibCodeFromAst tests/" & file
task readme, "update readme":
exec "nim -d:mdOutput r docsrc/index.nim"
task docs, "Build documentation":
for file in ["allblocks", "hello", "mostaccio", "numerical", "nolan",
"pythno", "cheatsheet", "files", "index",
"interactivity", "counters", "caesar"]:
exec "nim r --hints:off docsrc/" & file & ".nim"
when not defined(nimibDocsSkipPenguins):
exec "nim r --hints:off docsrc/penguins.nim"
exec "nimble readme"