From 30aa75506c4d3f0fee15461902a9be4c5984bc4d Mon Sep 17 00:00:00 2001 From: Sam El-Husseini Date: Tue, 21 Jan 2020 14:08:27 -0800 Subject: [PATCH] Release tasks renames (#3620) * Revert package.json version * Rename some tasks * Added prerelease task --- gulpfile.js | 14 +------------- package.json | 5 +++-- 2 files changed, 4 insertions(+), 15 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 435e0b585..bf71f928c 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -912,18 +912,6 @@ gulp.task('package', gulp.parallel( 'package-dts' )); -// The release task prepares Blockly for an npm release. -// It rebuilds the Blockly compressed files and updates the TypeScript -// typings, and then packages all the npm release files into the /dist directory -gulp.task('release', gulp.series(['build', 'typings', function(cb) { - // Clean directory if exists - if (fs.existsSync(packageDistribution)) { - rimraf.sync(packageDistribution); - } - fs.mkdirSync(packageDistribution); - cb(); -}, 'package'])); - // The default task builds Blockly. gulp.task('default', gulp.series(['build'])); @@ -965,7 +953,7 @@ function getRCBranchName() { }; // Recompile and push to origin. -gulp.task('recompile', gulp.series([ +gulp.task('git-recompile', gulp.series([ 'git-sync-develop', function(done) { var branchName = getRebuildBranchName(); diff --git a/package.json b/package.json index d13276ff6..4710ed3ed 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "blockly", - "version": "3.20200123.0-develop", + "version": "3.20191014.0-develop", "description": "Blockly is a library for building visual programming editors.", "keywords": [ "blockly" @@ -32,7 +32,8 @@ "postversion": "gulp postversion", "prepare": "npm run package", "preversion": "gulp preversion", - "release": "gulp release", + "prerelease": "gulp git-recompile", + "release": "gulp git-create-rc", "test": "concurrently 'npm run test:prepare' 'sleep 5 && npm run test:run'", "test:prepare": "npm run test:setupselenium && npm run test:startselenium", "test:run": "tests/run_all_tests.sh",