https://github.com/koichii/xcx-my-extension.git https://koichii.github.io/xcx-my-extension/dist/myExtension.mjs https://shiroganeconsultant.com/xcx-my-extension/dist/myExtension.mjs
★ビルド ローカルから開発環境へコピー cd ~/xcratch/xcx-my-extension npm run build
★開発マシンから本番マシンへコピー scp ~/xcratch/xcx-my-extension/dist/myExtension.mjs [email protected]:/datadrive/pcratch/assets/ https://kitaratch.j-code.org/get_asset_file/myExtension.mjs
== 開発環境からローカルへコピー /dist/myExtension.mjs git push xcratch拡張機能として読み込む https://shiroganeconsultant.com/xcx-my-extension/dist/myExtension.mjs
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.
Play Example Project to look at what you can do with "My Extension" extension.
<iframe src="https://xcratch.github.io/editor/player#https://githubAccount.github.io/xcx-my-extension/projects/example.sb3" width="540px" height="460px"></iframe>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://githubAccount.github.io/xcx-my-extension/dist/myExtension.mjs
Run register script to install this extension on the local Xcratch for testing.
npm run register
Run build script to bundle this extension into a module file which could be loaded on Xcratch.
npm run build
Open this page from https://githubAccount.github.io/xcx-my-extension/
Contributions, issues and feature requests are welcome!
Feel free to check issues page.