-
Notifications
You must be signed in to change notification settings - Fork 6
/
nimsvg.nimble
31 lines (24 loc) · 948 Bytes
/
nimsvg.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
# Package
version = "0.2.0"
author = "Fabian Keller"
description = "Nim-based DSL allowing to generate SVG files and GIF animations."
license = "MIT"
# Dependencies
srcDir = "src"
requires "nim >= 1.2"
task test, "Runs unit tests":
exec "nim c -r -d:debugDsl -d:unittest tests/tester.nim"
task examples, "Runs examples":
exec "nim c -r examples/basic1.nim"
exec "nim c -r examples/basic2.nim"
exec "nim c -r examples/text1.nim"
exec "nim c -r examples/animation1.nim"
exec "nim c -r examples/spinner1.nim"
exec "nim c -r examples/spinner2.nim"
exec "nim c -r examples/spinner3.nim"
exec "nim c -r examples/dsl_demo.nim"
exec "nim c -r examples/timeline_ex1.nim"
exec "nim c -r examples/timeline_ex2.nim"
exec "nim c -r examples/embed_other_svgs.nim"
task docs, "Generates docs":
exec "nim doc2 --project --docSeeSrcUrl:https://github.com/bluenote10/NimSvg/blob/master -o:./docs/ src/nimsvg.nim"