fix options
This commit is contained in:
parent
2edcb3947e
commit
0be87e2f45
2
dist/cli.js
vendored
Normal file
2
dist/cli.js
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
#!/usr/bin/env node
|
||||
var index = require("./index.js");
|
4
dist/npmts.options.js
vendored
4
dist/npmts.options.js
vendored
@ -23,6 +23,8 @@ exports.run = function (argvArg) {
|
||||
defaultSettings: defaultConfig,
|
||||
cwd: paths.cwd
|
||||
});
|
||||
// add argv
|
||||
config.argv = argvArg;
|
||||
// check mode
|
||||
switch (config.mode) {
|
||||
case "default":
|
||||
@ -31,7 +33,7 @@ exports.run = function (argvArg) {
|
||||
done.resolve(config);
|
||||
break;
|
||||
default:
|
||||
plugins.beautylog.error("mode " + config.mode + " not recognised!".red);
|
||||
plugins.beautylog.error("mode not recognised!");
|
||||
process.exit(1);
|
||||
}
|
||||
;
|
||||
|
@ -47,12 +47,12 @@
|
||||
"gulp-sourcemaps": "^1.6.0",
|
||||
"gulp-typedoc": "^2.0.0",
|
||||
"lodash": "^4.15.0",
|
||||
"npmextra": "^1.0.8",
|
||||
"npmextra": "^1.0.9",
|
||||
"projectinfo": "1.0.3",
|
||||
"q": "^1.4.1",
|
||||
"shelljs": "^0.7.3",
|
||||
"smartcli": "1.0.4",
|
||||
"smartcov": "0.0.9",
|
||||
"smartcov": "1.0.0",
|
||||
"smartenv": "1.2.5",
|
||||
"smartfile": "4.0.13",
|
||||
"smartpath": "3.2.2",
|
||||
|
@ -40,6 +40,9 @@ export var run = function(argvArg){
|
||||
cwd:paths.cwd
|
||||
});
|
||||
|
||||
// add argv
|
||||
config.argv = argvArg;
|
||||
|
||||
// check mode
|
||||
switch (config.mode){
|
||||
case "default":
|
||||
@ -48,7 +51,7 @@ export var run = function(argvArg){
|
||||
done.resolve(config);
|
||||
break;
|
||||
default:
|
||||
plugins.beautylog.error("mode " + config.mode + " not recognised!".red);
|
||||
plugins.beautylog.error(`mode not recognised!`);
|
||||
process.exit(1);
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user