-
Notifications
You must be signed in to change notification settings - Fork 0
/
falas.nimble
38 lines (27 loc) · 1.02 KB
/
falas.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
import ospaths
template thisModuleFile: string = instantiationInfo(fullPaths = true).filename
when fileExists(thisModuleFile.parentDir / "src/falas.nim"):
# In the git repository the Nimble sources are in a ``src`` directory.
import src/falaspkg/version as _
else:
# When the package is installed, the ``src`` directory disappears.
import falaspkg/version as _
# Package
version = falasVersion
author = "Brent Pedersen"
description = "fragment-aware local assembler for short reads"
license = "MIT"
# Dependencies
srcDir = "src"
installExt = @["nim"]
bin = @["falas"]
skipDirs = @["tests"]
import ospaths,strutils
task test, "run the tests":
exec "nim c --lineDir:on --debuginfo -r --threads:on tests/all"
task docs, "Builds documentation":
mkDir("docs"/"falas")
for file in listfiles("src/"):
if file.endswith("value.nim"): continue
if splitfile(file).ext == ".nim":
exec "nim doc2 --verbosity:0 --hints:off -o:" & "docs" /../ file.changefileext("html").split("/", 1)[1] & " " & file