mirror of
https://github.com/google/blockly.git
synced 2026-01-15 04:47:10 +01:00
* Divide gulp targets into three kinds: main sequence, manually invokable, and script-only. The first two categories automatically invoke their prerequisites. * Give (most of) the affected gulp targets shorter and more memorable names that could become their npm script names in future.
64 lines
2.2 KiB
JavaScript
64 lines
2.2 KiB
JavaScript
/**
|
|
* @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.
|
|
*/
|
|
/* eslint-env node */
|
|
|
|
const gulp = require('gulp');
|
|
|
|
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');
|
|
|
|
module.exports = {
|
|
// Default target if gulp invoked without specifying.
|
|
default: buildTasks.build,
|
|
|
|
// Main sequence targets. They already invoke prerequisites.
|
|
cleanBuildDir: buildTasks.cleanBuildDir,
|
|
messages: buildTasks.messages,
|
|
tsc: buildTasks.tsc,
|
|
deps: buildTasks.deps,
|
|
minify: buildTasks.minify,
|
|
build: buildTasks.build,
|
|
|
|
// Manually-invokable targets that invoke prerequisites.
|
|
prepare: buildTasks.prepare,
|
|
format: buildTasks.format,
|
|
generate: buildTasks.generate,
|
|
clean: gulp.parallel(buildTasks.cleanBuildDir, packageTasks.cleanReleaseDir),
|
|
buildAdvancedCompilationTest: buildTasks.buildAdvancedCompilationTest,
|
|
|
|
// Targets intended only for invocation by scripts; may omit prerequisites.
|
|
onlyBuildAdvancedCompilationTest: buildTasks.onlyBuildAdvancedCompilationTest,
|
|
|
|
// Legacy target, to be deleted.
|
|
checkin: buildTasks.checkin,
|
|
|
|
// TBD.
|
|
deployDemos: appengineTasks.deployDemos,
|
|
deployDemosBeta: appengineTasks.deployDemosBeta,
|
|
cleanReleaseDir: packageTasks.cleanReleaseDir,
|
|
gitSyncDevelop: gitTasks.syncDevelop,
|
|
gitSyncMaster: gitTasks.syncMaster,
|
|
gitCreateRC: gitTasks.createRC,
|
|
gitUpdateGithubPages: gitTasks.updateGithubPages,
|
|
package: packageTasks.package,
|
|
checkLicenses: licenseTasks.checkLicenses,
|
|
recompile: releaseTasks.recompile,
|
|
prepareDemos: appengineTasks.prepareDemos,
|
|
publish: releaseTasks.publish,
|
|
publishBeta: releaseTasks.publishBeta,
|
|
sortRequires: cleanupTasks.sortRequires,
|
|
};
|