@blockly/create-package

A tool for creating a Blockly plugin based on a template.

Usage no npm install needed!

<script type="module">
  import blocklyCreatePackage from 'https://cdn.skypack.dev/@blockly/create-package';
</script>

README

@blockly/create-package Built on Blockly

A tool for creating a Blockly plugin based on a pre-existing template.

Example Usage

npx @blockly/create-package my-plugin --type plugin
cd my-plugin
npm start

Available templates

--type field: A field template.

--type block: A block template.

--type theme: A theme template.

--type plugin: A generic plugin template. (Default)

Adding TypeScript

npx @blockly/create-package my-plugin --type plugin --typescript

License

Apache 2.0