-
-
Notifications
You must be signed in to change notification settings - Fork 418
/
package.json
222 lines (222 loc) · 6.03 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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
{
"name": "@panzoom/panzoom",
"version": "4.5.1",
"description": "Pan and zoom elements anywhere using native transformations",
"main": "dist/panzoom.js",
"module": "dist/panzoom.es.js",
"source": "src/panzoom",
"types": "dist/src/panzoom.d.ts",
"scripts": {
"build": "yarn clean && rollup --config && yarn minify",
"clean": "rm -rf dist/",
"demo": "webpack --mode production",
"docs": "typedoc --plugin typedoc-plugin-markdown --hideBreadcrumbs --out docs --readme none src/panzoom.ts src/types.ts && yarn node tasks/docs.js",
"format": "eslint . --fix && prettier --write \"**/*.tsx\" \"**/*.ts\" \"**/*.js\" \"**/*.json\" \"**/*.md\"",
"lint": "concurrently --raw \"eslint .\" \"yarn prettier\" \"yarn typescript\"",
"minify": "uglifyjs --compress --mangle --comments /Timmy/ --output dist/panzoom.min.js -- dist/panzoom.js && yarn sizeup",
"prepare": "husky install && yarn build",
"prettier": "prettier --check \"**/*.md\" \"**/*.json\"",
"release": "release-it",
"sizeup": "yarn node tasks/gzipSize.mjs",
"start": "webpack serve",
"test": "yarn lint && concurrently \"yarn test:unit\" \"yarn test:node\"",
"test:unit": "yarn karma start",
"test:node": "yarn build && yarn node test/test-node.js",
"test:watch": "yarn karma start --singleRun=false --autoWatch",
"typescript": "tsc -p tsconfig.json --noEmit"
},
"files": [
"MIT-License.txt",
"src",
"dist",
"README.md"
],
"keywords": [
"panzoom",
"pan",
"zoom",
"draggable",
"dragging",
"drag"
],
"repository": "timmywil/panzoom",
"license": "MIT",
"author": {
"name": "Timmy Willison",
"email": "[email protected]"
},
"devDependencies": {
"@babel/core": "^7.19.0",
"@babel/preset-env": "^7.19.0",
"@commitlint/cli": "^17.1.2",
"@commitlint/config-conventional": "^17.1.0",
"@release-it/bumper": "4.0.0",
"@release-it/conventional-changelog": "5.1.0",
"@types/assert": "^1.5.6",
"@types/mocha": "^9.1.1",
"@types/prismjs": "^1.26.0",
"@types/react": "^18.0.18",
"@types/react-dom": "^18.0.6",
"@types/semver": "^7.3.12",
"@typescript-eslint/eslint-plugin": "^5.36.2",
"@typescript-eslint/parser": "^5.36.2",
"commitlint": "^17.1.2",
"concurrently": "^7.3.0",
"conventional-changelog-conventionalcommits": "^5.0.0",
"cross-env": "^7.0.3",
"css-loader": "^6.7.1",
"eslint": "^8.23.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.31.7",
"gzip-size": "^7.0.0",
"html-webpack-plugin": "^5.5.0",
"husky": "^8.0.1",
"karma": "^6.4.0",
"karma-firefox-launcher": "^2.1.2",
"karma-mocha": "^2.0.1",
"karma-typescript": "^5.5.3",
"marked": "^4.1.0",
"mocha": "^10.0.0",
"prettier": "^2.7.1",
"prismjs": "^1.29.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"release-it": "15.4.1",
"rollup": "^2.79.0",
"rollup-plugin-typescript2": "^0.33.0",
"semver": "^7.3.7",
"style-loader": "^3.3.1",
"ts-loader": "^9.3.1",
"tslib": "^2.4.0",
"typedoc": "^0.23.14",
"typedoc-plugin-markdown": "^3.13.6",
"typescript": "~4.8.2",
"uglify-js": "^3.17.0",
"webpack": "^5.74.0",
"webpack-cli": "^4.10.0",
"webpack-dev-server": "^4.10.1"
},
"prettier": {
"printWidth": 100,
"semi": false,
"singleQuote": true,
"arrowParens": "always",
"trailingComma": "none"
},
"eslintConfig": {
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint",
"react",
"prettier"
],
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"prettier"
],
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"project": "./tsconfig.json",
"extraFileExtensions": [
".mjs",
".cjs"
],
"ecmaFeatures": {
"jsx": true
}
},
"globals": {
"ga": "readonly"
},
"settings": {
"react": {
"version": "detect"
}
},
"rules": {
"no-unused-vars": "off",
"prettier/prettier": "error",
"@typescript-eslint/explicit-function-return-type": 0,
"@typescript-eslint/no-var-requires": 0,
"@typescript-eslint/no-use-before-define": 0,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/explicit-module-boundary-types": 0,
"@typescript-eslint/no-unused-vars": [
"error",
{
"args": "after-used",
"argsIgnorePattern": "^_"
}
]
}
},
"eslintIgnore": [
"node_modules/",
"coverage/",
"demo/demo/",
"demo/panzoom.js",
"dist/",
"docs/"
],
"commitlint": {
"extends": [
"@commitlint/config-conventional"
],
"rules": {
"header-max-length": [
2,
"always",
80
]
}
},
"publishConfig": {
"access": "public"
},
"release-it": {
"hooks": {
"before:init": "yarn test",
"after:bump": "yarn docs && git add README.md && git add dist/panzoom.* dist/src/ -f",
"after:git:release": "git rm -r --cached dist/ && git commit -m \"chore(release): remove dist after release\" -n && git push"
},
"git": {
"commitMessage": "chore: release ${version}",
"tagName": "${version}"
},
"npm": {
"publish": true
},
"github": {
"release": true,
"tokenRef": "PERSONAL_WEBSITE_GITHUB_TOKEN"
},
"plugins": {
"@release-it/bumper": {
"out": "README.md"
},
"@release-it/conventional-changelog": {
"preset": {
"name": "conventionalcommits",
"types": [
{
"type": "feat",
"section": "Features"
},
{
"type": "fix",
"section": "Bug Fixes"
},
{
"type": "perf",
"section": "Performance Improvements"
}
]
}
}
}
},
"packageManager": "[email protected]"
}