npm.io
2.1.16 • Published 4 years agoCLI

noco-component-scripts

Licence
ISC
Version
2.1.16
Deps
64
Size
389 kB
Vulns
8
Weekly
0

使用方法

项目结构

├── src
│   ├── example
│   │   ├── 1
│   │   │   ├── config.js
│   │   │   ├── index.js
│   │   │   └── index.vue
│   │   └── 2
│   │       ├── config.js
│   │       ├── index.js
│   │       └── index.vue
│   ├── impl
│   │   ├── index.js
│   │   └── index.vue
│   └── meta
│       ├── index.js
│       └── meta.json
├── package.json
├── changelog.js
├── noco.config.js
├── .npmrc
└── .gitignore

安装

npm install noco-component-scripts

启动项目

启动默认 example
noco-component-scripts start

该命令会启动src/example/1 对应的示例

启动指定 example
noco-component-scripts start 2

该命令会启动src/example/2 对应的示例

指定端口号
noco-component-scripts start --port 8080
noco-component-scripts start 2 --port 8081

该命令会同时启动 example/1(:8080) 和 example/2(8081)

编译项目

noco-component-scripts build