-
-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathpackage.json
81 lines (81 loc) · 2.2 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
{
"name": "canvas-size",
"version": "2.0.0",
"description": "Determine the maximum area, height, width, and custom dimensions of an HTML canvas element.",
"author": "John Hildenbiddle <http://hildenbiddle.com>",
"license": "MIT",
"homepage": "https://jhildenbiddle.github.io/canvas-size",
"repository": {
"type": "git",
"url": "git+https://[email protected]/jhildenbiddle/canvas-size.git"
},
"bugs": {
"url": "https://github.com/jhildenbiddle/canvas-size/issues"
},
"keywords": [
"area",
"canvas",
"height",
"html",
"limit",
"max",
"maximum",
"offscreen",
"offscreencanvas",
"promise",
"scale",
"size",
"test",
"web worker",
"worker",
"width"
],
"files": [
"dist"
],
"type": "module",
"main": "dist/canvas-size.js",
"module": "dist/canvas-size.esm.js",
"unpkg": "dist/canvas-size.min.js",
"lint-staged": {
"*.{j,t}s{x}, {c,m}js, json, html, {s}css": [
"eslint",
"prettier --write"
],
"*.md": [
"markdownlint"
]
},
"scripts": {
"prepare": "husky && rimraf dist/*.js* && npm run build",
"build": "rollup -c",
"dev": "npm start & npm run test:watch & npm run serve",
"lint": "prettier . --check && eslint . && markdownlint *.md",
"lint:fix": "prettier . --write && eslint . --fix",
"serve": "node server.js",
"start": "rimraf coverage/* && npm run build -- --watch",
"test": "rimraf coverage/* && npx playwright test",
"test:chrome": "npm test -- --project='chromium'",
"test:watch": "npm test -- --ui",
"version": "npm run prepare && npm run lint && npm run test"
},
"devDependencies": {
"@babel/preset-env": "^7.23.9",
"@playwright/test": "^1.41.2",
"@rollup/plugin-babel": "^6.0.3",
"@rollup/plugin-eslint": "^9.0.3",
"@rollup/plugin-terser": "^0.4.0",
"@types/node": "^20.11.16",
"browser-sync": "^3.0.2",
"eslint": "^7.32.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-playwright": "^0.22.2",
"husky": "^9.0.10",
"lint-staged": "^15.2.2",
"markdownlint-cli": "^0.39.0",
"mergician": "^2.0.0",
"prettier": "^3.2.5",
"rimraf": "^5.0.5",
"rollup": "^2.79.1"
}
}