mirror of
https://github.com/google/blockly.git
synced 2026-01-04 23:50:12 +01:00
* Add tsick.js to rewrite enums. tsc generates JavaScript which is incompatible with the Closure Compiler's advanced optimizations. * Remove unused 'outputCode' variable. * Rename 'run_X_in_browser.js' to 'webdriver.js' The Mocha and generator tests can both be run either manually or via our webdriver. In all cases they run in a browser. These two 'run_X_in_browser.js' files only apply to webdriver, thus they are confusingly named. Also delete completely unused (and broken) `run_all_tests.sh` * Linting improvements to mocha/webdriver.js Still not at 100%. Complains about require/module/process/__dirname not being defined in multiple places. * runTestBlock -> runTestFunction 'Block' means something very different in Blockly. * Removal of `var` from scripts. * Add webdriver test to verify compile test worked. * Resolve conficts with 'develop'. * Address PR comments.
44 lines
1.3 KiB
JavaScript
44 lines
1.3 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
|
|
// - tests/bootstrap.js (for location of deps.js)
|
|
// - tests/mocha/index.html (for location of deps.mocha.js)
|
|
|
|
// Directory to write compiled output to.
|
|
exports.BUILD_DIR = 'build';
|
|
|
|
// Dependencies file (used by bootstrap.js in uncompiled mode):
|
|
exports.DEPS_FILE = path.join(exports.BUILD_DIR, 'deps.js');
|
|
|
|
// Mocha test dependencies file (used by tests/mocha/index.html):
|
|
exports.TEST_DEPS_FILE = path.join(exports.BUILD_DIR, 'deps.mocha.js');
|
|
|
|
// 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 in which to assemble (and from which to publish) the
|
|
// blockly npm package.
|
|
exports.RELEASE_DIR = 'dist';
|