Created
January 3, 2015 13:15
-
-
Save FGRibreau/0f6f0084bf7dc93968ce to your computer and use it in GitHub Desktop.
npm scripts and zsh extended globbing - http://blog.fgribreau.com/2015/01/npm-scripts-and-zsh-extended-globbing.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cat package.json | grep "test" | |
"test": "mocha -t 5000 -R spec **/*.test.js~node_modules/*", | |
$ npm test | |
> mocha -t 5000 -R spec **/*.test.js~node_modules/* | |
/www/statwarn-monitoring-api/node_modules/mocha/lib/utils.js:494 | |
if (!files.length) throw new Error("cannot resolve path (or pattern) '" | |
^ | |
Error: cannot resolve path (or pattern) '**/*.test.js~node_modules/*' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment