因此,我有多种运行节点应用程序的方法:
用于 WebDriver 测试的生产和运行:
node app.js
发展
nodemon app.js
摩卡测试
istanbul cover node_modules/mocha/bin/_mocha -- -R spec
我想使用 Optimist / Minimist 模块来处理命令行选项,但是,有没有办法以我的应用程序一致处理的方式为所有上述命令提供这些参数?
因此,我有多种运行节点应用程序的方法:
用于 WebDriver 测试的生产和运行:
node app.js
发展
nodemon app.js
摩卡测试
istanbul cover node_modules/mocha/bin/_mocha -- -R spec
我想使用 Optimist / Minimist 模块来处理命令行选项,但是,有没有办法以我的应用程序一致处理的方式为所有上述命令提供这些参数?