forked from timmywil/panzoom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
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.0",
"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.18.2",
"@babel/preset-env": "^7.18.2",
"@commitlint/cli": "^17.0.1",
"@commitlint/config-conventional": "^17.0.0",
"@release-it/bumper": "3.0.1",
"@release-it/conventional-changelog": "4.3.0",
"@types/assert": "^1.5.6",
"@types/mocha": "^9.1.1",
"@types/prismjs": "^1.26.0",
"@types/react": "^18.0.9",
"@types/react-dom": "^18.0.5",
"@types/semver": "^7.3.9",
"@typescript-eslint/eslint-plugin": "^5.26.0",
"@typescript-eslint/parser": "^5.26.0",
"commitlint": "^17.0.1",
"concurrently": "^7.2.1",
"conventional-changelog-conventionalcommits": "^4.6.3",
"cross-env": "^7.0.3",
"css-loader": "^6.7.1",
"eslint": "^8.16.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-react": "^7.30.0",
"gzip-size": "^7.0.0",
"html-webpack-plugin": "^5.5.0",
"husky": "^8.0.1",
"karma": "^6.3.20",
"karma-firefox-launcher": "^2.1.2",
"karma-mocha": "^2.0.1",
"karma-typescript": "^5.5.3",
"marked": "^4.0.16",
"mocha": "^10.0.0",
"prettier": "^2.6.2",
"prismjs": "^1.28.0",
"react": "^18.1.0",
"react-dom": "^18.1.0",
"release-it": "14.14.3",
"rollup": "^2.75.0",
"rollup-plugin-typescript2": "^0.31.2",
"semver": "^7.3.7",
"style-loader": "^3.3.1",
"ts-loader": "^9.3.0",
"tslib": "^2.4.0",
"typedoc": "^0.22.15",
"typedoc-plugin-markdown": "^3.12.1",
"typescript": "~4.7.2",
"uglify-js": "^3.15.5",
"webpack": "^5.72.1",
"webpack-cli": "^4.9.2",
"webpack-dev-server": "^4.9.0"
},
"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]"
}