mirror of https://github.com/status-im/NimYAML.git
Added doc generation task to config.nims
This commit is contained in:
parent
238faf82ab
commit
24f9cf167f
|
@ -1,8 +1,9 @@
|
|||
nimcache
|
||||
nakefile
|
||||
test/tests
|
||||
test/parsing
|
||||
test/lexing
|
||||
test/*.exe
|
||||
test/*.pdb
|
||||
test/*.ilk
|
||||
yaml.html
|
||||
libyaml.*
|
||||
|
|
27
config.nims
27
config.nims
|
@ -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"
|
Loading…
Reference in New Issue