javascript - Cannot use GLOB with JSHint in Windows? -


i'm doing poc of npm build tool (http://blog.keithcirkel.co.uk/how-to-use-npm-as-a-build-tool/). i'm new using npm. now, have jshint , mocha installed. packagae.json attached. now, when run "npm run lint" in command line (windows 7), gives me error:

c:\project>npm run list mynpmproject@1.0.0 lint c:\project jshint test/*.js 

error: can't open test/*.js

it works when change script "lint": "jshint test/test.js".

can use glob jshint?

please advise , thank in advanced.

you shouldn't need glob, give directory , scan js files in there.


Comments

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

gradle error "Cannot convert the provided notation to a File or URI" -

python - NameError: name 'subprocess' is not defined -