Skip to content

Commit

Permalink
Merge pull request #1896 from julescubtree/fix-build
Browse files Browse the repository at this point in the history
Fix build
  • Loading branch information
picklesrus committed Mar 15, 2019
2 parents bffe4fb + d0cb685 commit 2e5ea38
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
8 changes: 3 additions & 5 deletions blocks_vertical/procedures.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,12 @@
*/
'use strict';

goog.provide('Blockly.Blocks.procedures');
goog.provide('Blockly.ScratchBlocks.ProcedureUtils');

goog.require('Blockly.Blocks');
goog.require('Blockly.Colours');
goog.require('Blockly.constants');


// TODO: Create a namespace properly.
Blockly.ScratchBlocks.ProcedureUtils = {};
goog.require('Blockly.ScratchBlocks.VerticalExtensions');

// Serialization and deserialization.

Expand Down
5 changes: 5 additions & 0 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,10 @@ def gen_blocks(self, block_type):
elif block_type == "common":
target_filename = "blocks_compressed.js"
filenames = glob.glob(os.path.join("blocks_common", "*.js"))

# glob.glob ordering is platform-dependent and not necessary deterministic
filenames.sort() # Deterministic build.

# Define the parameters for the POST request.
params = [
("compilation_level", "SIMPLE"),
Expand All @@ -283,6 +287,7 @@ def gen_blocks(self, block_type):
# Add Blockly.Colours for use of centralized colour bank
filenames.append(os.path.join("core", "colours.js"))
filenames.append(os.path.join("core", "constants.js"))

for filename in filenames:
# Append filenames as false arguments the step before compiling will
# either transform them into arguments for local or remote compilation
Expand Down

0 comments on commit 2e5ea38

Please sign in to comment.