fix promisechain
This commit is contained in:
parent
e30dc5d77c
commit
043f6e8581
3
dist/npmts.promisechain.js
vendored
3
dist/npmts.promisechain.js
vendored
@ -13,6 +13,7 @@ var NpmtsOptions = require("./npmts.options");
|
|||||||
var NpmtsPublish = require("./npmts.publish");
|
var NpmtsPublish = require("./npmts.publish");
|
||||||
var NpmtsTests = require("./npmts.tests");
|
var NpmtsTests = require("./npmts.tests");
|
||||||
exports.promisechain = function () {
|
exports.promisechain = function () {
|
||||||
|
var done = plugins.Q.defer();
|
||||||
NpmtsConfigFile.run()
|
NpmtsConfigFile.run()
|
||||||
.then(NpmtsOptions.run)
|
.then(NpmtsOptions.run)
|
||||||
.then(NpmtsClean.run)
|
.then(NpmtsClean.run)
|
||||||
@ -45,5 +46,7 @@ exports.promisechain = function () {
|
|||||||
exports.npmtsOra.endOk("Tasks finished!");
|
exports.npmtsOra.endOk("Tasks finished!");
|
||||||
plugins.beautylog.success("Done!");
|
plugins.beautylog.success("Done!");
|
||||||
}
|
}
|
||||||
|
done.resolve();
|
||||||
});
|
});
|
||||||
|
return done.promise;
|
||||||
};
|
};
|
||||||
|
@ -14,7 +14,8 @@ import NpmtsOptions = require("./npmts.options");
|
|||||||
import NpmtsPublish = require("./npmts.publish");
|
import NpmtsPublish = require("./npmts.publish");
|
||||||
import NpmtsTests = require("./npmts.tests");
|
import NpmtsTests = require("./npmts.tests");
|
||||||
|
|
||||||
export var promisechain = function(){
|
export let promisechain = function(){
|
||||||
|
let done = plugins.Q.defer();
|
||||||
NpmtsConfigFile.run()
|
NpmtsConfigFile.run()
|
||||||
.then(NpmtsOptions.run)
|
.then(NpmtsOptions.run)
|
||||||
.then(NpmtsClean.run)
|
.then(NpmtsClean.run)
|
||||||
@ -46,6 +47,7 @@ export var promisechain = function(){
|
|||||||
npmtsOra.endOk("Tasks finished!");
|
npmtsOra.endOk("Tasks finished!");
|
||||||
plugins.beautylog.success("Done!")
|
plugins.beautylog.success("Done!")
|
||||||
}
|
}
|
||||||
|
done.resolve();
|
||||||
});
|
});
|
||||||
|
return done.promise;
|
||||||
};
|
};
|
Loading…
Reference in New Issue
Block a user