compile
This commit is contained in:
parent
ff1a7398da
commit
db0010b3f3
6
dist/index.js
vendored
6
dist/index.js
vendored
@ -7,6 +7,7 @@ plugins.beautylog.info("npmci version: " + packJson.version);
|
||||
var npmci_install_1 = require("./npmci.install");
|
||||
var npmci_test_1 = require("./npmci.test");
|
||||
var npmci_publish_1 = require("./npmci.publish");
|
||||
var npmci_trigger_1 = require("./npmci.trigger");
|
||||
var command;
|
||||
var commandOption;
|
||||
plugins.commander
|
||||
@ -30,10 +31,11 @@ switch (command) {
|
||||
case "prepare":
|
||||
break;
|
||||
case "publish":
|
||||
npmci_publish_1.publish(commandOption);
|
||||
npmci_publish_1.publish(commandOption)
|
||||
.then(npmci_trigger_1.trigger);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQ0EsUUFBTyxnQkFBZ0IsQ0FBQyxDQUFBO0FBQ3hCLElBQVksT0FBTyxXQUFNLGlCQUFpQixDQUFDLENBQUE7QUFFM0MsSUFBSSxRQUFRLEdBQUcsT0FBTyxDQUFDLGlCQUFpQixDQUFDLENBQUM7QUFFMUMsT0FBTyxDQUFDLFNBQVMsQ0FBQyxJQUFJLENBQUMsaUJBQWlCLEdBQUcsUUFBUSxDQUFDLE9BQU8sQ0FBQyxDQUFDO0FBRTdELDhCQUFzQixpQkFBaUIsQ0FBQyxDQUFBO0FBQ3hDLDJCQUFtQixjQUFjLENBQUMsQ0FBQTtBQUNsQyw4QkFBc0IsaUJBQWlCLENBQUMsQ0FBQTtBQUd4QyxJQUFJLE9BQU8sQ0FBQztBQUNaLElBQUksYUFBYSxDQUFDO0FBRWxCLE9BQU8sQ0FBQyxTQUFTO0tBQ1osU0FBUyxDQUFDLGlDQUFpQyxDQUFDO0tBQzVDLE1BQU0sQ0FBQyxVQUFVLF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NvbW1hbmRPcHRpb24pXHJcbiAgICAgICAgICAgIC50aGVuKHRyaWdnZXIpO1xyXG4gICAgICAgIGJyZWFrO1xyXG4gICAgZGVmYXVsdDpcclxuICAgICAgICBicmVhaztcclxufVxyXG5cclxuIl19
|
||||
|
2
dist/npmci.trigger.d.ts
vendored
Normal file
2
dist/npmci.trigger.d.ts
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
import "typings-global";
|
||||
export declare let trigger: () => any;
|
19
dist/npmci.trigger.js
vendored
Normal file
19
dist/npmci.trigger.js
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
"use strict";
|
||||
require("typings-global");
|
||||
var plugins = require("./npmci.plugins");
|
||||
var npmci_bash_1 = require("./npmci.bash");
|
||||
exports.trigger = function () {
|
||||
var done = plugins.q.defer();
|
||||
plugins.beautylog.info("now running triggers");
|
||||
for (var i = 0; i < 100; i++) {
|
||||
var iteratorString = i.toString();
|
||||
if (process.env["TRIGGER" + iteratorString]) {
|
||||
plugins.beautylog.log("Found TRIGGER" + iteratorString);
|
||||
npmci_bash_1.bash("curl -X POST " + process.env["TRIGGER" + iteratorString]);
|
||||
}
|
||||
}
|
||||
done.resolve();
|
||||
return done.promise;
|
||||
};
|
||||
|
||||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5wbWNpLnRyaWdnZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLFFBQU8sZ0JBQWdCLENBQUMsQ0FBQTtBQUN4QixJQUFZLE9BQU8sV0FBTSxpQkFBaUIsQ0FBQyxDQUFBO0FBRTNDLDJCQUFtQixjQUFjLENBQUMsQ0FBQTtBQUV2QixlQUFPLEdBQUc7SUFDakIsSUFBSSxJQUFJLEdBQUcsT0FBTyxDQUFDLENBQUMsQ0FBQyxLQUFLLEVBQUUsQ0FBQztJQUM3QixPQUFPLENBQUMsU0FBUyxDQUFDLElBQUksQ0FBQyxzQkFBc0I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