-
Notifications
You must be signed in to change notification settings - Fork 2
/
manu.nimble
35 lines (28 loc) · 962 Bytes
/
manu.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
# Package
packageName = "manu"
version = "2.3.1"
author = "Antonis Geralis"
description = "Nim Matrix library"
license = "MIT"
skipDirs = @["tests", "docs", "examples", "experiments"]
# Deps
requires "nim >= 1.5.0"
import os
const
ProjectUrl = "https://github.com/planetis-m/manu"
PkgDir = thisDir().quoteShell
DocsDir = PkgDir / "docs"
task docs, "Generate documentation":
# https://nim-lang.github.io/Nim/docgen.html
withDir(PkgDir):
let src = "manu.nim"
# Generate the docs for {src}
exec("nim doc --project --verbosity:0 --git.url:" & ProjectUrl &
" --git.devel:master --git.commit:master --out:" & DocsDir & " " & src)
mvFile(DocsDir / "theindex.html", DocsDir / "index.html")
# task test, "Run the tests":
# withDir(PkgDir):
# for f in listFiles("tests"):
# if f.endsWith(".nim"):
# echo "Running ", f, "..."
# exec("nim c -r --hints:off -w:off " & quoteShell(f))