mirror of
https://github.com/scratchfoundation/scratch-blocks.git
synced 2025-08-11 21:49:18 -04:00
Stripping old blocks code; moving blocks -> blocks_common, project-wide lint (#580)
* Remove unused Blockly blocks * Remove unused text Blockly blocks; convert to JSON * Move blocks/ -> blocks_common/ * Recompile for moved/removed blocks * Remove spectools * Project-wide lint * Recompile August 30 * Pin package.json
This commit is contained in:
parent
5c80a82a5f
commit
f1aac859e3
35 changed files with 245 additions and 3197 deletions
4
build.py
4
build.py
|
@ -29,7 +29,7 @@
|
|||
# cycle since there is no need to rebuild or recompile, just reload.
|
||||
#
|
||||
# This script also generates:
|
||||
# blocks_compressed.js: The compressed Blockly language blocks.
|
||||
# blocks_compressed.js: The compressed common blocks.
|
||||
# blocks_horizontal_compressed.js: The compressed Scratch horizontal blocks.
|
||||
# blocks_vertical_compressed.js: The compressed Scratch vertical blocks.
|
||||
# msg/js/<LANG>.js for every language <LANG> defined in msg/js/<LANG>.json.
|
||||
|
@ -222,7 +222,7 @@ class Gen_compressed(threading.Thread):
|
|||
filenames = glob.glob(os.path.join("blocks_vertical", "*.js"))
|
||||
elif block_type == "common":
|
||||
target_filename = "blocks_compressed.js"
|
||||
filenames = glob.glob(os.path.join("blocks", "*.js"))
|
||||
filenames = glob.glob(os.path.join("blocks_common", "*.js"))
|
||||
# Define the parameters for the POST request.
|
||||
params = [
|
||||
("compilation_level", "SIMPLE_OPTIMIZATIONS"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue