mirror of
https://github.com/google/blockly.git
synced 2026-01-07 09:00:11 +01:00
refactor(build): Delete Closure Library (#7415)
* fix(build): Restore erroneously-deleted filter function This was deleted in PR #7406 as it was mainly being used to filter core/ vs. test/mocha/ deps into separate deps files - but it turns out also to be used for filtering error messages too. Oops. * refactor(tests): Migrate advanced compilation test to ES Modules * refactor(build): Migrate main.js to TypeScript This turns out to be pretty straight forward, even if it would cause crashing if one actually tried to import this module instead of just feeding it to Closure Compiler. * chore(build): Remove goog.declareModuleId calls Replace goog.declareModuleId calls with a comment recording the former module ID for posterity (or at least until we decide how to reformat the renamings file. * chore(tests): Delete closure/goog/* For the moment we still need something to serve as base.js for the benefit of closure-make-deps, so we keep a vestigial base.js around, containing only the @provideGoog declaration. * refactor(build): Remove vestigial base.js By changing slightly the command line arguments to closure-make-deps and closure-calculate-chunks the need to have any base.js is eliminated. * chore: Typo fix for PR #7415
This commit is contained in:
committed by
GitHub
parent
be809d9d98
commit
b0a7c004a9
@@ -4,8 +4,7 @@
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
import * as goog from '../../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.utils.aria');
|
||||
// Former goog.module ID: Blockly.utils.aria
|
||||
|
||||
/** ARIA states/properties prefix. */
|
||||
const ARIA_PREFIX = 'aria-';
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
import * as goog from '../../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.utils.array');
|
||||
// Former goog.module ID: Blockly.utils.array
|
||||
|
||||
/**
|
||||
* Removes the first occurrence of a particular value from an array.
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
import * as goog from '../../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.utils.colour');
|
||||
// Former goog.module ID: Blockly.utils.colour
|
||||
|
||||
/**
|
||||
* The richness of block colours, regardless of the hue.
|
||||
|
||||
@@ -11,8 +11,7 @@
|
||||
*
|
||||
* @class
|
||||
*/
|
||||
import * as goog from '../../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.utils.Coordinate');
|
||||
// Former goog.module ID: Blockly.utils.Coordinate
|
||||
|
||||
/**
|
||||
* Class for representing coordinates and positions.
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
import * as goog from '../../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.utils.deprecation');
|
||||
// Former goog.module ID: Blockly.utils.deprecation
|
||||
|
||||
/**
|
||||
* Warn developers that a function or property is deprecated.
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
import * as goog from '../../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.utils.dom');
|
||||
// Former goog.module ID: Blockly.utils.dom
|
||||
|
||||
import * as deprecation from './deprecation.js';
|
||||
import type {Svg} from './svg.js';
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
import * as goog from '../../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.utils.idGenerator');
|
||||
// Former goog.module ID: Blockly.utils.idGenerator
|
||||
|
||||
/**
|
||||
* Legal characters for the universally unique IDs. Should be all on
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
import * as goog from '../../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.utils.KeyCodes');
|
||||
// Former goog.module ID: Blockly.utils.KeyCodes
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-duplicate-enum-values */
|
||||
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
import * as goog from '../../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.utils.math');
|
||||
// Former goog.module ID: Blockly.utils.math
|
||||
|
||||
/**
|
||||
* Converts degrees to radians.
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
import * as goog from '../../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.utils.Metrics');
|
||||
// Former goog.module ID: Blockly.utils.Metrics
|
||||
|
||||
export interface Metrics {
|
||||
/** Height of the visible portion of the workspace. */
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
import * as goog from '../../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.utils.object');
|
||||
// Former goog.module ID: Blockly.utils.object
|
||||
|
||||
/**
|
||||
* Complete a deep merge of all members of a source object with a target object.
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
import * as goog from '../../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.utils.parsing');
|
||||
// Former goog.module ID: Blockly.utils.parsing
|
||||
|
||||
import {Msg} from '../msg.js';
|
||||
|
||||
|
||||
@@ -11,8 +11,7 @@
|
||||
*
|
||||
* @class
|
||||
*/
|
||||
import * as goog from '../../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.utils.Rect');
|
||||
// Former goog.module ID: Blockly.utils.Rect
|
||||
|
||||
/**
|
||||
* Class for representing rectangular regions.
|
||||
|
||||
@@ -11,8 +11,7 @@
|
||||
*
|
||||
* @class
|
||||
*/
|
||||
import * as goog from '../../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.utils.Size');
|
||||
// Former goog.module ID: Blockly.utils.Size
|
||||
|
||||
/**
|
||||
* Class for representing sizes consisting of a width and height.
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
import * as goog from '../../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.utils.string');
|
||||
// Former goog.module ID: Blockly.utils.string
|
||||
|
||||
import * as deprecation from './deprecation.js';
|
||||
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
import * as goog from '../../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.utils.style');
|
||||
// Former goog.module ID: Blockly.utils.style
|
||||
|
||||
import {Coordinate} from './coordinate.js';
|
||||
import {Rect} from './rect.js';
|
||||
|
||||
@@ -10,8 +10,7 @@
|
||||
*
|
||||
* @class
|
||||
*/
|
||||
import * as goog from '../../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.utils.Svg');
|
||||
// Former goog.module ID: Blockly.utils.Svg
|
||||
|
||||
/**
|
||||
* A name with the type of the SVG element stored in the generic.
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
import * as goog from '../../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.utils.svgMath');
|
||||
// Former goog.module ID: Blockly.utils.svgMath
|
||||
|
||||
import type {WorkspaceSvg} from '../workspace_svg.js';
|
||||
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
import * as goog from '../../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.utils.svgPaths');
|
||||
// Former goog.module ID: Blockly.utils.svgPaths
|
||||
|
||||
/**
|
||||
* Create a string representing the given x, y pair. It does not matter whether
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
import * as goog from '../../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.utils.toolbox');
|
||||
// Former goog.module ID: Blockly.utils.toolbox
|
||||
|
||||
import type {ConnectionState} from '../serialization/blocks.js';
|
||||
import type {CssConfig as CategoryCssConfig} from '../toolbox/category.js';
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
import * as goog from '../../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.utils.userAgent');
|
||||
// Former goog.module ID: Blockly.utils.userAgent
|
||||
|
||||
/** The raw useragent string. */
|
||||
let rawUserAgent: string;
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
import * as goog from '../../closure/goog/goog.js';
|
||||
goog.declareModuleId('Blockly.utils.xml');
|
||||
// Former goog.module ID: Blockly.utils.xml
|
||||
|
||||
let domParser: DOMParser = {
|
||||
parseFromString: function () {
|
||||
|
||||
Reference in New Issue
Block a user