初始化项目

This commit is contained in:
dengtongyu committed 2018-11-12 17:48:13 +08:00
commit 4ab6cf96c0
38 files changed
+8362

No files matched your search

+31
View File
@@ -0,0 +1,31 @@
react 开发工作流
初始化
```sh
npm install
```
目录结构
```sh
>根
>>src---------开发源码
>>>lib--------库文件
>>>pages------页面源码
>>task--------构建任务
>>template----模板
>>>react------react模板
```
创建新项目
```sh
node app init --type|-t [template] --name|-n [pathName]
```
开发已有项目
```sh
npm run dev --name|-n [pathName]
```
打包已有项目
```sh
npm run pack --name|-n [pathName]
```