-
Notifications
You must be signed in to change notification settings - Fork 12
/
package.json
112 lines (112 loc) · 2.63 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
{
"name": "vue-paintable",
"version": "2.1.4",
"description": "Draw on any screen",
"author": "Ph1p <[email protected]>",
"keywords": [
"canvas",
"vue",
"paintable",
"touch",
"mouse"
],
"repository": {
"type": "git",
"url": "https://github.com/ph1p/vue-paintable"
},
"scripts": {
"serve": "yarn build && vue-cli-service serve",
"build": "vue-cli-service build --mode production --target lib --name paintable ./src/plugin.js && rm ./dist/demo.html",
"now-build": "yarn build && vue-cli-service build ./src/main.js --dest ./demo",
"lint": "vue-cli-service lint",
"test": "vue-cli-service test:unit"
},
"browser": "dist/paintable.common.js",
"unpkg": "dist/paintable.umd.min.js",
"files": [
"dist/paintable.common.js",
"dist/paintable.umd.min.js",
"dist/paintable.umd.js"
],
"devDependencies": {
"@vue/cli-plugin-babel": "^4.5.10",
"@vue/cli-plugin-eslint": "^4.5.10",
"@vue/cli-plugin-pwa": "^4.5.10",
"@vue/cli-plugin-unit-jest": "^4.5.10",
"@vue/cli-service": "^4.5.10",
"@vue/eslint-config-prettier": "^6.0.0",
"@vue/test-utils": "1.1.2",
"babel-eslint": "^10.1.0",
"eslint": "^7.18.0",
"eslint-plugin-prettier": "^3.3.1",
"eslint-plugin-vue": "^7.4.1",
"lint-staged": "^10.5.3",
"vue": "^2.6.12",
"vue-template-compiler": "^2.6.12"
},
"prettier": {
"singleQuote": true
},
"eslintConfig": {
"root": true,
"env": {
"node": true
},
"extends": [
"plugin:vue/essential",
"@vue/prettier"
],
"rules": {
"no-console": 0
}
},
"postcss": {
"plugins": {
"autoprefixer": {}
}
},
"browserslist": [
"> 1%",
"last 2 versions",
"not ie <= 8"
],
"jest": {
"moduleFileExtensions": [
"js",
"jsx",
"json",
"vue"
],
"transform": {
"^.+\\.vue$": "vue-jest",
".+\\.(css|styl|less|sass|scss|svg|png|jpg|ttf|woff|woff2)$": "jest-transform-stub",
"^.+\\.jsx?$": "babel-jest"
},
"transformIgnorePatterns": [
"/node_modules/"
],
"moduleNameMapper": {
"^@/(.*)$": "<rootDir>/src/$1"
},
"snapshotSerializers": [
"jest-serializer-vue"
],
"testMatch": [
"**/tests/unit/**/*.spec.(js|jsx|ts|tsx)|**/__tests__/*.(js|jsx|ts|tsx)"
],
"testURL": "http://localhost/",
"watchPlugins": [
"jest-watch-typeahead/filename",
"jest-watch-typeahead/testname"
]
},
"gitHooks": {
"pre-commit": "yarn build && git add dist && lint-staged"
},
"lint-staged": {
"./src/*.{js,vue}": [
"vue-cli-service lint",
"git add"
]
}
}