@moyuan/create-panel
v1.0.0
Published
Scaffold a new Moyuan IoT panel project
Readme
@moyuan/create-panel
Scaffold a new Moyuan IoT panel project.
Usage
# npm create (recommended)
npm create @moyuan/panel my-panel
# or npx
npx @moyuan/create-panel my-panel
# or install globally
npm i -g @moyuan/create-panel
create-moyuan-panel my-panelOptions
| Option | Alias | Description | Default |
|--------|-------|-------------|---------|
| --port | -p | Dev server port | 8090 |
| --title | -t | HTML page title | project name |
| --yes | -y | Skip prompts, use defaults | false |
| --help | -h | Show help message | |
Examples
Interactive mode (prompts for title and port):
npm create @moyuan/panel my-panelNon-interactive mode:
npm create @moyuan/panel my-panel --port 8091 --title "My Panel" -yGenerated Project
my-panel/
├── src/
│ ├── App.tsx
│ ├── main.tsx
│ ├── components/
│ ├── hooks/
│ ├── i18n/
│ ├── pages/
│ └── styles/
├── index.html
├── vite.config.ts
├── tsconfig.json
├── postcss.config.js
└── package.jsonAfter scaffolding:
cd my-panel
yarn install
yarn devRequirements
- Node.js >= 18.0.0
