Skip to content

Commit

Permalink
Simplified the npm run release script, removed version update of me…
Browse files Browse the repository at this point in the history
…teor files.
  • Loading branch information
dacarley committed Oct 24, 2017
1 parent b8bcd14 commit fb3bcae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
9 changes: 3 additions & 6 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,20 +122,17 @@ gulp.task('version', function () {
}

var version = lernaJSON.version;
var jsonPattern = /\"version\"\: \"[\.0-9\-a-z]*\"/;
var jsPattern = /version\: \'[\.0-9\-a-z]*\'/;
var meteorPattern = /ethereum:web3@[\.0-9\-a-z]*/;
var jsonPattern = /"version": "[.0-9\-a-z]*"/;
var jsPattern = /version: '[.0-9\-a-z]*'/;
var glob = [
'./package.json',
'./bower.json',
'./package.js',
'./.versions'
'./package.js'
];

gulp.src(glob, {base: './'})
.pipe(replace(jsonPattern, '"version": "' + version + '"'))
.pipe(replace(jsPattern, "version: '" + version + "'"))
.pipe(replace(meteorPattern, 'ethereum:web3@' + version))
.pipe(gulp.dest('./'));
});

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"postinstall": "lerna bootstrap",
"build": "gulp",
"build-all": "gulp all",
"release": "lerna bootstrap; lerna publish --yes --cd-version prerelease --exact --skip-npm --skip-git; gulp version; gulp; git checkout lerna.json; lerna publish --cd-version prerelease --exact --skip-git",
"release": "lerna bootstrap; lerna publish --exact --skip-git; gulp version; gulp",
"watch": "gulp watch",
"docs": "cd docs; make html;",
"lint": "jshint *.js packages",
Expand Down

0 comments on commit fb3bcae

Please sign in to comment.