Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit dfc890f

Browse files
authored
Merge pull request #34 from ediaos/v0.4.0
V0.4.0 - fix spa fetchDataMounted bug - add prettier and format - 控制 SSR 渲染不加载 三方 CSS 文件,改为 preload 加载
2 parents 0da0e52 + 08c71d3 commit dfc890f

24 files changed

+274
-228
lines changed

‎.eslintrc.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ module.exports = {
33
env: {
44
node: true
55
},
6-
extends: ["plugin:vue/essential","@vue/prettier"],
6+
extends: ['plugin:vue/essential','@vue/prettier'],
77
rules: {
8-
"no-console": process.env.NODE_ENV === "production" ? "error" : "off",
9-
"no-debugger": process.env.NODE_ENV === "production" ? "error" : "off"
8+
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
9+
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
1010
},
1111
parserOptions: {
12-
parser: "babel-eslint"
12+
parser: 'babel-eslint'
1313
}
14-
};
14+
}

‎.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ yarn-error.log*
1313

1414
# Editor directories and files
1515
.idea
16-
.vscode
1716
*.suo
1817
*.ntvs*
1918
*.njsproj

‎.prettierrc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"semi": false,
3+
"singleQuote": true,
4+
"printWidth": 80,
5+
"tabWidth": 2,
6+
"useTabs": false,
7+
"trailingComma": "none"
8+
}

‎.vscode/settings.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
// 编辑器保存自动格式化
3+
"editor.formatOnSave": true,
4+
// 锁紧字符
5+
"editor.tabSize": 2,
6+
// 自动在vscode顶部显示文件路径
7+
"window.title": "${dirty}${activeEditorMedium}${separator}${rootName}",
8+
// 搜索排除
9+
"search.exclude": {
10+
"**/node_modules": true,
11+
"**/bower_components": true,
12+
"**/dist": true
13+
},
14+
// 控制是否在搜索中跟踪符号链接,会导致cpu内存占有率过高
15+
"search.followSymlinks": false,
16+
// 自动fetch远程分支
17+
"git.autofetch": true,
18+
// eslint开启
19+
"eslint.enable": true,
20+
// eslint自动保存格式话
21+
"editor.codeActionsOnSave": {
22+
"source.fixAll.eslint": true
23+
},
24+
// 保存超时时长
25+
"editor.codeActionsOnSaveTimeout": 2500,
26+
// 依赖prettier配置文件来格式化
27+
"prettier.requireConfig": true
28+
}

‎README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@
1212
- 优化 dev 开发 ssr,通过双启动(ssr-server & client-dev-server)方式,实现前后端 dev 开发无感知,解决方案更加优雅
1313
- SEO 的支持,支持 tkd 以及 head 附加
1414

15+
## v0.4.0
16+
17+
- fix spa fetchDataMounted bug
18+
- add prettier and format
19+
- 控制 SSR 渲染不加载 三方 CSS 文件,改为 preload 加载
20+
1521
## v0.3.4
1622

1723
- update npm package version

‎babel.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module.exports = {
2-
presets: ["@vue/app"]
3-
};
2+
presets: ['@vue/app']
3+
}

‎package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-cli3-ssr-project",
3-
"version": "0.3.4",
3+
"version": "0.4.0",
44
"private": true,
55
"scripts": {
66
"dev:client": "vue-cli-service serve --mode dev",

‎postcss.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ module.exports = {
22
plugins: {
33
autoprefixer: {}
44
}
5-
};
5+
}

‎src/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
<style lang="scss">
1111
#app {
12-
font-family: "Avenir", Helvetica, Arial, sans-serif;
12+
font-family: 'Avenir', Helvetica, Arial, sans-serif;
1313
-webkit-font-smoothing: antialiased;
1414
-moz-osx-font-smoothing: grayscale;
1515
text-align: center;

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /