2021-09-18 14:29:06 +00:00
|
|
|
/**
|
|
|
|
* @license
|
|
|
|
* Copyright 2018 Google LLC
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @fileoverview Gulp script to build Blockly for Node & NPM.
|
|
|
|
* Run this script by calling "npm install" in this directory.
|
|
|
|
*/
|
2022-06-07 11:14:29 +00:00
|
|
|
/* eslint-env node */
|
2021-09-18 14:29:06 +00:00
|
|
|
|
2022-06-07 11:14:29 +00:00
|
|
|
const gulp = require('gulp');
|
2021-09-18 14:29:06 +00:00
|
|
|
|
2022-06-07 11:14:29 +00:00
|
|
|
const buildTasks = require('./scripts/gulpfiles/build_tasks');
|
|
|
|
const packageTasks = require('./scripts/gulpfiles/package_tasks');
|
|
|
|
const gitTasks = require('./scripts/gulpfiles/git_tasks');
|
|
|
|
const licenseTasks = require('./scripts/gulpfiles/license_tasks');
|
|
|
|
const appengineTasks = require('./scripts/gulpfiles/appengine_tasks');
|
|
|
|
const releaseTasks = require('./scripts/gulpfiles/release_tasks');
|
|
|
|
const cleanupTasks = require('./scripts/gulpfiles/cleanup_tasks');
|
2021-09-18 14:29:06 +00:00
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
deployDemos: appengineTasks.deployDemos,
|
2022-01-03 14:02:41 +00:00
|
|
|
deployDemosBeta: appengineTasks.deployDemosBeta,
|
2021-09-18 14:29:06 +00:00
|
|
|
default: buildTasks.build,
|
2022-01-03 14:02:41 +00:00
|
|
|
generateLangfiles: buildTasks.generateLangfiles,
|
2021-09-18 14:29:06 +00:00
|
|
|
build: buildTasks.build,
|
2022-01-03 14:02:41 +00:00
|
|
|
buildDeps: buildTasks.deps,
|
2021-09-18 14:29:06 +00:00
|
|
|
buildLangfiles: buildTasks.langfiles,
|
2022-01-03 14:02:41 +00:00
|
|
|
buildCompiled: buildTasks.compiled,
|
2021-09-18 14:29:06 +00:00
|
|
|
buildAdvancedCompilationTest: buildTasks.advancedCompilationTest,
|
2022-11-16 13:57:00 +00:00
|
|
|
buildJavaScript: buildTasks.javaScript,
|
|
|
|
buildJavaScriptAndDeps: buildTasks.javaScriptAndDeps,
|
2022-01-03 14:02:41 +00:00
|
|
|
checkin: gulp.parallel(buildTasks.checkinBuilt),
|
|
|
|
checkinBuilt: buildTasks.checkinBuilt,
|
|
|
|
clangFormat: buildTasks.format,
|
|
|
|
clean: gulp.parallel(buildTasks.cleanBuildDir, packageTasks.cleanReleaseDir),
|
|
|
|
cleanBuildDir: buildTasks.cleanBuildDir,
|
|
|
|
cleanReleaseDir: packageTasks.cleanReleaseDir,
|
2021-09-18 14:29:06 +00:00
|
|
|
gitSyncDevelop: gitTasks.syncDevelop,
|
|
|
|
gitSyncMaster: gitTasks.syncMaster,
|
|
|
|
gitCreateRC: gitTasks.createRC,
|
|
|
|
gitUpdateGithubPages: gitTasks.updateGithubPages,
|
|
|
|
package: packageTasks.package,
|
2022-11-16 13:57:00 +00:00
|
|
|
prepare: buildTasks.prepare,
|
2021-09-18 14:29:06 +00:00
|
|
|
checkLicenses: licenseTasks.checkLicenses,
|
|
|
|
recompile: releaseTasks.recompile,
|
2022-01-03 14:02:41 +00:00
|
|
|
prepareDemos: appengineTasks.prepareDemos,
|
2021-09-18 14:29:06 +00:00
|
|
|
publish: releaseTasks.publish,
|
|
|
|
publishBeta: releaseTasks.publishBeta,
|
|
|
|
sortRequires: cleanupTasks.sortRequires,
|
|
|
|
};
|