Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@blockly/create-package

Package Overview
Dependencies
Maintainers
0
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@blockly/create-package

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

  • 3.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

@blockly/create-package Built on Blockly

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

Creating a plugin

A plugin is a library designed to add functionality to Blockly. It is reusable and can be added to an application that uses Blockly. For more information about creating plugins in Blockly, see the developer documentation.

This script can be used to create a new Blockly plugin based on a template.

Usage

npx @blockly/create-package plugin 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)

Options

Run npx @blockly/create-package plugin --help to see the available options.

Adding TypeScript

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

Creating a new application

An application that uses Blockly is a standalone program, unlike a plugin. If you're just getting started with Blockly, you can create a new application based on our sample using this script. The app that will be generated contains basic infrastructure for running, building, testing, etc. that you can use even if you don't understand how to configure the related tool yet. When your needs outgrow the functionality provided by it, you can replace the provided configuration or tool with your own.

Usage

npx @blockly/create-package app hello-world
cd hello-world
npm start

See the generated README.md file after creation for more information.

Options

Run npx @blockly/create-package app --help to see the available options.

License

Apache 2.0

Keywords

FAQs

Package last updated on 20 Jun 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc