mirror of
https://github.com/google/blockly.git
synced 2025-12-13 04:40:09 +01:00
* chore: Add puppeteer-core as a dev dependency. * fix: Make mocha tests run in a fake-focused window. * fix: Make `test:mocha:interactive` use the same gulp codepath as `test`.
101 lines
2.2 KiB
JavaScript
101 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 */
|
|
|
|
// Needed to prevent prettier from munging exports order, due to
|
|
// https://github.com/simonhaenisch/prettier-plugin-organize-imports/issues/146
|
|
// - but has the unfortunate side effect of suppressing ordering of
|
|
// imports too:
|
|
//
|
|
// organize-imports-ignore
|
|
|
|
import {parallel} from 'gulp';
|
|
import {
|
|
deployDemos,
|
|
deployDemosBeta,
|
|
prepareDemos,
|
|
} from './scripts/gulpfiles/appengine_tasks.mjs';
|
|
import {
|
|
build,
|
|
buildAdvancedCompilationTest,
|
|
cleanBuildDir,
|
|
langfiles,
|
|
messages,
|
|
minify,
|
|
tsc,
|
|
} from './scripts/gulpfiles/build_tasks.mjs';
|
|
import {docs} from './scripts/gulpfiles/docs_tasks.mjs';
|
|
import {
|
|
createRC,
|
|
syncDevelop,
|
|
syncMaster,
|
|
updateGithubPages,
|
|
} from './scripts/gulpfiles/git_tasks.mjs';
|
|
import {cleanReleaseDir, pack} from './scripts/gulpfiles/package_tasks.mjs';
|
|
import {
|
|
publish,
|
|
publishBeta,
|
|
recompile,
|
|
} from './scripts/gulpfiles/release_tasks.mjs';
|
|
import {
|
|
generators,
|
|
interactiveMocha,
|
|
test,
|
|
} from './scripts/gulpfiles/test_tasks.mjs';
|
|
|
|
const clean = parallel(cleanBuildDir, cleanReleaseDir);
|
|
|
|
// Default target if gulp invoked without specifying.
|
|
export default build;
|
|
|
|
// Main sequence targets. They already invoke prerequisites. Listed
|
|
// in typical order of invocation, and strictly listing prerequisites
|
|
// before dependants.
|
|
//
|
|
// prettier-ignore
|
|
export {
|
|
langfiles,
|
|
tsc,
|
|
minify,
|
|
build,
|
|
pack, // Formerly package.
|
|
publishBeta,
|
|
publish,
|
|
prepareDemos,
|
|
deployDemosBeta,
|
|
deployDemos,
|
|
updateGithubPages as gitUpdateGithubPages,
|
|
}
|
|
|
|
// Manually-invokable targets that also invoke prerequisites where
|
|
// required.
|
|
//
|
|
// prettier-ignore
|
|
export {
|
|
messages, // Generate msg/json/en.json et al.
|
|
clean,
|
|
test,
|
|
generators as testGenerators,
|
|
interactiveMocha,
|
|
buildAdvancedCompilationTest,
|
|
createRC as gitCreateRC,
|
|
docs,
|
|
}
|
|
|
|
// Legacy targets, to be deleted.
|
|
//
|
|
// prettier-ignore
|
|
export {
|
|
recompile,
|
|
syncDevelop as gitSyncDevelop,
|
|
syncMaster as gitSyncMaster,
|
|
}
|