我正在做一个 NPM 的 PoC 作为构建工具(http://blog.keithcirkel.co.uk/how-to-use-npm-as-a-build-tool/)。我是使用 NPM 的新手。目前,我只安装了 JSHint 和 Mocha。我的 packagae.json 已附上。现在,当我在命令行(Windows 7)中运行“npm run lint”时,它给了我一个错误:
c:\project>npm run list
MyNPMProject@1.0.0 lint c:\project
jshint test/*.js
错误:无法打开 test/*.js
当我更改脚本“lint”时它起作用:“jshint test/test.js”。
我可以将 glob 与 jshint 一起使用吗?
请提前告知并感谢您。