Permalink
Browse files

Use build/versionInfo.js for npm just-publish

And bump the version beyond the one published to npm.

Review URL: https://api.github.com/repos/google/traceur-compiler/issues/2072

Closes #2072.
  • Loading branch information...
1 parent a55b8e6 commit b247d8aeb75fcba4326545c140a9dc43e8ac4a68 @johnjbarton johnjbarton committed Jan 29, 2016
Showing with 6 additions and 24 deletions.
  1. +0 −21 build/incrementSemver.js
  2. +3 −0 build/versionInfo.js
  3. +3 −3 package.json
@@ -1,21 +0,0 @@
-// Copyright 2014 Traceur Authors.
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-// semverIncrement:
-// update package.json to the semver number for the next PATCH level
-// (Similar to npm version)
-
-
-var printSemver = require('./printSemver.js');
-printSemver.incrementSemver();
@@ -68,7 +68,10 @@ if (process.argv[2] == '-v') {
printSemver();
} else if (process.argv[2] == '-m') {
printVersionModule();
+} else if (process.argv[2] == '-n') {
+ incrementSemver();
} else {
console.log('Usage: ' + process.argv[1] + ' -v // print semver');
console.log('Usage: ' + process.argv[1] + ' -m // print version module');
+ console.log('Usage: ' + process.argv[1] + ' -n // increment semver');
}
View
@@ -1,6 +1,6 @@
{
"name": "traceur",
- "version": "0.0.96",
+ "version": "0.0.101",
"description": "ES6 to ES5 compiler",
"keywords": [
"javascript",
@@ -40,7 +40,7 @@
"postjust-publish": "npm run push-published && npm run push-gh-pages",
"/** Update Version Number **/": "After publishing version N, update the version number and commit the result",
"store-semver": "node build/versionInfo.js -v > build/npm-version-number",
- "update-semver": "npm run store-semver && git diff --quiet -- package.json && node build/incrementSemver.js",
+ "update-semver": "npm run store-semver && git diff --quiet -- package.json && node build/versionInfo.js -n",
"precommit-published": "npm run update-semver && npm run rebuild",
"commit-published": "cat build/npm-version-number | xargs -I VERSION git commit -a -m \"VERSION\"",
"tag-published": "cat build/npm-version-number | xargs -I VERSION git tag -a VERSION -m \"Tagged version VERSION \"",
@@ -81,7 +81,7 @@
"regjsgen": "0.2.0",
"regjsparser": "0.1.5",
"requirejs": "2.x",
- "traceur": "0.0.95",
+ "traceur": "0.0.100",
"promises-aplus-tests": "2.x",
"webcomponents.js": "^0.5.4-1"
},

0 comments on commit b247d8a

Please sign in to comment.