now using npmts-g

This commit is contained in:
2016-06-11 20:22:00 +02:00
parent d7bfaa75e1
commit b3572d512d
6 changed files with 39 additions and 3 deletions

View File

@ -6,6 +6,7 @@ let npmciInfo = new plugins.projectinfo.ProjectinfoNpm(paths.NpmciPackageRoot);
plugins.beautylog.log("npmci version: " + npmciInfo.version);
import {build} from "./npmci.build"
import {command as command2} from "./npmci.command";
import {install} from "./npmci.install";
import {publish} from "./npmci.publish";
import {prepare} from "./npmci.prepare";
@ -19,7 +20,7 @@ export {install} from "./npmci.install";
export {publish} from "./npmci.publish";
let command;
let commandOption;
let commandOption:string;
plugins.commander
.arguments('<commandarg> [commandoptionarg]')
@ -40,6 +41,10 @@ switch (command){
build(commandOption)
.then(NpmciEnv.configStore);
break;
case "command":
command()
.then(NpmciEnv.configStore);
break;
case "install":
install(commandOption)
.then(NpmciEnv.configStore);;
@ -60,6 +65,8 @@ switch (command){
trigger();
break;
default:
plugins.beautylog.error("command " + commandOption.blue + " not recognised");
process.exit(1);
break;
}

10
ts/npmci.command.ts Normal file
View File

@ -0,0 +1,10 @@
import "typings-global";
import * as plugins from "./npmci.plugins";
import {bash} from "./npmci.bash";
export let command = (commandArg) => {
let done = plugins.q.defer()
console.log(process.argv);
done.resolve();
return done.promise
}