This directory includes self-contained sample projects demonstrating techniques to include and extend the Blockly library.
blockly-requirejs-sample
: Loads RequireJS from a CDN and loads Blockly usingAMD
.blockly-umd-sample
: Loads the UMD build of Blockly (blockly.min.js
), both from node_modules and from Unpkg.blockly-webpack-sample
: Using Blockly in Webpack.blockly-node-sample
: Using Blockly in Node.js, loaded using require (CommonJS
).blockly-angular-sample
: Blockly in an Angular project, defines an Angular Blockly Component.blockly-react-sample
: Blockly in a React project, defines a React Blockly Component.blockly-svelte-sample
: Blockly in a Svelte project, defines a Svelte Blockly Component.blockly-vue-sample
: Blockly in a Vue project, defines a Vue Blockly Component.
blockly-rtc
: Real-time collaboration environment on top of the Blockly framework.
cd <any sample folder>
npm install
npm run start
Browse to http://localhost:3000
You may need to refer to a sample's README for further setup and running instructions.
npm run boot
This will run npm install
on every example.
npm run update
This will run npm update
on every example.
npm run audit
This will run npm audit fix
on every example.