pliersjs / pliers

A build tool for node.js that supports sub-project building and watching
http://pliers.js.org/
18 stars 9 forks source link

Fix glob being run on every access to getter. #7

Closed bengourley closed 11 years ago

bengourley commented 11 years ago

It should only run on the first access.

serby commented 11 years ago

Thanks.

I'm intending to do some work to add an option to allow globing on each use and also to let filesets watch for changes and always be up to date with the files that match the pattern.

bengourley commented 11 years ago

I'm intending to do some work to add an option to allow globing on each use and also to let filesets watch for changes and always be up to date with the files that match the pattern.

Sounds good. Just ran into an instance where that would be handy – watched files, new file added but not picked up by successive access of pliers.filesets.myset.

serby commented 11 years ago

That is exactly the use-case that lead me to come up with the feature.