-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
margrave.nimble
29 lines (23 loc) · 844 Bytes
/
margrave.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
version = "0.4.1"
author = "metagn"
description = "markdown dialect"
license = "MIT"
srcDir = "src"
# Dependencies
requires "nim >= 1.0.4"
when (NimMajor, NimMinor) >= (1, 4):
when (compiles do: import nimbleutils):
import nimbleutils
# https://github.com/metagn/nimbleutils
task tools, "builds tools, only browser converter for now":
exec "nim js -d:danger browser/converter"
task docs, "build docs for all modules":
when declared(buildDocs):
buildDocs(gitUrl = "https://github.com/metagn/margrave", extraOptions = "--path:src")
else:
echo "docs task not implemented, need nimbleutils"
task tests, "run tests for multiple backends":
when declared(runTests):
runTests(backends = {c, js, nims}, optionCombos = @[""])
else:
echo "tests task not implemented, need nimbleutils"