forked from inim-repl/INim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
inim.nimble
25 lines (20 loc) · 760 Bytes
/
inim.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
# Package
skipDirs = @["tests"]
version = "0.6.2"
author = "Andrei Regiani"
description = "Interactive Nim Shell / REPL / Playground"
license = "MIT"
installDirs = @["inimpkg"]
installExt = @["nim"]
bin = @["inim"]
# Dependencies
requires "cligen >= 1.5.22"
requires "noise >= 0.1.4"
task test, "Run all tests":
exec "mkdir -p bin"
exec "nim c -d:NoColor -d:prompt_no_history --out:bin/inim inim.nim"
exec "nim c -r -d:prompt_no_history tests/test.nim"
# Recompile with tty checks
exec "nim c -d:NoColor -d:NOTTYCHECK -d:prompt_no_history --out:bin/inim inim.nim"
exec "nim c -r -d:withTools -d:prompt_no_history tests/test_commands.nim"
exec "nim c -r -d:prompt_no_history tests/test_interface.nim"