JS-DevTools / globify

Run browserify and watchify with globs - even on Windows!
https://jstools.dev/globify/
MIT License
16 stars 6 forks source link

Exclude from glob #5

Closed franciscolourenco closed 8 years ago

franciscolourenco commented 8 years ago

Is there a way to exclude certain patterns, like for example the node_modules directory? Maybe something in the lines of what bash supports? **/*.coffee!(*node_modules*)

JamesMessinger commented 8 years ago

See the --exclude arg: https://github.com/BigstickCarpet/globify#usage

franciscolourenco commented 8 years ago

Ops sorry about that, and once again, thank you :+1:

franciscolourenco commented 8 years ago

It doesn't seem to be working though.

globify -t coffeeify '**/*.coffee' -u '*node_modules*' --debug --outfile '*.js' --watch -v

I get a very big list of watchify commands being executed. Is it merely passing the options to browserify?

JamesMessinger commented 8 years ago

*node_modules* will only exclude files with "node_modules" in the name. Use a globstar pattern, such as node_modules/** or **/node_modules/** to exclude everything beneath that folder

franciscolourenco commented 8 years ago

<3