File tree Expand file tree Collapse file tree 5 files changed +579
-331
lines changed Expand file tree Collapse file tree 5 files changed +579
-331
lines changed Original file line number Diff line number Diff line change 1
1
module . exports = {
2
2
root : true ,
3
-
4
3
env : {
5
4
browser : true ,
6
5
node : true ,
7
6
es6 : true
8
7
} ,
9
-
10
8
parserOptions : {
11
9
parser : '@typescript-eslint/parser' ,
12
10
sourceType : 'module'
13
11
} ,
14
-
15
12
plugins : [
16
13
'vue'
17
14
] ,
18
-
19
15
rules : {
20
16
'no-console' : process . env . NODE_ENV === 'production' ? 'error' : 'off' ,
21
17
'no-debugger' : process . env . NODE_ENV === 'production' ? 'error' : 'off' ,
@@ -32,7 +28,6 @@ module.exports = {
32
28
'vue/match-component-file-name' : 'error' ,
33
29
'vue/object-curly-spacing' : 'error'
34
30
} ,
35
-
36
31
'extends' : [
37
32
'eslint:recommended' ,
38
33
'plugin:vue/recommended' ,
Original file line number Diff line number Diff line change @@ -34,38 +34,37 @@ yarn install
34
34
### Compiles and hot-reloads for development
35
35
36
36
``` bash
37
- yarn serve
37
+ yarn run serve
38
38
```
39
39
40
40
### Compiles and minifies for production
41
41
42
42
``` bash
43
- yarn build
43
+ yarn run build
44
44
```
45
45
46
46
### Lints and fixes files
47
47
48
48
``` bash
49
- yarn lint
49
+ yarn run lint
50
50
```
51
51
52
52
### Run your unit tests
53
53
54
54
``` bash
55
- yarn test:unit
55
+ yarn run test:unit
56
56
```
57
57
58
58
### Run your end-to-end tests
59
59
60
60
``` bash
61
- yarn test:e2e
61
+ yarn run test:e2e
62
62
```
63
63
64
64
### Generate all svg components
65
65
66
66
``` bash
67
- yarn svg
68
- # Note: need to run "yarn global add vue-svgicon" first
67
+ yarn run svg
69
68
```
70
69
71
70
### Customize Vue configuration
Original file line number Diff line number Diff line change 14
14
"@types/clipboard" : " ^2.0.1" ,
15
15
"axios" : " ^0.18.0" ,
16
16
"clipboard" : " ^2.0.4" ,
17
- "element-ui" : " ^2.7.0 " ,
17
+ "element-ui" : " ^2.7.2 " ,
18
18
"js-cookie" : " ^2.2.0" ,
19
19
"mockjs" : " ^1.0.1-beta3" ,
20
20
"normalize.css" : " ^8.0.1" ,
53
53
"eslint" : " ^5.16.0" ,
54
54
"eslint-plugin-vue" : " ^5.2.2" ,
55
55
"fibers" : " ^3.1.1" ,
56
- "jest" : " ^24.6.0" ,
57
- "sass" : " ^1.17.3" ,
56
+ "jest" : " ^24.7.1" ,
57
+ "lint-staged" : " ^8.1.5" ,
58
+ "sass" : " ^1.17.4" ,
58
59
"sass-loader" : " ^7.1.0" ,
59
60
"ts-jest" : " ^24.0.1" ,
60
61
"typescript" : " 3.4.1" ,
61
62
"vue-cli-plugin-element" : " ^1.0.1" ,
62
63
"vue-template-compiler" : " ^2.6.10" ,
63
64
"webpack" : " ^4.29.6"
65
+ },
66
+ "gitHooks" : {
67
+ "pre-commit" : " lint-staged"
68
+ },
69
+ "lint-staged" : {
70
+ "*.{js,vue}" : [
71
+ " vue-cli-service lint" ,
72
+ " git add"
73
+ ]
64
74
}
65
75
}
Original file line number Diff line number Diff line change 1
1
module . exports = {
2
2
publicPath : process . env . NODE_ENV === 'production' ? '/vue-typescript-admin-template/' : '/' ,
3
-
4
3
pwa : {
5
4
name : 'vue-typescript-admin-template'
6
5
} ,
7
-
8
6
lintOnSave : process . env . NODE_ENV !== 'production'
9
7
}
You can’t perform that action at this time.
0 commit comments