Release tasks renames (#3620)

* Revert package.json version

* Rename some tasks

* Added prerelease task
This commit is contained in:
Sam El-Husseini
2020-01-21 14:08:27 -08:00
committed by GitHub
parent b87d23b976
commit 30aa75506c
2 changed files with 4 additions and 15 deletions

View File

@@ -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();

View File

@@ -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",