mirror of
https://github.com/google/blockly.git
synced 2026-01-04 15:40:08 +01:00
Release tasks renames (#3620)
* Revert package.json version * Rename some tasks * Added prerelease task
This commit is contained in:
14
gulpfile.js
14
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();
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user