Skip to content

Commit 7d50ddb

Browse files
committed
chore: use lerna manager project
feat: add renderClient seo set chore: yarn lock chore: use lerna feat: implement html and asset render example fix: test running doc: update doc for lerna doc: update project info chore: changelog doc: update doc style doc: update image link url doc: update image link url
1 parent 45f2c59 commit 7d50ddb

File tree

633 files changed

+88886
-1285
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

633 files changed

+88886
-1285
lines changed

.gitignore

100755100644
Lines changed: 2 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,2 @@
1-
.DS_Store
2-
.happypack/
3-
node_modules/
4-
npm-debug.log
5-
.idea/
6-
dist
7-
static
8-
public
9-
private
10-
run
11-
*.iml
12-
artifacts.json
13-
*tmp
14-
_site
15-
logs
16-
config/buildConfig.json
17-
config/manifest.json
18-
config/manifest-dll.json
19-
app/view/*
20-
!app/view/layout.html
21-
!app/view/README.md
22-
!app/view/.gitkeep
23-
package-lock.json
24-
yarn.lock
25-
.gitkeep
1+
node_modules
2+
yarn.lock

CHANGELOG.md

Lines changed: 69 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,29 @@
1-
## [4.8.1](https://github.com/easy-team/egg-vue-webpack-boilerplate/compare/4.8.0...4.8.1) (2019-12-08)
2-
1+
<a name="4.9.0"></a>
2+
# [4.9.0](https://github.com/easy-team/egg-vue-webpack-boilerplate/compare/4.8.1...4.9.0) (2020-11-29)
33

44

5-
# [4.8.0](https://github.com/easy-team/egg-vue-webpack-boilerplate/compare/4.6.0...4.8.0) (2019-11-08)
5+
### Features
66

7+
* use lerna manage proejct ([182be50](https://github.com/easy-team/egg-vue-webpack-boilerplate/commit/182be50))
78

8-
### Features
99

10-
* ssr asyncData ([21e5b62](https://github.com/easy-team/egg-vue-webpack-boilerplate/commit/21e5b62))
11-
* use easy-team mode ([473617a](https://github.com/easy-team/egg-vue-webpack-boilerplate/commit/473617a))
10+
<a name="4.8.1"></a>
11+
## [4.8.1](https://github.com/easy-team/egg-vue-webpack-boilerplate/compare/4.8.0...4.8.1) (2019-12-08)
1212

1313

1414

15-
# [4.7.0](https://github.com/easy-team/egg-vue-webpack-boilerplate/compare/4.6.0...4.7.0) (2019-10-13)
15+
<a name="4.8.0"></a>
16+
# [4.8.0](https://github.com/easy-team/egg-vue-webpack-boilerplate/compare/4.6.0...4.8.0) (2019-11-08)
1617

1718

1819
### Features
1920

21+
* ssr asyncData ([21e5b62](https://github.com/easy-team/egg-vue-webpack-boilerplate/commit/21e5b62))
2022
* use easy-team mode ([473617a](https://github.com/easy-team/egg-vue-webpack-boilerplate/commit/473617a))
2123

2224

2325

26+
<a name="4.6.0"></a>
2427
# [4.6.0](https://github.com/easy-team/egg-vue-webpack-boilerplate/compare/4.4.6...4.6.0) (2019-10-13)
2528

2629

@@ -40,20 +43,7 @@
4043

4144

4245

43-
# [4.5.0](https://github.com/easy-team/egg-vue-webpack-boilerplate/compare/4.4.6...4.5.0) (2019-08-02)
44-
45-
46-
### Bug Fixes
47-
48-
* server side render hydrate not effective ([8ef6aa8](https://github.com/easy-team/egg-vue-webpack-boilerplate/commit/8ef6aa8))
49-
50-
51-
### Features
52-
53-
* set title ([fb99718](https://github.com/easy-team/egg-vue-webpack-boilerplate/commit/fb99718))
54-
55-
56-
46+
<a name="4.4.6"></a>
5747
## [4.4.6](https://github.com/easy-team/egg-vue-webpack-boilerplate/compare/4.4.5...4.4.6) (2018-12-12)
5848

5949

@@ -63,6 +53,7 @@
6353

6454

6555

56+
<a name="4.4.5"></a>
6657
## [4.4.5](https://github.com/easy-team/egg-vue-webpack-boilerplate/compare/4.4.2...4.4.5) (2018-11-06)
6758

6859

@@ -77,6 +68,19 @@
7768

7869
* add link asset file example ([cb81976](https://github.com/easy-team/egg-vue-webpack-boilerplate/commit/cb81976))
7970

71+
72+
73+
<a name="4.4.2"></a>
74+
## [4.4.2](https://github.com/easy-team/egg-vue-webpack-boilerplate/compare/4.4.1...4.4.2) (2018-10-11)
75+
76+
77+
78+
<a name="4.4.1"></a>
79+
## [4.4.1](https://github.com/easy-team/egg-vue-webpack-boilerplate/compare/4.4.0...4.4.1) (2018-10-11)
80+
81+
82+
83+
<a name="4.4.0"></a>
8084
# [4.4.0](https://github.com/easy-team/egg-vue-webpack-boilerplate/compare/4.3.0...4.4.0) (2018-10-09)
8185

8286

@@ -88,10 +92,12 @@
8892
### Features
8993

9094
* simplified configuration ([1854282](https://github.com/easy-team/egg-vue-webpack-boilerplate/commit/1854282))
91-
* webpack zero config implement ([16ea32e](https://github.com/easy-team/egg-vue-webpack-boilerplate/commit/16ea32e))
95+
* zero config ([67d14ef](https://github.com/easy-team/egg-vue-webpack-boilerplate/commit/67d14ef))
96+
* 零配置实现 ([16ea32e](https://github.com/easy-team/egg-vue-webpack-boilerplate/commit/16ea32e))
9297

9398

9499

100+
<a name="4.3.0"></a>
95101
# [4.3.0](https://github.com/easy-team/egg-vue-webpack-boilerplate/compare/4.0.0...4.3.0) (2018-09-11)
96102

97103

@@ -108,10 +114,11 @@
108114

109115
### Features
110116

111-
* add component async load demo ([b8b3eaf](https://github.com/easy-team/egg-vue-webpack-boilerplate/commit/b8b3eaf))
117+
* add component load demo ([b8b3eaf](https://github.com/easy-team/egg-vue-webpack-boilerplate/commit/b8b3eaf))
112118
* add i18n menu ([b7f65b0](https://github.com/easy-team/egg-vue-webpack-boilerplate/commit/b7f65b0))
113119
* add npm clean command ([be4177d](https://github.com/easy-team/egg-vue-webpack-boilerplate/commit/be4177d))
114120
* admin dashboard ([e63dc83](https://github.com/easy-team/egg-vue-webpack-boilerplate/commit/e63dc83))
121+
* site and admin running ([c01254f](https://github.com/easy-team/egg-vue-webpack-boilerplate/commit/c01254f))
115122
* support i18n ([752baad](https://github.com/easy-team/egg-vue-webpack-boilerplate/commit/752baad))
116123
* use egg-bin and egg-scripts ([cf85319](https://github.com/easy-team/egg-vue-webpack-boilerplate/commit/cf85319))
117124

@@ -122,6 +129,7 @@
122129

123130

124131

132+
<a name="4.0.0"></a>
125133
# [4.0.0](https://github.com/easy-team/egg-vue-webpack-boilerplate/compare/3.5.0...4.0.0) (2018-03-07)
126134

127135

@@ -138,6 +146,8 @@
138146
* add dynamic vue componnet demo ([1768ee0](https://github.com/easy-team/egg-vue-webpack-boilerplate/commit/1768ee0))
139147
* dll ([f5c5679](https://github.com/easy-team/egg-vue-webpack-boilerplate/commit/f5c5679))
140148
* dll and lib support ([bf0019c](https://github.com/easy-team/egg-vue-webpack-boilerplate/commit/bf0019c))
149+
* dll support ([01393ef](https://github.com/easy-team/egg-vue-webpack-boilerplate/commit/01393ef))
150+
* dll support ([4ce6b01](https://github.com/easy-team/egg-vue-webpack-boilerplate/commit/4ce6b01))
141151
* spa dynamic import vue component ([a95b75f](https://github.com/easy-team/egg-vue-webpack-boilerplate/commit/a95b75f))
142152
* spa use loader template ([09ea960](https://github.com/easy-team/egg-vue-webpack-boilerplate/commit/09ea960))
143153
* support cli build dll and auto check dll file ([2f7e61a](https://github.com/easy-team/egg-vue-webpack-boilerplate/commit/2f7e61a))
@@ -152,6 +162,7 @@
152162

153163

154164

165+
<a name="3.2.2"></a>
155166
## [3.2.2](https://github.com/easy-team/egg-vue-webpack-boilerplate/compare/v3.0.3...3.2.2) (2017-11-29)
156167

157168

@@ -166,14 +177,17 @@
166177

167178

168179

180+
<a name="3.0.3"></a>
169181
## [3.0.3](https://github.com/easy-team/egg-vue-webpack-boilerplate/compare/v3.0.2...v3.0.3) (2017-10-26)
170182

171183

172184

185+
<a name="3.0.2"></a>
173186
## [3.0.2](https://github.com/easy-team/egg-vue-webpack-boilerplate/compare/v3.0.1...v3.0.2) (2017-10-26)
174187

175188

176189

190+
<a name="3.0.1"></a>
177191
## [3.0.1](https://github.com/easy-team/egg-vue-webpack-boilerplate/compare/3.0.0...v3.0.1) (2017-10-26)
178192

179193

@@ -183,10 +197,12 @@
183197

184198

185199

200+
<a name="3.0.0"></a>
186201
# [3.0.0](https://github.com/easy-team/egg-vue-webpack-boilerplate/compare/1.3.1...3.0.0) (2017-09-13)
187202

188203

189204

205+
<a name="1.3.1"></a>
190206
## [1.3.1](https://github.com/easy-team/egg-vue-webpack-boilerplate/compare/1.2.0...1.3.1) (2017-08-29)
191207

192208

@@ -196,13 +212,42 @@
196212

197213

198214

215+
<a name="1.2.0"></a>
199216
# [1.2.0](https://github.com/easy-team/egg-vue-webpack-boilerplate/compare/1.0.0...1.2.0) (2017-08-21)
200217

201218

202219

203-
# [1.0.0](https://github.com/easy-team/egg-vue-webpack-boilerplate/compare/0.6.0...1.0.0) (2017-05-25)
220+
<a name="1.0.0"></a>
221+
# [1.0.0](https://github.com/easy-team/egg-vue-webpack-boilerplate/compare/0.6.0...1.0.0) (2017-07-18)
222+
223+
224+
225+
<a name="0.6.0"></a>
226+
# [0.6.0](https://github.com/easy-team/egg-vue-webpack-boilerplate/compare/1.0.0-stage...0.6.0) (2017-07-05)
227+
228+
229+
230+
<a name="1.0.0-stage"></a>
231+
# [1.0.0-stage](https://github.com/easy-team/egg-vue-webpack-boilerplate/compare/0.2.0...1.0.0-stage) (2017-06-07)
232+
233+
234+
235+
<a name="0.2.0"></a>
236+
# [0.2.0](https://github.com/easy-team/egg-vue-webpack-boilerplate/compare/0.1.4...0.2.0) (2017-06-07)
237+
238+
239+
240+
<a name="0.1.4"></a>
241+
## [0.1.4](https://github.com/easy-team/egg-vue-webpack-boilerplate/compare/0.1.3...0.1.4) (2017-05-25)
242+
243+
244+
245+
<a name="0.1.3"></a>
246+
## [0.1.3](https://github.com/easy-team/egg-vue-webpack-boilerplate/compare/0.0.1...0.1.3) (2017-05-25)
247+
204248

205249

250+
<a name="0.0.1"></a>
206251
## 0.0.1 (2017-04-24)
207252

208253

README.md

Lines changed: 14 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22

33
基于 Egg + Vue + Webpack SSR 服务端渲染和 CSR 前端渲染工程骨架项目,包括前台系统(SSR MPA)和后台管理系统(SSR SPA)。
44

5-
- 线上访问: http://49.233.172.37:7002
6-
- 工程文档:https://www.yuque.com/easy-team/egg-vue
5+
## 文档
6+
7+
https://www.yuque.com/easy-team/egg-vue
78

89
## 系统功能
910

@@ -21,7 +22,7 @@
2122

2223
**采用 Egg + Vue + Vue-Router + Element 单页面服务端同构渲染**
2324

24-
![](https://github.com/hubcarl/egg-vue-webpack-boilerplate/blob/master/docs/images/admin.png?raw=true)
25+
![](https://github.com/easy-team/egg-vue-webpack-boilerplate/tree/master/docs/images/admin.png?raw=true)
2526

2627
- Dashboard
2728
- Markdown
@@ -31,24 +32,24 @@
3132

3233
### 常用功能
3334

34-
常用 Example 实现见 [awesome](https://github.com/easy-team/egg-vue-webpack-boilerplate/tree/awesome) 分支代码。
35+
常用 Example 实现见 [awesome](./tree/awesome) 分支代码。
3536

3637
- Sass/Less/Stylus 功能
3738
- Dynamic Component Load
3839
- Element-UI 集成
3940
- Single Page Application
4041

41-
### 纯净分支
42+
### 骨架模板
4243

43-
因该项目包含了多种实现, 提供多种例子实现,为防干扰, 特提供了两个纯净版本分支用于实际项目开发, 请自行选用。
44+
- [egg-vue-webpack-boilerplate](https://github.com/easy-team/egg-vue-webpack-boilerplate/tree/master/egg-vue-webpack-boilerplate) Egg + Vue 多种特性功能模板。
45+
- [egg-vue-webpack-mpa-boilerplate](https://github.com/easy-team/egg-vue-webpack-boilerplate/tree/master/egg-vue-webpack-mpa-boilerplate) Egg + Vue 多页渲染模板。
46+
- [egg-vue-webpack-spa-boilerplate](https://github.com/easy-team/egg-vue-webpack-boilerplate/tree/master/egg-vue-webpack-spa-boilerplate) Egg + Vue + Vue-Router + Vuex 单页面服务端渲染模板。
47+
- [egg-vue-webpack-asset-boilerplate](https://github.com/easy-team/egg-vue-webpack-boilerplate/tree/master/egg-vue-webpack-asset-boilerplate) Egg + Vue 前端 asset 渲染方案。
48+
- [egg-vue-webpack-html-boilerplate](https://github.com/easy-team/egg-vue-webpack-boilerplate/tree/master/egg-vue-webpack-html-boilerplate) Egg + Vue 静态 HTML 渲染方案。
49+
- [egg-vue-typescript-boilerplate](https://github.com/easy-team/egg-vue-typescript-boilerplate) Egg + Vue + TypeScript 项目。
50+
- [ves-admin](https://github.com/easy-team/ves-admin) Egg + Vue 上层框架解决方案。
4451

45-
- Egg + Vue + Axios 多页面服务端渲染分支 [feature/green/multi](https://github.com/easy-team/egg-vue-webpack-boilerplate/tree/feature/green/multi)
46-
- Egg + Vue + vue-router + vuex + axios 单页面服务端渲染分支 [feature/green/spa](https://github.com/easy-team/egg-vue-webpack-boilerplate/tree/feature/green/spa)
47-
- Egg + Vue + vue-router + vuex + axios 前端渲染 asset 方案 [feature/green/asset](https://github.com/easy-team/egg-vue-webpack-boilerplate/tree/feature/green/asset)
48-
- Egg + Vue + vue-router + vuex + axios 前端渲染一体化方案 [element-admin](https://github.com/easy-team/egg-vue-webpack-boilerplate/tree/element-admin)
49-
- Egg + Vue + TypeScript 项目,请见项目 [egg-vue-typescript-boilerplate](https://github.com/easy-team/egg-vue-typescript-boilerplate)[ves-admin](https://github.com/easy-team/ves-admin)
50-
51-
以上项目,你可以通过 [easywebpack-cli](https://github.com/easy-team/easywebpack-cli) 初始化
52+
以上项目,你可以通过 [easywebpack-cli](https://github.com/easy-team/easywebpack-cli) 初始化。
5253

5354
## 版本
5455

@@ -58,15 +59,13 @@
5859
- Webpack 版本: ^4.x.x, 对应 `easywebpack-vue` 版本为 ^4.x.x
5960
- Webpack3 版本项目骨架请见 `webpack3` 分支, 对应 `easywebpack-react` 版本为 3.x.x
6061

61-
6262
## 文档
6363

6464
- https://easyjs.cn/egg-vue
6565
- https://easyjs.cn/easywebpack
6666
- https://www.yuque.com/easy-team/egg-vue
6767
- https://zhuanlan.zhihu.com/easywebpack
6868

69-
7069
## 特性
7170

7271
- 支持服务端渲染SSR(Server Side Render), 前端渲染CSR(Client Side Render) 方式
@@ -89,7 +88,6 @@
8988

9089
- 提供 国际化 i18n 多语言支持方案
9190

92-
9391
## 插件
9492

9593
- [easywebpack](https://github.com/easy-team/easywebpack) ^4.x.x
@@ -98,7 +96,6 @@
9896
- [egg-webpack](https://github.com/easy-team/egg-webpack) ^4.x.x
9997
- [egg-webpack-vue](https://github.com/easy-team/egg-webpack-vue) ^2.x.x
10098

101-
10299
## 使用
103100

104101
#### 安装cli(非必需)
@@ -115,7 +112,6 @@ npm install @easy-team/easywebpack-cli -g
115112
npm install
116113
```
117114

118-
119115
#### 本地开发
120116

121117
> 启动构建细节请阅读:https://www.yuque.com/easy-team/egg-vue/build
@@ -132,7 +128,6 @@ npm run dev
132128

133129
- 本地构建是 Webpack 内存构建,文件不落地磁盘,所以 `app/view``public` 在本地开发时,是看不到文件的。 只有发布模式(npm run build)才能在这两个目录中看到构建后的内容。
134130

135-
136131
#### 线上部署
137132

138133
> 部署细节请阅读:https://www.yuque.com/easy-team/egg-vue/online
@@ -153,7 +148,6 @@ npm start
153148

154149
webpack 配置构建是通过 easywebpack 实现的,具体见 https://www.yuque.com/easy-team/egg-vue/qpeiowhttps://github.com/easy-team/easywebpack-cli
155150

156-
157151
- Egg Webpack 配置代码调用入口
158152

159153
```js
@@ -167,8 +161,6 @@ exports.webpack = { // 默认是如下配置,可不配置
167161
- 运行 `npm run build` 可以进行 Webpack 项目构建
168162
- 通过 `easy print` 可以打印 Webpack 原生配置
169163

170-
171-
172164
## 项目结构
173165

174166
├── app
@@ -263,7 +255,6 @@ exports.webpack = { // 默认是如下配置,可不配置
263255
│   │   └── test.js
264256
│   └── vendor.js // 生成的公共打包库
265257

266-
267258
## 功能实现
268259

269260
### 多页面服务端渲染/前端渲染同构实现
@@ -302,7 +293,6 @@ exports.webpack = { // 默认是如下配置,可不配置
302293
</script>
303294
```
304295

305-
306296
#### 多页面后端渲染实现, 通过 `egg-view-vue-ssr` 插件 `render` 方法实现
307297

308298
- 创建controller文件home.js
@@ -342,7 +332,6 @@ app.get('/client', app.controller.home.home.client);
342332

343333
- 通过 `egg-static` 静态文件访问HTML文件
344334

345-
346335
### 单页面服务器渲染同构实现
347336

348337
#### 单页面前端实现
@@ -456,7 +445,6 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
456445

457446
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!
458447

459-
460448
## License
461449

462450
[MIT](LICENSE)

0 commit comments

Comments
 (0)