diff --git a/dist/cli.js b/dist/cli.js new file mode 100644 index 0000000..9ab44a7 --- /dev/null +++ b/dist/cli.js @@ -0,0 +1,2 @@ +#!/usr/bin/env node +var index = require("./index.js"); \ No newline at end of file diff --git a/dist/npmts.options.js b/dist/npmts.options.js index 678a02d..ecab691 100644 --- a/dist/npmts.options.js +++ b/dist/npmts.options.js @@ -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); } ; diff --git a/package.json b/package.json index 22363a1..4f58c91 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/ts/npmts.options.ts b/ts/npmts.options.ts index 6d22e43..546d63f 100644 --- a/ts/npmts.options.ts +++ b/ts/npmts.options.ts @@ -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); };