now using npmts-g

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

8
dist/index.js vendored

File diff suppressed because one or more lines are too long

2
dist/npmci.command.d.ts vendored Normal file
View File

@ -0,0 +1,2 @@
import "typings-global";
export declare let command: (commandArg: any) => any;

11
dist/npmci.command.js vendored Normal file
View File

@ -0,0 +1,11 @@
"use strict";
require("typings-global");
var plugins = require("./npmci.plugins");
exports.command = function (commandArg) {
var done = plugins.q.defer();
console.log(process.argv);
done.resolve();
return done.promise;
};
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5wbWNpLmNvbW1hbmQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLFFBQU8sZ0JBQWdCLENBQUMsQ0FBQTtBQUN4QixJQUFZLE9BQU8sV0FBTSxpQkFBaUIsQ0FBQyxDQUFBO0FBR2hDLGVBQU8sR0FBRyxVQUFDLFVBQVU7SUFDNUIsSUFBSSxJQUFJLEdBQUcsT0FBTyxDQUFDLENBQUMsQ0FBQyxLQUFLLEVBQUUsQ0FBQTtJQUM1QixPQUFPLENBQUMsR0FBRyxDQUFDLE9BQU8sQ0FBQyxJQUFJLENBQUMsQ0FBQztJQUMxQixJQUFJLENBQUMsT0FBTyxFQUFFLENBQUM7SUFDZixNQUFNLENBQUMsSUFBSSxDQUFDLE9BQU8sQ0FBQTtBQUN2QixDQUFDLENBQUEiLCJmaWxlIjoibnBtY2kuY29tbWFuZC5qcyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBcInR5cGluZ3MtZ2xvYmFsXCI7XG5pbXBvcnQgKiBhcyBwbHVnaW5zIGZyb20gXCIuL25wbWNpLnBsdWdpbnNcIjtcbmltcG9ydCB7YmFzaH0gZnJvbSBcIi4vbnBtY2kuYmFzaFwiO1xuXG5leHBvcnQgbGV0IGNvbW1hbmQgPSAoY29tbWFuZEFyZykgPT4ge1xuICAgIGxldCBkb25lID0gcGx1Z2lucy5xLmRlZmVyKClcbiAgICBjb25zb2xlLmxvZyhwcm9jZXNzLmFyZ3YpO1xuICAgIGRvbmUucmVzb2x2ZSgpO1xuICAgIHJldHVybiBkb25lLnByb21pc2Vcbn0iXX0=

View File

@ -20,7 +20,7 @@
},
"homepage": "https://gitlab.com/pushrocks/npmci#README",
"devDependencies": {
"npmts": "^5.3.0",
"npmts-g": "^5.2.6",
"should": "^9.0.1",
"typings-test": "^1.0.1"
},

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
}