Skip to content

Commit

Permalink
Fixed up broken --withTools (#111)
Browse files Browse the repository at this point in the history
* Added installDirs to load our commands

* Restructure file to fit with nimble binary guidelines

Co-authored-by: Ryan Cotter <[email protected]>
  • Loading branch information
Tangdongle and Ryan Cotter authored Oct 15, 2020
1 parent 1d7dfa9 commit 0351935
Show file tree
Hide file tree
Showing 7 changed files with 540 additions and 7 deletions.
File renamed without changes.
9 changes: 5 additions & 4 deletions inim.nimble
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.
2 changes: 1 addition & 1 deletion src/inimpkg/embedded.nim → inimpkg/embedded.nim
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
{.warning[UnusedImport]: off.}
import typetraits
when defined(withTools):
include src/inimpkg/commands
include inimpkg/commands
Loading

0 comments on commit 0351935

Please sign in to comment.