Skip to content

Latest commit

 

History

History

create-app

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

create-blocklet

Scaffolding Your First Blocklet

Compatibility Note: Blocklet template requires Node.js version >=14.0.0.

What can i do?

By using create-blocklet you can create a new blocklet in a few minutes. You can get a demo blocklet, understand how a blocklet works and how to use them.

Start

With NPM:

npm init blocklet@latest [blocklet-name]

With Yarn: (recommend)

yarn create blocklet [blocklet-name]

With PNPM: (recommend)

pnpm create blocklet [blocklet-name]

Currently supported template presets include:

dapp

  • react
  • vue3
  • vue2
  • solid-js
  • svelte
  • next.js
  • react + gunjs

static

  • react
  • vue3
  • vue2
  • solid-js
  • svelte
  • website powered by blocklet pages
  • documentation site powered by blocklet pages
  • html

api

  • express

Community Templates

create-blocklet is a tool to quickly start a blocklet from a basic template for popular frameworks. You can use a tool like degit to scaffold your blocklet with github repository template.

npx degit user/blocklet my-blocklet
cd my-blocklet

npm install
npm run dev

If the blocklet uses main as the default branch, suffix the blocklet repo with #main

npx degit user/blocklet#main my-blocklet

Development

Use node /pathToCreateBlockletRepo/index.js to create a blocklet, or you can use

ln -s /pathToCreateBlockletRepo/index.js /usr/local/bin/cb

cb

to create a blocklet

Docs

View full documentation in here