1.0.13 • Published 8 months ago

create-cocos-plugin v1.0.13

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

create-cocos-plugin

Scaffolding Your First COCOS-plugin Project

Compatibility Note: create-cocos-plugin dependens on Vite. Vite requires Node.js version 18+, 20+. However, some templates require a higher Node.js version to work, please upgrade if your package manager warns about it.

With NPM:

$ npm create cocos-plugin@latest

With Yarn:

$ yarn create cocos-plugin

With PNPM:

$ pnpm create cocos-plugin

With Bun:

$ bun create cocos-plugin

Then follow the prompts!

You can also directly specify the project name and the template you want to use via additional command line options. For example, to scaffold a cocos-plugin + Vue project, run:

# npm 7+, extra double-dash is needed:
npm create cocos-plugin@latest my-cocos-plugin -- --template vue

# yarn
yarn create cocos-plugin my-cocos-plugin --template vue

# pnpm
pnpm create cocos-plugin my-cocos-plugin --template vue

# Bun
bun create cocos-plugin my-cocos-plugin --template vue

Currently supported template presets include:

  • vanilla
  • vue
  • vue-element-plus
  • react-ts

You can use . for the project name to scaffold in the current directory.

1.0.13

8 months ago

1.0.11

9 months ago

1.0.12

9 months ago

1.0.10

10 months ago

1.0.8

10 months ago

1.0.7

10 months ago

1.0.6

10 months ago

1.0.5

11 months ago

1.0.4

11 months ago

1.0.3

11 months ago

1.0.2

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago