Commit graph

10 commits

Author SHA1 Message Date
Ron de las Alas
c1451fd071 ci: run with python 3 2023-10-25 15:54:35 -04:00
Ron de las Alas
447cac13ec ci: install node dependencies 2023-10-25 15:53:29 -04:00
Michael "Z" Goddard
de3b84b0c7
chore(webpack): update to webpack 4 2018-05-07 13:44:30 -04:00
Chris Willis-Ford
f8cd9c9d51 Merge pull request from cwillisf/use-graceful-fs
Use graceful-fs to fix Webpack EMFILE errors
2017-10-02 18:41:15 -04:00
Ray Schamp
072dbae8e4 Add UMD target for use without "require"/"import" 2017-10-02 13:55:02 -04:00
Christopher Willis-Ford
1d9ff306fb Use graceful-fs to fix Webpack EMFILE errors
In some situations, for example on the Windows subsystem for Linux prior
to the 2017 Fall Creators Update, Webpack can overwhelm the lazy file
handle cleanup in Node.js and cause `EMFILE` errors. The `graceful-fs`
module handles this situation gracefully and allows Webpack to complete.
2017-09-26 11:02:12 -04:00
Ray Schamp
fb5e97d918 Build playgrounds for gh-pages
Sets up the necessary structure in the gh-pages directory to run the uncompressed playgrounds. Deploy the gh-pages directory to the gh-pages branch after publishing to NPM.
2016-12-24 13:17:24 -05:00
Ray Schamp
1ff45f5c77 Build separate vertical and horizontal modules
This allows separate imports for vertical and horizontal libraries, and gives a way to import the library outside of webpack.
2016-09-19 14:46:55 -04:00
Ray Schamp
ff57c4e4d6 Provide a shim that doesn't need to be built
Because this package installs imports-loader and exports-loader, when another package requires scratch-blocks, webpack will use this package's loaders to do the shimming. This way it will be built by the parent package.
2016-09-16 11:25:41 -04:00
Ray Schamp
29cab79ec5 Provide a webpack-importable module on install
webpack.config.js sets up a cascade of imports so that the Blockly object
in blocks_compressed_horizontal and blocks_compressed_vertical is retrieved
from blocks_compressed, which in turn retrieves its Blockly object from
blockly_compressed_horizontal or blockly_compressed_vertical, respectively
(via blocks_compressed_shim_vertical and blocks_compressed_horizontal).

This is finally compiled into a single module at export.js, which is seen as
the main module by webpack when this package is imported.

Usage:
```javascript
const ScratchBlocksVertical = require('scratch-blocks').Vertical;
```
2016-09-16 09:40:43 -04:00