-
Notifications
You must be signed in to change notification settings - Fork 15
/
package.json
121 lines (121 loc) · 2.62 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
{
"name": "vue-monolith-example",
"version": "0.0.0",
"private": true,
"workspaces": [
"backend",
"frontend"
],
"cacheDirectories": [
"node_modules",
"backend/node_modules",
"frontend/node_modules",
"frontend/dist"
],
"scripts": {
"predev": "yarn install",
"dev:backend": "yarn --cwd backend dev",
"dev:frontend": "yarn --cwd frontend dev",
"dev": "run-p dev:*",
"lint:eslint": "eslint --fix",
"lint:markdownlint": "markdownlint",
"lint:prettier": "prettier --write --loglevel warn",
"lint:all:eslint": "yarn lint:eslint --ext .js,.vue",
"lint:all:markdownlint": "yarn lint:markdownlint *.md",
"lint:all:prettier": "yarn lint:prettier \"**/*.{json,js,vue,md}\"",
"lint": "run-s lint:all:*",
"build": "yarn --cwd frontend build",
"heroku-postbuild": "yarn build",
"start": "yarn --cwd backend start"
},
"gitHooks": {
"pre-commit": "lint-staged"
},
"engines": {
"node": ">=8.11.3",
"yarn": ">=1.0.0"
},
"devDependencies": {
"@vue/cli-plugin-eslint": "3.1.x",
"@vue/eslint-config-prettier": "4.0.x",
"@vue/eslint-config-standard": "4.0.x",
"cross-env": "5.2.x",
"imagemin-lint-staged": "0.3.x",
"lint-staged": "8.0.x",
"markdownlint-cli": "0.13.x",
"npm-run-all": "4.1.x",
"yorkie": "2.0.x"
},
"browserslist": [
"> 1%",
"last 2 versions",
"not ie <= 8"
],
"eslintConfig": {
"root": true,
"parserOptions": {
"sourceType": "script"
},
"extends": [
"plugin:vue/recommended",
"standard",
"prettier",
"prettier/standard"
],
"overrides": [
{
"files": [
"frontend/src/**/*"
],
"parserOptions": {
"parser": "babel-eslint",
"sourceType": "module"
},
"env": {
"browser": true
}
}
]
},
"eslintIgnore": [
"node_modules/",
"dist/"
],
"lint-staged": {
"*.json": [
"yarn lint:prettier",
"git add"
],
"*.js": [
"yarn lint:eslint",
"yarn lint:prettier",
"git add"
],
"*.vue": [
"yarn lint:eslint",
"yarn lint:prettier",
"git add"
],
"*.md": [
"markdownlint",
"yarn lint:prettier",
"git add"
],
"*.{png,jpeg,jpg,gif,svg}": [
"imagemin-lint-staged",
"git add"
]
},
"prettier": {
"printWidth": 80,
"tabWidth": 2,
"useTabs": false,
"semi": false,
"singleQuote": true,
"trailingComma": "es5",
"bracketSpacing": true,
"jsxBracketSameLine": false,
"arrowParens": "avoid",
"proseWrap": "never"
}
}