xcx-example
v1.0.2
Published
example extension for Xcratch
Downloads
1
Readme
Xcratch Example
An example extension for Xcratch
This extension add extra-block "do it", that executes string in its input field as a sentence in Javascript and return the result.
✨ What You Can Do With This Extension
Play Example Project to look at what you can do with "Xcratch Example" extension.
How to Use in Xcratch
This extension can be used with other extension in Xcratch.
- Open Xcratch Editor
- Click 'Add Extension' button
- Select 'Extension Loader' extension
- Type the module URL in the input field
https://xcratch.github.io/xcx-example/dist/xcratchExample.mjs
- Click 'OK' button
- Now you can use the blocks of this extension
Development
Install Dependencies
npm install
Setup Development Environment
Change vmSrcOrg
to your local scratch-vm
directory in ./scripts/setup-dev.js
then run setup-dev script to setup development environment.
npm run setup-dev
Bundle into a Module
Run build script to bundle this extension into a module file which could be loaded on Xcratch.
npm run build
Watch and Bundle
Run watch script to watch the changes of source files and bundle automatically.
npm run watch
Test
Run test script to test this extension.
npm run test
🏠 Home Page
Open this page from https://xcratch.github.io/xcx-example/
🤝 Contributing
Contributions, issues and feature requests are welcome!Feel free to check issues page.