72 lines
4.8 KiB
JavaScript
72 lines
4.8 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);
|
|
});
|
|
// 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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDJDQUEwQztBQUMxQyx1Q0FBc0M7QUFDdEMsSUFBSSxTQUFTLEdBQUcsSUFBSSxPQUFPLENBQUMsV0FBVyxDQUFDLGNBQWMsQ0FBQyxLQUFLLENBQUMsZ0JBQWdCLENBQUMsQ0FBQTtBQUM5RSxPQUFPLENBQUMsU0FBUyxDQUFDLEdBQUcsQ0FBQyxpQkFBaUIsR0FBRyxTQUFTLENBQUMsT0FBTyxDQUFDLENBQUE7QUFFNUQsK0NBQXFDO0FBQ3JDLCtDQUFxQztBQUNyQyxtREFBeUM7QUFDekMsbURBQXlDO0FBQ3pDLG1EQUF5QztBQUN6QyxtREFBeUM7QUFDekMsNkNBQW1DO0FBQ25DLG1EQUF5QztBQUN6Qyx3Q0FBdUM7QUFFdkMsNkNBQXFDO0FBQTVCLDhCQUFBLEtBQUssQ0FBQTtBQUNkLGlEQUEwQztBQUFqQyxrQ0FBQSxPQUFPLENBQUE7QUFDaEIsaURBQTBDO0FBQWpDLGtDQUFBLE9BQU8sQ0FBQTtBQUVoQixJQUFJLFFBQVEsR0FBRyxJQUFJLE9BQU8sQ0FBQyxRQUFRLENBQUMsUUFBUSxFQUFFLENBQUE7QUFDOUMsUUF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