Closed call-a3 closed 9 years ago
wow, this looks great, you should definitely be a maintainer, will test this out on our codebase and report back when I know more.
Important to note is that the API was changed, so requireGlob('some-pattern') will no longer work. Instead, refactor your codebase to use require('some-pattern', {glob:true}). Unless of course you prefer I make a change to make the new implementation be backwards compatible? I just figured require(.., {glob:true}) was cleaner...
works fine, merged
lets not worry about backwards compatibility- migrating to 1.0.0 is very easy(basically one fairly simple regexp search and replace) and I think this package does not have yet the userbase to justify lingering on old syntax. But hopefully with this update, we mark it 1.0.0 with confidence and release it into the wild.
Switched implementation from regex matching to a more syntactical-aware one, using the falafel tool available through browserify-transform-tools Also added the requested 'hash' feature. Adjusted version number according to semver because the API was adjusted in a non-backwards-compatible way.