Update build.py to include colours in blocks_compressed

Fixes 
This commit is contained in:
Tim Mickel 2016-03-02 11:32:43 -05:00
parent 064c4fb117
commit 7268046f17

View file

@ -229,6 +229,8 @@ class Gen_compressed(threading.Thread):
# Add Blockly.Blocks to be compatible with the compiler.
params.append(("js_code", "goog.provide('Blockly.Blocks');"))
filenames = glob.glob(os.path.join("blocks", "*.js"))
# Add Blockly.Colours for use of centralized colour bank
filenames.append(os.path.join("core", "colours.js"))
for filename in filenames:
f = open(filename)
params.append(("js_code", "".join(f.readlines())))