Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
48a9d19b8e | |||
7d39683972 |
4
dist/npmts.options.js
vendored
4
dist/npmts.options.js
vendored
@ -27,7 +27,9 @@ exports.run = function (configArg) {
|
|||||||
}
|
}
|
||||||
// handle state of current build
|
// handle state of current build
|
||||||
exports.isRelease() ? plugins.beautylog.info("All right: This is a RELEASE build!")
|
exports.isRelease() ? plugins.beautylog.info("All right: This is a RELEASE build!")
|
||||||
: plugins.beautylog.info("NOT A RELEASE build! We are not publishing anything!");
|
: plugins.beautylog.info("NOT A RELEASE build!");
|
||||||
|
exports.isRelease() && exports.doPublish() ? plugins.beautylog.info("All right: This is the first subBuild, so this one publishes coverage and docs when tests succeed!")
|
||||||
|
: plugins.beautylog.info("We are not publishing anything!");
|
||||||
// handle coveralls
|
// handle coveralls
|
||||||
config.coveralls ? void (0) : config.coveralls = false;
|
config.coveralls ? void (0) : config.coveralls = false;
|
||||||
exports.doPublish() ? void (0) : config.coveralls = false;
|
exports.doPublish() ? void (0) : config.coveralls = false;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "npmts",
|
"name": "npmts",
|
||||||
"version": "3.6.2",
|
"version": "3.6.3",
|
||||||
"description": "write npm modules with TypeScript",
|
"description": "write npm modules with TypeScript",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"bin": {
|
"bin": {
|
||||||
|
@ -8,7 +8,7 @@ export let isRelease = function():boolean {
|
|||||||
|
|
||||||
export let doPublish = function():boolean {
|
export let doPublish = function():boolean {
|
||||||
return isRelease()
|
return isRelease()
|
||||||
&& plugins.smartci.get.subJobNumber() != 1;
|
&& plugins.smartci.get.subJobNumber() == 1;
|
||||||
};
|
};
|
||||||
|
|
||||||
export var run = function(configArg){
|
export var run = function(configArg){
|
||||||
@ -32,7 +32,9 @@ export var run = function(configArg){
|
|||||||
// handle state of current build
|
// handle state of current build
|
||||||
|
|
||||||
isRelease() ? plugins.beautylog.info("All right: This is a RELEASE build!")
|
isRelease() ? plugins.beautylog.info("All right: This is a RELEASE build!")
|
||||||
: plugins.beautylog.info("NOT A RELEASE build! We are not publishing anything!");
|
: plugins.beautylog.info("NOT A RELEASE build!");
|
||||||
|
isRelease() && doPublish() ? plugins.beautylog.info("All right: This is the first subBuild, so this one publishes coverage and docs when tests succeed!")
|
||||||
|
: plugins.beautylog.info("We are not publishing anything!");
|
||||||
|
|
||||||
// handle coveralls
|
// handle coveralls
|
||||||
config.coveralls ? void(0) : config.coveralls = false;
|
config.coveralls ? void(0) : config.coveralls = false;
|
||||||
|
Reference in New Issue
Block a user