mirror of
https://github.com/google/blockly.git
synced 2026-01-10 02:17:09 +01:00
* fix: package .ts sources * chore: add generating type defs * chore: copy generated type defs into dist dir * chore: fix adding generated def files * chore: remove unnecessary imports * chore: make handcrafted files reference generated * chore: replace AnyDuringMigration with any * chore: use replace instead of regex-replace * chore: use value in config instead of magic strings * chore: remove blockly.d.ts * chore: update jsdocs * chore: remove old references to typings
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.
|
|
*/
|
|
|
|
var 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';
|