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:
parent
5d55a5f7a2
commit
42ef358459
8 changed files with 47 additions and 20 deletions
|
|
@ -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"
|
||||
Loading…
Add table
Add a link
Reference in a new issue