Commit Graph

11 Commits

Author SHA1 Message Date
Rachel Fenichel
39587c9497 Add screenshot test scripts and web pages 2019-07-22 14:22:49 -07:00
Imran S Shah
1f8ed8cda8 local_build: Add build for local_blocks_compressed.js (#2204)
* local_build.sh: Add generation of local_blocks_compressed.js

* Added comments to local_build.sh
2019-01-22 13:58:09 -08:00
BeksOmega
1c4ba38300 Added Max Instances Property to Workspace Options (#2130)
* Added Max Instances property to Blocks

* eslint cleanup

* eslint cleanup 2

* Moved maxInstances property from block to workspace (as a map of block type to max instances). isDuplicate() changed to correctly handle siblings/branches.

* eslint cleanup

* Changed checking types to map. Added hasBlockLimits. Fixed Nits.

* Added limit_instances test block. eslint fixes.

* fixup! Added limit_instances test block. eslint fixes.

* Changed sorting objects to a private static function of the workspace. Fixed nits. Undeleted .eslintrc

* Reverted .gitignore file.

* Added getBlockTypeCounts() to utils. Added isCapacityAvailable() to workspace. Changed clipboard to save typeCountsMap rather than object.
2018-11-27 16:34:21 -08:00
Andrew n marshall
2e8c29de45 Adding gulpfile to build Node.js compatible library. (#1847)
The gulp file is derived from work in PR #887, with numerous
refinements and clarifying comments.

Also updating the version number in package.json, including the
'develop' prerelease tag for the develop branch.
2018-05-11 15:19:47 -07:00
Rachel Fenichel
b5b7aeaf1b Create a script to do local builds of core Blockly. 2018-04-11 14:19:49 -07:00
Neil Fraser
82705923cb Convert compile demo into a unit test. (#1360)
* Intentionally break Travis.

* Alphabetize tests, remove orphaned test, and add fail to test that's running.

* Unbreak test, disable OS X, move scripts, list compiler directory.

* Test Java, break test.

* Unbreak test, call compile script.

* Compile main_compressed.js

* Run test command using bash.

* Fix path.

* Exclude node modules.

* Be more specific about JS files to compile.

* Test failure.

* Restore OSX, undo Blockly failure, remove compilation demo, add compilation test.

* Delete manual test files.

* Ignore downloaded/generated files.

* Whitespace cleanup.
2017-10-12 14:54:57 -07:00
Andrew n marshall
1956baa963 BlockFactory: Adding JSON/JavaScript import support (#1235)
Updates the BlockFactory main workspace based on the preview block generated from manual construction.

This is a continuation of PR #1216 by @JC-Orozco, rebased on latest develop branch. Bring it latest code up to Google styling and standards.
2017-08-17 12:40:58 -07:00
Dan LaLiberte
c1cfec8dbd Add lists_sort block. 2016-05-04 17:03:24 -04:00
Markus Bordihn
d1ff77824b Add basic lint options for npm
To use this linter, make sure npm is installed and execute the following
commands inside the main folder.

1.) Only once to update the package "npm install"
2.) To run the linter "npm run lint"

This would make it easier to clean up some of the code.
2015-08-03 20:34:07 +02:00
Neil Fraser
7122410373 Changing project location from Google Code to GitHub. 2014-09-08 15:18:02 -07:00
Neil Fraser
d1eb6f607b Adding new files for latest version. 2014-09-08 14:32:07 -07:00