Various optimisations to PackageInfo reading and bug fixes.

* PackageInfo objects are now cached because NimScript evaluation is expensive.
* before/after hooks now return `true` by default.
* Bugfix: when hooks weren't found Nimble would still think that a hook told it
  to skip an action.
* PackageInfo now includes info about which hooks are defined to prevent
  unnecessary execution of those hooks.
* Probably more.
This commit is contained in:
Dominik Picheta 2015-12-30 19:43:20 +00:00
commit 42ef358459
8 changed files with 47 additions and 20 deletions

View file

@ -12,13 +12,6 @@ srcDir = "src"
requires "nim >= 0.11.2"
before tasks:
echo("About to list tasks!")
return true
after tasks:
echo("Listed tasks!")
task tests, "Run the Nimble tester!":
withDir "tests":
exec "nim c -r tester"