-
-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathconfiglet.nimble
More file actions
27 lines (24 loc) · 807 Bytes
/
configlet.nimble
File metadata and controls
27 lines (24 loc) · 807 Bytes
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
proc getVersionStart: string =
# Returns the `major.minor.patch` version in the `configlet.version` file
# (that is, omitting any pre-release version information).
result = staticRead("configlet.version")
for i, c in result:
if c notin {'0'..'9', '.'}:
result.setLen(i)
return result
# Package
version = getVersionStart() # Must consist only of digits and '.'
author = "ee7"
description = "A tool for managing Exercism language track repositories"
license = "AGPL-3.0-only"
srcDir = "src"
bin = @["configlet"]
# Dependencies
requires "nim >= 2.2.4"
requires "jsony"
requires "parsetoml"
requires "supersnappy"
task test, "Runs the test suite":
if not fileExists("nimble.paths"):
exec "nimble setup"
exec "nim r ./tests/all_tests.nim"