* Moved package info reading procedures to a packageparser module. This is to prevent recu rsive dependencies between nimscriptsupport and packageinfo modules. * Passed the Options object to all procedures which read package info (necessary for nimscriptsupport module, to find the path of the nimscriptapi module) * Introduced an ``isInstalled`` field to the ``PackageInfo`` type. This is a bug fix for g etRealDir: it no longer uses the ``src`` field in the path it returns for installed packag es' PackageInfo objects. * Improved error reporting from NimScript evaluator. * Renamed compiler/options import to ``compiler_options`` in ``nimscriptsupport`` module. * Backward compatibility for .babel packages in getNameVersion proc. * Introduced a getInstalledPkgsMin procedure which does not read package info, but only pr ovides minimal info instead.
25 lines
No EOL
506 B
Nim
25 lines
No EOL
506 B
Nim
# Package
|
|
|
|
version = "0.1.0"
|
|
author = "Dominik Picheta"
|
|
description = "Test package"
|
|
license = "BSD"
|
|
|
|
bin = @["nimscript"]
|
|
|
|
# Dependencies
|
|
|
|
requires "nim >= 0.12.1"
|
|
|
|
task test, "test description":
|
|
echo(5+5)
|
|
|
|
task c_test, "Testing `setCommand \"c\", \"nimscript.nim\"`":
|
|
setCommand "c", "nimscript.nim"
|
|
|
|
task cr, "Testing `nimble c -r nimscript.nim` via setCommand":
|
|
--r
|
|
setCommand "c", "nimscript.nim"
|
|
|
|
task api, "Testing nimscriptapi module functionality":
|
|
echo(getPkgDir()) |