mirror of
https://github.com/google/blockly.git
synced 2026-01-06 16:40:07 +01:00
* refactor(tests): Use shims instead of bootstrap to load Blockly
- Modify tests/generators/index.html to import the test shims
instead of using bootstrap.js to load Blockly.
- Modify test/generators/webdriver.js to have it wait for the
workspace to exist before calling loadSelected(). There was
previously a race which index.html had been winning, but
now webdriver.js is winning (and the tests failing because
there is no workspace yet when start() is called.
* chore(tests): Delete bootstrap.js etc.
- Delete bootstrap.js, bootstrap_helper.js, and bootstrap_done.mjs.
- Remove remaining references to bootstrap.js
* refactor(build): Remove deps npm script
buildDeps is now only needed by buildCompiled, not ever for
runnning in uncompressed mode, so:
- Remove the deps gulp task (and the deps npm script.
- Have the minify task run buildJavaScript and buildDeps directly.
Additionally, the buildAdvanceCompilationTest target hasn't
needed deps.js for some time (if ever), so skip having it run
buildDeps entirely.
* refactor(build): Repatriate DEPS_FILE to build_tasks.js
Since this is no longer used anywhere else it doesn't need to
live in common.js.
* fix(scripts): Remove vestigial references to deps.mocha.js
* docs(tests): Add additional explanatory note
39 lines
1.1 KiB
JavaScript
39 lines
1.1 KiB
JavaScript
/**
|
|
* @license
|
|
* Copyright 2021 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/**
|
|
* @fileoverview Common configuration for Gulp scripts.
|
|
*/
|
|
|
|
const path = require('path');
|
|
|
|
// Paths are all relative to the repository root. Do not include
|
|
// trailing slash.
|
|
//
|
|
// TODO(#5007): If you modify these values, you must also modify the
|
|
// corresponding values in the following files:
|
|
//
|
|
// - tests/scripts/compile_typings.sh
|
|
// - tests/scripts/check_metadata.sh
|
|
// - tests/scripts/update_metadata.sh
|
|
|
|
// Directory to write compiled output to.
|
|
exports.BUILD_DIR = 'build';
|
|
|
|
// Directory to write typings output to.
|
|
exports.TYPINGS_BUILD_DIR = path.join(exports.BUILD_DIR, 'declarations');
|
|
|
|
// Directory where typescript compiler output can be found.
|
|
// Matches the value in tsconfig.json: outDir
|
|
exports.TSC_OUTPUT_DIR = path.join(exports.BUILD_DIR, 'src');
|
|
|
|
// Directory for files generated by compiling test code.
|
|
exports.TEST_TSC_OUTPUT_DIR = path.join(exports.BUILD_DIR, 'tests');
|
|
|
|
// Directory in which to assemble (and from which to publish) the
|
|
// blockly npm package.
|
|
exports.RELEASE_DIR = 'dist';
|