-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathpackage.json
83 lines (83 loc) · 2.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
{
"name": "sw-test-env",
"description": "A sandboxed ServiceWorker environment for testing",
"version": "3.0.0",
"author": "Alexander Pope <alex@pope-industries.com>",
"contributors": [
"Ola Christian Gundelsby <ola.christian.gundelsby@nrk.no>"
],
"repository": "https://github.com/popeindustries/sw-test-env.git",
"license": "MIT",
"keywords": [
"mock",
"pseudo",
"sandbox",
"service worker",
"ServiceWorker",
"test",
"testing",
"worker"
],
"type": "module",
"main": "sw-test-env.js",
"files": [
"bin",
"*.d.ts",
"*.js",
"README.MD"
],
"engines": {
"node": ">=16"
},
"scripts": {
"build": "node ./scripts/build.js",
"clean": "rm -f ./test/*.js && rm -rf docs",
"format": "prettier --write './{src,test}/**/*'",
"lint": "pnpm run lint:src && pnpm run lint:types",
"lint:src": "eslint './{src,test}/**/*.js'",
"lint:types": "tsc --noEmit --skipLibCheck",
"preinstall": "npx only-allow pnpm",
"prepare": "husky install",
"test": "pnpm run build && mocha test/*.js --reporter spec --bail"
},
"dependencies": {
"esbuild": "~0.14.27",
"fake-indexeddb": "^3.1.7",
"form-data": "^4.0.0",
"mime-types": "^2.1.35",
"node-fetch": "^3.2.3"
},
"devDependencies": {
"@types/chai": "^4.3.0",
"@types/mime-types": "^2.1.1",
"@types/mocha": "^9.1.0",
"@types/node": "^17.0.23",
"@typescript-eslint/eslint-plugin": "^5.16.0",
"@typescript-eslint/parser": "^5.16.0",
"chai": "^4.3.6",
"dvlp": "^14.2.0",
"eslint": "^8.11.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.0.0",
"glob": "^7.2.0",
"husky": "^7.0.4",
"lint-staged": "^12.3.7",
"mocha": "^9.2.2",
"prettier": "^2.6.1",
"typescript": "4.6.3"
},
"prettier": {
"arrowParens": "always",
"printWidth": 120,
"singleQuote": true,
"trailingComma": "all"
},
"lint-staged": {
"*.js": [
"eslint"
],
"*.{js,json,md,html}": [
"prettier --write"
]
}
}