ktetsuo / xcx-my-extension

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

'My

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 "'My" extension.

<iframe src="https://xcratch.github.io/editor/player#https://ktetsuo.github.io/xcx-my-extension/projects/example.sb3" width="540px" height="460px"></iframe>

How to Use in Xcratch

This extension can be used with other extension in Xcratch.

  1. Open Xcratch Editor
  2. Click 'Add Extension' button
  3. Select 'Extension Loader' extension
  4. Type the module URL in the input field
https://ktetsuo.github.io/xcx-my-extension/dist/myExtension.mjs

Development

Register on the local Xcratch

Run register script to install this extension on the local Xcratch for testing.

npm run register

Bundle into a Module

Run build script to bundle this extension into a module file which could be loaded on Xcratch.

npm run build

🏠 Home Page

Open this page from https://ktetsuo.github.io/xcx-my-extension/

🤝 Contributing

Contributions, issues and feature requests are welcome!
Feel free to check issues page.

About


Languages

Language:JavaScript 100.0%