mirror of
https://github.com/google/blockly.git
synced 2026-01-12 03:17:09 +01:00
chore(build): Add "all" modules for blocks & generators
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={};
This commit is contained in:
25
generators/python/all.js
Normal file
25
generators/python/all.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2021 Google LLC
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* @fileoverview Complete helper functions for generating Python for
|
||||
* blocks. This is the entrypoint for python_compressed.js.
|
||||
* @suppress {extraRequire}
|
||||
*/
|
||||
'use strict';
|
||||
|
||||
goog.module('Blockly.Python.all');
|
||||
|
||||
goog.require('Blockly.Python.colour');
|
||||
goog.require('Blockly.Python.lists');
|
||||
goog.require('Blockly.Python.logic');
|
||||
goog.require('Blockly.Python.loops');
|
||||
goog.require('Blockly.Python.math');
|
||||
goog.require('Blockly.Python.procedures');
|
||||
goog.require('Blockly.Python.texts');
|
||||
goog.require('Blockly.Python.variables');
|
||||
goog.require('Blockly.Python.variablesDynamic');
|
||||
|
||||
Reference in New Issue
Block a user