如使用该前端脚手架,可以先安装
-
npm install -g yunle-cli
-
yunle init <project-name>
-
cd <project-name> && npm install
-
npm run dev
开发过程中,你用得最多的会是
npm run dev
,但是这里还有很多其它的处理:
npm run <script> |
用途 |
---|---|
dev/build |
开发/生产环境 --- 启动服务。 |
.
├── dist # 打包生产环境后文件
├── config # Server config
│ ├── server.config # server
├── src # 应用源文件
│ ├── libs # 第三方库
│ ├── js # 第三方js库
│ ├── css # 第三方css库
│ ├── fonts # 第三方fonts库
│ ├── ... # 自定义
│ ├── styles # 样式
│ ├── less # less源文件
│ ├── images # images源文件
│ ├── js # js源文件
│ ├── index.html # html入口
├── test # 单元测试