Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mould-vuecli3
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lhfe
mould-vuecli3
Commits
195672f7
Commit
195672f7
authored
Aug 26, 2020
by
lipengcheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs: 更新文档
parent
cbf5694f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
5 deletions
+34
-5
README.md
README.md
+34
-5
No files found.
README.md
View file @
195672f7
...
...
@@ -10,31 +10,32 @@
## 运行
安装依赖:
```
npm install
```
### 本地开发
本地开发:
```
npm run serve
```
### 测试环境打包
测试环境打包:
```
npm run passports
```
### 生产环境打包
生产环境打包:
```
npm run build
```
### 打包后本地预览
打包后本地预览:
```
npm run start
```
### 格式校验及自动修复
格式校验及自动修复:
修复eslint报错:
```
npm run fix
...
...
@@ -49,6 +50,34 @@ npm run prettier
### 分支
`develop`
: 开发分支
### 目录结构
├── CHANGELOG.md // 更新日志
├── README.md
├── babel.config.js
├── config
│ └── baseUrl.js
├── package.json
├── public
│ ├── favicon.ico
│ ├── img
│ ├── index.html
│ └── robots.txt
├── src // 源码目录
│ ├── App.vue // 入口文件
│ ├── assets
│ ├── components // 组件目录
│ ├── main.js
│ ├── registerServiceWorker.js
│ ├── router
│ ├── store
│ └── views // 页面组件目录
├── vue.config.js
└── yarn.lock
注意:
1.
页面级组件(通俗理解为与路由对应的组件)统一放在
`views`
目录下。
2.
页面组件内的小组件、功能组件统一放在
`components`
目录下。例如,页面组件
`pageA.vue`
中拆分出了
`pageheader.vue`
组件,那么在
`components`
目录下新建一个
**与页面同名的`pageA`目录**
,
`pageA`
的相关组件放进去即可。
## Customize configuration
See
[
Configuration Reference
](
https://cli.vuejs.org/config/
)
.
****
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment