-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added installDirs to load our commands * Restructure file to fit with nimble binary guidelines Co-authored-by: Ryan Cotter <[email protected]>
- Loading branch information
1 parent
1d7dfa9
commit 0351935
Showing
7 changed files
with
540 additions
and
7 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,25 @@ | ||
# Package | ||
|
||
skipDirs = @["tests"] | ||
version = "0.6.1" | ||
author = "Andrei Regiani" | ||
description = "Interactive Nim Shell / REPL / Playground" | ||
license = "MIT" | ||
srcDir = "src" | ||
installDirs = @["inimpkg"] | ||
installExt = @["nim"] | ||
bin = @["inim"] | ||
|
||
# Dependencies | ||
|
||
#requires "nim >= 1.0.0" # can we remove this to imply it should work with all versions? | ||
requires "cligen >= 1.2.0" | ||
|
||
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 src/inim.nim" | ||
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 src/inim.nim" | ||
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" |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.