mirror of
https://github.com/google/blockly.git
synced 2026-01-17 13:57:13 +01:00
These modules (Blockly.blocks.all and Blockly.<Generator>.all) will
be the entry points for the corresponding chunks.
They also make it easier to pull in all the modules in each package
(e.g. for playground and tests).
It is necessary to set the Closure Compiler dependency_mode to
SORT_ONLY as otherwise it tries to compile the "all" modules before
their dependencies, which fails.
The only impact on the _compressed.js files is the addition of a short
string to the very end of each file, e.g.:
var module$exports$Blockly$JavaScript$all={};
24 lines
612 B
JavaScript
24 lines
612 B
JavaScript
/**
|
|
* @license
|
|
* Copyright 2021 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/**
|
|
* @fileoverview All the blocks. (Entry point for blocks_compressed.js.)
|
|
* @suppress {extraRequire}
|
|
*/
|
|
'use strict';
|
|
|
|
goog.module('Blockly.blocks.all');
|
|
|
|
goog.require('Blockly.blocks.colour');
|
|
goog.require('Blockly.blocks.lists');
|
|
goog.require('Blockly.blocks.logic');
|
|
goog.require('Blockly.blocks.loops');
|
|
goog.require('Blockly.blocks.math');
|
|
goog.require('Blockly.blocks.procedures');
|
|
goog.require('Blockly.blocks.texts');
|
|
goog.require('Blockly.blocks.variables');
|
|
goog.require('Blockly.blocks.variablesDynamic');
|