-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
assigns.nimble
37 lines (31 loc) · 1012 Bytes
/
assigns.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.8.1"
author = "metagn"
description = "syntax sugar for assignments"
license = "MIT"
srcDir = "src"
# Dependencies
requires "nim >= 1.0.0"
when (NimMajor, NimMinor) >= (1, 4):
when (compiles do: import nimbleutils):
import nimbleutils
# https://github.com/metagn/nimbleutils
task docs, "build docs for all modules":
when declared(buildDocs):
buildDocs(gitUrl = "https://github.com/metagn/assigns", extraOptions = "--path:src")
else:
# old
const
gitUrl = "https://github.com/metagn/assigns"
gitCommit = "master"
gitDevel = "master"
for f in walkDirRec("src"):
exec "nim doc --git.url:" & gitUrl &
" --git.commit:" & gitCommit &
" --git.devel:" & gitDevel &
" --outdir:docs " & f
task tests, "run tests for multiple backends":
when declared(runTests):
runTests(backends = {c, js, nims}, optionCombos = @[""])
else:
echo "tests task not implemented, need nimbleutils"