Navigation Menu

Skip to content
This repository has been archived by the owner on Mar 1, 2019. It is now read-only.

Commit

Permalink
Fixes publish script, adds .publishrc file.
Browse files Browse the repository at this point in the history
* Fixes publish script, adds .publishrc file.
  • Loading branch information
Artem Ruts authored and andrewrota committed Apr 4, 2016
1 parent 9b0362e commit a72a041
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .publishrc
@@ -0,0 +1,5 @@
{
"checkUncommitted": false,
"checkUntracked": false,
"sensitiveDataAudit": true
}
7 changes: 4 additions & 3 deletions package.json
Expand Up @@ -12,7 +12,7 @@
"main": "./dist/tungsten.backbone.node.js",
"browser": "./dist/tungsten.backbone.web.js",
"scripts": {
"clean": "rm dist/*.js",
"clean": "rm -f dist/*.js",
"jasmine": "node test/jasmine.js",
"jasmine-debug": "node debug test/jasmine.js",
"pretest": "npm run eslint",
Expand All @@ -28,7 +28,8 @@
"cover": "node ./test/build.js --coverage && npm run jasmine",
"bump-tag": "node ./test/bump-tag.js",
"dist": "npm run clean && npm run build-plugins && npm run build-bb-dist && npm run build-bb-dist-dev && npm run build-bb-dist-node && npm run build-bb-dist-node-dev",
"release": "npm run bump-tag && npm run dist && publish-please"
"release": "npm run bump-tag && npm run dist && publish-please && npm run revert-package",
"revert-package": "git checkout -- package.json"
},
"dependencies": {
"babel-plugin-transform-es2015-arrow-functions": "^6.1.18",
Expand Down Expand Up @@ -84,4 +85,4 @@
"example": "./examples",
"lib": "./src"
}
}
}
7 changes: 5 additions & 2 deletions test/bump-tag.js
Expand Up @@ -39,7 +39,7 @@ var questions = [{
}, {
type: 'confirm',
name: 'toUseBump',
message: 'Do you want to use bump words =>',
message: 'Current version: ' + chalk.bold.green('v' + packageInfo.version) + '. Do you want to use bump words =>',
default: true,
when: function(answers) {
return answers.toAddNewTag;
Expand All @@ -63,7 +63,7 @@ var questions = [{
return answers.toAddNewTag && !answers.toUseBump;
},
filter: function(value) {
return 'v' + value;
return value[0] === 'v' ? value : 'v' + value;
},
// checks if entered version is valid and greater then version in package.json
validate: function(value) {
Expand All @@ -80,6 +80,9 @@ var questions = [{
type: 'input',
name: 'tagMessage',
message: 'Enter tag message =>',
validate: function(value) {
return value ? true : 'Please enter a new tag message!';
},
when: function(answers) {
return answers.toAddNewTag && (answers.bumpWord || answers.rawBump);
}
Expand Down

0 comments on commit a72a041

Please sign in to comment.