forked from timmywil/panzoom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
159 lines (159 loc) · 4.58 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
{
"name": "@panzoom/panzoom",
"version": "4.6.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",
"type": "module",
"scripts": {
"build": "npm run clean && rollup --config && npm run 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 && node tasks/docs.js",
"format": "eslint . --fix && prettier --write \"**/*.tsx\" \"**/*.ts\" \"**/*.js\" \"**/*.json\" \"**/*.md\"",
"lint": "concurrently --raw \"eslint .\" \"npm run prettier\" \"npm run typescript\"",
"minify": "uglifyjs --compress --mangle --comments /Timmy/ --output dist/panzoom.min.js -- dist/panzoom.js && npm run sizeup",
"prepare": "husky && npm run build",
"prettier": "prettier --check \"**/*.md\" \"**/*.json\"",
"release": "release-it",
"sizeup": "node tasks/gzipSize.mjs",
"start": "webpack serve",
"test": "npm run lint && concurrently \"npm run test:unit -- --headless\" \"npm run test:node\"",
"test:unit": "npm run typescript:tests && jtr",
"test:node": "npm run build && node test/test-node.cjs",
"typescript": "tsc -p tsconfig.json",
"typescript:tests": "tsc -p tsconfig.tests.json"
},
"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": "timmywil@users.noreply.github.com"
},
"devDependencies": {
"@commitlint/cli": "^19.6.1",
"@commitlint/config-conventional": "^19.6.0",
"@release-it/bumper": "7.0.0",
"@release-it/conventional-changelog": "10.0.0",
"@types/assert": "^1.5.11",
"@types/prismjs": "^1.26.5",
"@types/qunit": "^2.19.12",
"@types/react": "^19.0.7",
"@types/react-dom": "^19.0.3",
"@types/semver": "^7.5.8",
"@typescript-eslint/eslint-plugin": "^8.20.0",
"@typescript-eslint/parser": "^8.20.0",
"commitlint": "^19.6.1",
"concurrently": "^9.1.2",
"conventional-changelog-conventionalcommits": "^8.0.0",
"cross-env": "^7.0.3",
"css-loader": "^7.1.2",
"eslint": "^9.18.0",
"eslint-config-prettier": "^10.0.1",
"eslint-plugin-react": "^7.37.4",
"gzip-size": "^7.0.0",
"html-webpack-plugin": "^5.6.3",
"husky": "^9.1.7",
"jquery-test-runner": "^0.2.2",
"marked": "^15.0.6",
"prettier": "^3.4.2",
"prismjs": "^1.29.0",
"qunit": "^2.23.1",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"release-it": "18.1.1",
"rollup": "^4.30.1",
"rollup-plugin-typescript2": "^0.36.0",
"semver": "^7.6.3",
"style-loader": "^4.0.0",
"ts-loader": "^9.5.2",
"tslib": "^2.8.1",
"typedoc": "^0.27.6",
"typedoc-plugin-markdown": "^4.4.1",
"typescript": "~5.7.3",
"uglify-js": "^3.19.3",
"webpack": "^5.97.1",
"webpack-cli": "^6.0.1",
"webpack-dev-server": "^5.2.0"
},
"prettier": {
"printWidth": 100,
"semi": false,
"singleQuote": true,
"arrowParens": "always",
"trailingComma": "none"
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
],
"rules": {
"header-max-length": [
2,
"always",
80
]
}
},
"publishConfig": {
"access": "public"
},
"release-it": {
"hooks": {
"before:init": "npm test",
"after:bump": "npm run 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": "PANZOOM_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"
}
]
}
}
}
}
}