now using npmts-g
This commit is contained in:
parent
d7bfaa75e1
commit
b3572d512d
8
dist/index.js
vendored
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
2
dist/npmci.command.d.ts
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
import "typings-global";
|
||||||
|
export declare let command: (commandArg: any) => any;
|
11
dist/npmci.command.js
vendored
Normal file
11
dist/npmci.command.js
vendored
Normal 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=
|
@ -20,7 +20,7 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://gitlab.com/pushrocks/npmci#README",
|
"homepage": "https://gitlab.com/pushrocks/npmci#README",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"npmts": "^5.3.0",
|
"npmts-g": "^5.2.6",
|
||||||
"should": "^9.0.1",
|
"should": "^9.0.1",
|
||||||
"typings-test": "^1.0.1"
|
"typings-test": "^1.0.1"
|
||||||
},
|
},
|
||||||
|
@ -6,6 +6,7 @@ let npmciInfo = new plugins.projectinfo.ProjectinfoNpm(paths.NpmciPackageRoot);
|
|||||||
plugins.beautylog.log("npmci version: " + npmciInfo.version);
|
plugins.beautylog.log("npmci version: " + npmciInfo.version);
|
||||||
|
|
||||||
import {build} from "./npmci.build"
|
import {build} from "./npmci.build"
|
||||||
|
import {command as command2} from "./npmci.command";
|
||||||
import {install} from "./npmci.install";
|
import {install} from "./npmci.install";
|
||||||
import {publish} from "./npmci.publish";
|
import {publish} from "./npmci.publish";
|
||||||
import {prepare} from "./npmci.prepare";
|
import {prepare} from "./npmci.prepare";
|
||||||
@ -19,7 +20,7 @@ export {install} from "./npmci.install";
|
|||||||
export {publish} from "./npmci.publish";
|
export {publish} from "./npmci.publish";
|
||||||
|
|
||||||
let command;
|
let command;
|
||||||
let commandOption;
|
let commandOption:string;
|
||||||
|
|
||||||
plugins.commander
|
plugins.commander
|
||||||
.arguments('<commandarg> [commandoptionarg]')
|
.arguments('<commandarg> [commandoptionarg]')
|
||||||
@ -40,6 +41,10 @@ switch (command){
|
|||||||
build(commandOption)
|
build(commandOption)
|
||||||
.then(NpmciEnv.configStore);
|
.then(NpmciEnv.configStore);
|
||||||
break;
|
break;
|
||||||
|
case "command":
|
||||||
|
command()
|
||||||
|
.then(NpmciEnv.configStore);
|
||||||
|
break;
|
||||||
case "install":
|
case "install":
|
||||||
install(commandOption)
|
install(commandOption)
|
||||||
.then(NpmciEnv.configStore);;
|
.then(NpmciEnv.configStore);;
|
||||||
@ -60,6 +65,8 @@ switch (command){
|
|||||||
trigger();
|
trigger();
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
plugins.beautylog.error("command " + commandOption.blue + " not recognised");
|
||||||
|
process.exit(1);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
10
ts/npmci.command.ts
Normal file
10
ts/npmci.command.ts
Normal 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
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user