-
Notifications
You must be signed in to change notification settings - Fork 364
/
Copy pathpackage.json
141 lines (141 loc) · 3.84 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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
{
"name": "markdown-online-editor",
"version": "2.3.0",
"author": "nicejade",
"private": true,
"description": "Arya,是一款基于 Vue、Vditor,为未来而构建的在线 Markdown 编辑器;轻量且强大:内置粘贴 HTML 自动转换为 Markdown,支持 PPT 预览,以及绘制流程图、甘特图、时序图、任务列表、五线谱,可导出携带样式的图片、PDF、微信公众号特制的 HTML 等。",
"scripts": {
"start": "yarn serve",
"serve": "vue-cli-service serve --open",
"build": "vue-cli-service build",
"watcher": "onchange \"src/**/**/*.{js,css,scss,vue}\" -- prettier --write {{changed}}",
"prettier": "prettier --write \"src/**/**/*.{js,css,scss,vue}\"",
"lint": "vue-cli-service lint",
"test": "vue-cli-service test:unit",
"testbuild": "vue-cli-service build --mode development",
"deploy": "bash ./commands/deploy.sh",
"analyz": "NODE_ENV=production npm_config_report=true npm run build",
"clear-commit-msg": "bash ./commands/clear-commit-msg.sh",
"eslint-fix": "eslint src/**/**/*.vue --fix",
"format-code": "prettier-eslint --write \"src/**/*.{js,vue,css,scss}\"",
"precommit-msg": "echo '🐉 Start pre-commit checks...' && exit 0",
"preview": "node ./commands/preview.js"
},
"dependencies": {
"canvg": "^2.0.0",
"element-ui": "^2.12.0",
"hint.css": "^2.6.0",
"html2canvas": "^1.0.0-rc.3",
"html2pdf.js": "^0.9.1",
"lodash": "4.17.15",
"lodash.assign": "^4.2.0",
"lodash.clonedeep": "^4.5.0",
"register-service-worker": "^1.0.0",
"reveal.js": "^3.8.0",
"vditor": "3.10.8",
"vue": "^2.5.17",
"vue-meta": "^2.2.2",
"vue-router": "^3.1.3"
},
"devDependencies": {
"@vue/cli-plugin-babel": "^3.11.0",
"@vue/cli-plugin-eslint": "^3.11.0",
"@vue/cli-plugin-pwa": "^3.11.0",
"@vue/cli-plugin-unit-jest": "^3.11.0",
"@vue/cli-service": "^3.11.0",
"@vue/test-utils": "^1.0.0-beta.29",
"babel-core": "7.0.0-bridge.0",
"babel-jest": "^24.9.0",
"css-loader": "^3.4.2",
"eslint-config-prettier": "^6.3.0",
"eslint-plugin-prettier": "^3.1.0",
"eslint-plugin-vue": "^5.2.3",
"husky": "^3.0.5",
"less": "^3.11.1",
"less-loader": "^5.0.0",
"lint-staged": "^9.2.5",
"onchange": "^6.1.0",
"prettier-eslint-cli": "^5.0.0",
"size-plugin": "^2.0.0",
"svg-sprite-loader": "^4.1.6",
"svgo-loader": "2.2.1",
"vue-svg-loader": "^0.12.0",
"vue-template-compiler": "^2.5.17",
"webpack-bundle-analyzer": "3.5.0"
},
"babel": {
"presets": [
"@vue/app"
]
},
"eslintConfig": {
"globals": {
"L": true
},
"root": true,
"env": {
"node": true,
"es6": true
},
"rules": {
"no-console": 0,
"no-useless-escape": 0,
"no-multiple-empty-lines": [
2,
{
"max": 3
}
],
"prettier/prettier": [
"error",
{
"singleQuote": true,
"semi": false,
"trailingComma": "none",
"bracketSpacing": true,
"jsxBracketSameLine": true,
"insertPragma": true,
"requirePragma": false
}
]
},
"plugins": [],
"extends": [
"plugin:vue/essential",
"plugin:prettier/recommended",
"eslint:recommended"
],
"parserOptions": {
"parser": "babel-eslint"
}
},
"prettier": {
"singleQuote": true,
"semi": false,
"printWidth": 100,
"proseWrap": "never"
},
"postcss": {
"plugins": {
"autoprefixer": {}
}
},
"browserslist": [
"> 1%",
"last 2 versions",
"not ie <= 8"
],
"eslintIgnore": [
"package.json"
],
"husky": {
"hooks": {
"pre-commit": "yarn run precommit-msg && lint-staged"
}
},
"lint-staged": {
"**/**.{js,json,pcss,vue,css,scss}": [
"prettier --write"
]
}
}