Added doc generation task to config.nims

This commit is contained in:
Felix Krause 2015-12-28 22:13:14 +01:00
parent 238faf82ab
commit 24f9cf167f
2 changed files with 21 additions and 9 deletions

3
.gitignore vendored
View File

@ -1,8 +1,9 @@
nimcache
nakefile
test/tests
test/parsing
test/lexing
test/*.exe
test/*.pdb
test/*.ilk
yaml.html
libyaml.*

View File

@ -1,15 +1,26 @@
task build, "Compile the YAML module into a library":
exec "nim c --app:lib -d:release yaml"
setCommand "nop"
--app:lib
--d:release
setCommand "c", "yaml"
task tests, "Run all tests":
exec "nim c -r --verbosity:0 test/tests"
setCommand "nop"
--r
--verbosity:0
setCommand "c", "test/tests"
task lexerTests, "Run lexer tests":
exec "nim c -r --verbosity:0 test/lexing"
setCommand "nop"
--r
--verbosity:0
setCommand "c", "test/lexing"
task parserTests, "Run parser tests":
exec "nim c --verbosity:0 -r test/parsing"
setCommand "nop"
--r
--verbosity:0
setCommand "c", "test/parsing"
task doc, "Generate documentation":
setCommand "doc2", "yaml"
task clean, "Remove all generated files":
exec "rm -f yaml.html libyaml.* test/tests test/parsing test/lexing"
setCommand "nop"