75 lines
4.9 KiB
JavaScript
75 lines
4.9 KiB
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
const plugins = require("./npmci.plugins");
|
|
const paths = require("./npmci.paths");
|
|
let npmciInfo = new plugins.projectinfo.ProjectinfoNpm(paths.NpmciPackageRoot);
|
|
plugins.beautylog.log('npmci version: ' + npmciInfo.version);
|
|
const npmci_build_1 = require("./npmci.build");
|
|
const npmci_clean_1 = require("./npmci.clean");
|
|
const npmci_command_1 = require("./npmci.command");
|
|
const npmci_install_1 = require("./npmci.install");
|
|
const npmci_publish_1 = require("./npmci.publish");
|
|
const npmci_prepare_1 = require("./npmci.prepare");
|
|
const npmci_test_1 = require("./npmci.test");
|
|
const npmci_trigger_1 = require("./npmci.trigger");
|
|
const NpmciEnv = require("./npmci.env");
|
|
var npmci_build_2 = require("./npmci.build");
|
|
exports.build = npmci_build_2.build;
|
|
var npmci_install_2 = require("./npmci.install");
|
|
exports.install = npmci_install_2.install;
|
|
var npmci_publish_2 = require("./npmci.publish");
|
|
exports.publish = npmci_publish_2.publish;
|
|
let smartcli = new plugins.smartcli.Smartcli();
|
|
smartcli.addVersion(npmciInfo.version);
|
|
// build
|
|
smartcli.addCommand('build')
|
|
.then((argv) => {
|
|
npmci_build_1.build(argv._[1])
|
|
.then(NpmciEnv.configStore)
|
|
.catch(err => {
|
|
console.log(err);
|
|
});
|
|
});
|
|
// clean
|
|
smartcli.addCommand('clean')
|
|
.then((argv) => {
|
|
npmci_clean_1.clean()
|
|
.then(NpmciEnv.configStore);
|
|
});
|
|
// command
|
|
smartcli.addCommand('command')
|
|
.then((argv) => {
|
|
npmci_command_1.command()
|
|
.then(NpmciEnv.configStore);
|
|
});
|
|
// install
|
|
smartcli.addCommand('install')
|
|
.then((argv) => {
|
|
npmci_install_1.install(argv._[1])
|
|
.then(NpmciEnv.configStore);
|
|
});
|
|
// prepare
|
|
smartcli.addCommand('prepare')
|
|
.then((argv) => {
|
|
npmci_prepare_1.prepare(argv._[1])
|
|
.then(NpmciEnv.configStore);
|
|
});
|
|
// publish
|
|
smartcli.addCommand('publish')
|
|
.then((argv) => {
|
|
npmci_publish_1.publish(argv._[1])
|
|
.then(NpmciEnv.configStore);
|
|
});
|
|
// test
|
|
smartcli.addCommand('test')
|
|
.then((argv) => {
|
|
npmci_test_1.test(argv._[1])
|
|
.then(NpmciEnv.configStore);
|
|
});
|
|
// trigger
|
|
smartcli.addCommand('trigger')
|
|
.then((argv) => {
|
|
npmci_trigger_1.trigger();
|
|
});
|
|
smartcli.startParse();
|
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDJDQUEwQztBQUMxQyx1Q0FBc0M7QUFDdEMsSUFBSSxTQUFTLEdBQUcsSUFBSSxPQUFPLENBQUMsV0FBVyxDQUFDLGNBQWMsQ0FBQyxLQUFLLENBQUMsZ0JBQWdCLENBQUMsQ0FBQTtBQUM5RSxPQUFPLENBQUMsU0FBUyxDQUFDLEdBQUcsQ0FBQyxpQkFBaUIsR0FBRyxTQUFTLENBQUMsT0FBTyxDQUFDLENBQUE7QUFFNUQsK0NBQXFDO0FBQ3JDLCtDQUFxQztBQUNyQyxtREFBeUM7QUFDekMsbURBQXlDO0FBQ3pDLG1EQUF5QztBQUN6QyxtREFBeUM7QUFDekMsNkNBQW1DO0FBQ25DLG1EQUF5QztBQUN6Qyx3Q0FBdUM7QUFFdkMsNkNBQXFDO0FBQTVCLDhCQUFBLEtBQUssQ0FBQTtBQUNkLGlEQUEwQztBQUFqQyxrQ0FBQSxPQUFPLENBQUE7QUFDaEIsaURBQTBDO0FBQWpDLGtDQUFBLE9BQU8sQ0FBQTtBQUVoQixJQUFJLFFBQVEsR0FBRyxJQUFJLE9BQU8sQ0FBQyxRQUFRLENBQUMsU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