Skip to content

Commit b0eb172

Browse files
authored
Supports Node.js v14 (#32)
1 parent 32a6ff6 commit b0eb172

File tree

10 files changed

+1357
-85
lines changed

10 files changed

+1357
-85
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ matrix:
1010
env: DEPS=low
1111
- node_js: "10"
1212
- node_js: "12"
13+
- node_js: "13"
14+
- node_js: "14"
1315
before_install:
1416
- if [ "$DEPS" = "low" ]; then npm i -S eslint@5.0.0 eslint-plugin-vue@5.0.0 vue-eslint-parser@5.0.0; fi
1517
before_deploy:

.vscode/settings.json

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,28 @@
88
"typescript.validate.enable": true,
99
"javascript.validate.enable": false,
1010
"eslint.workingDirectories": [
11-
{"directory": "./", "changeProcessCWD": true },
12-
{"directory": "./docs/.vuepress", "changeProcessCWD": true }
11+
"./", "./docs/.vuepress"
1312
],
1413
"vetur.validation.script": false,
1514
"vetur.validation.style": false,
1615
"css.validate": false,
1716
"typescript.tsdk": "node_modules/typescript/lib",
1817
"editor.codeActionsOnSave": {
19-
"source.fixAll.eslint": true
18+
"source.fixAll.eslint": true,
19+
"source.fixAll.stylelint": true,
2020
},
21-
"editor.codeActionsOnSaveTimeout": 7500
21+
"editor.codeActionsOnSaveTimeout": 7500,
22+
"stylelint.customSyntax": "stylelint-plugin-stylus/custom-syntax",
23+
"stylelint.validate": [
24+
"css",
25+
"html",
26+
"less",
27+
"postcss",
28+
"sass",
29+
"scss",
30+
"vue",
31+
"vue-html",
32+
"vue-postcss",
33+
"stylus"
34+
]
2235
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
module.exports = {
2+
extends: ["stylelint-config-standard"],
3+
rules: {
4+
"no-descending-specificity": null,
5+
indentation: null,
6+
"selector-max-empty-lines": null,
7+
"selector-type-no-unknown": null,
8+
"block-no-empty": null
9+
},
10+
}
11+

docs/.vuepress/components/playground-block.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,10 +155,10 @@ function equalsRules(a, b) {
155155
flex-wrap: wrap;
156156
height: calc(100% - 100px);
157157
border: 1px solid #cfd4db;
158-
159158
background-color: #282c34;
160159
color: #f8c555;
161160
}
161+
162162
.main-content > .rules-settings {
163163
height: 100%;
164164
overflow: auto;
@@ -180,6 +180,7 @@ function equalsRules(a, b) {
180180
box-sizing: border-box;
181181
padding: 3px;
182182
}
183+
183184
.main-content > .editor-content > .messages {
184185
height: 30%;
185186
width: 100%;
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module.exports = {
2+
extends: ["stylelint-config-standard"],
3+
rules: {
4+
"no-descending-specificity": null,
5+
indentation: null,
6+
},
7+
}

docs/.vuepress/styles/index.styl

Lines changed: 56 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -1,81 +1,66 @@
1-
@media screen and (min-width:400px) and ( max-width:450px) {
2-
#app .navbar .site-name {
3-
font-size: calc(1.3rem * 0.8);
4-
}
5-
}
1+
@media screen and (min-width: 400px) and (max-width: 450px)
2+
#app .navbar .site-name
3+
font-size calc(1.3rem * 0.8)
64

7-
@media screen and (max-width:400px) {
8-
#app .navbar {
9-
.home-link {
10-
display: flex;
11-
height: 100%;
12-
align-items: center;
13-
.site-name {
14-
font-size: calc(1.3rem * 0.8);
15-
white-space: unset;
16-
line-height: 1em;
17-
}
18-
}
19-
}
20-
}
5+
@media screen and (max-width: 400px)
6+
#app .navbar
7+
.home-link
8+
display flex
9+
height 100%
10+
align-items center
11+
12+
.site-name
13+
font-size calc(1.3rem * 0.8)
14+
white-space unset
15+
line-height 1em
2116

2217
// rule-details
23-
.theme-container.rule-details .content__default > h1 {
24-
font-size: 1.8rem;
18+
.theme-container.rule-details .content__default > h1
19+
font-size 1.8rem
2520

26-
+ blockquote {
27-
margin-top: -15px;
28-
padding: 0;
29-
border: 0;
30-
font-weight: 500;
31-
font-size: 1.4rem;
32-
color: currentColor;
21+
+ blockquote
22+
margin-top -15px
23+
padding 0
24+
border 0
25+
font-weight 500
26+
font-size 1.4rem
27+
color currentColor
3328

34-
::first-letter {
35-
text-transform: uppercase;
36-
}
29+
::first-letter
30+
text-transform uppercase
3731

38-
p {
39-
line-height: 1.2;
40-
}
41-
}
42-
}
32+
p
33+
line-height 1.2
4334

4435
// playground
45-
.theme-container.playground {
46-
.content__default:not(.custom) {
47-
max-width: 900px;
48-
margin: 0 auto;
49-
padding: 2rem 2.5rem;
50-
}
36+
.theme-container.playground
37+
.content__default:not(.custom)
38+
max-width 900px
39+
margin 0 auto
40+
padding 2rem 2.5rem
41+
42+
.app
43+
height calc(100vh - 70px)
44+
45+
.sidebar-button
46+
display block
47+
48+
.navbar
49+
padding-left 4rem
50+
51+
.sidebar
52+
top 0
53+
padding-top 3.6rem
54+
transform translateX(-100%)
55+
transition transform 0.2s ease
56+
57+
.page
58+
padding-left 0
5159

52-
.app {
53-
height: calc(100vh - 70px);
54-
}
60+
.theme-container
61+
.sidebar
62+
transition transform 0.2s ease
5563

56-
.sidebar-button {
57-
display: block;
58-
}
59-
.navbar {
60-
padding-left: 4rem;
61-
}
62-
.sidebar {
63-
top: 0;
64-
padding-top: 3.6rem;
65-
transform: translateX(-100%);
66-
transition: transform 0.2s ease;
67-
}
68-
.page {
69-
padding-left: 0;
70-
}
71-
}
72-
.theme-container {
73-
.sidebar {
74-
transition: transform 0.2s ease;
75-
}
76-
}
77-
.theme-container.playground.sidebar-open {
78-
.sidebar {
79-
transform: translateX(0);
80-
}
81-
}
64+
.theme-container.playground.sidebar-open
65+
.sidebar
66+
transform translateX(0)

docs/.vuepress/styles/palette.styl

Whitespace-only changes.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
extends: ["stylelint-config-standard", "stylelint-plugin-stylus/standard"],
3+
rules: {
4+
"no-descending-specificity": null,
5+
},
6+
}

0 commit comments

Comments
 (0)