-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
57 lines (57 loc) · 2.79 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
{
"name": "webext-boilerplate",
"version": "0.0.1",
"license": "MIT",
"scripts": {
"build": "npm run build:esbuild",
"build:release": "npm run test && npm run lint && npm run build && npm run package",
"build:esbuild": "node esbuild.mjs --bundle --sourcemap && sh ./copystatic.sh",
"gen:tl-key": "node gen-tl-key.js > src/tl.ts",
"d:webext": "web-ext run --watch-file ./dist/**/*.{js,css,html} --verbose --start-url about:debugging --start-url about:addons --start-url https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API --start-url https://en.wikipedia.org",
"d:noenv": "env -u WEB_EXT_API_KEY -u WEB_EXT_API_SECRET npm run d",
"d:stable-x64": "web-ext run --firefox=\"C:/Program Files/Mozilla Firefox/firefox.exe\" --config=.web-ext-config.js",
"d:nightly:win": "web-ext run --verbose --firefox=\"C:/Program Files/Firefox Nightly/firefox.exe\" -s=\".\" --config=.web-ext-config.js",
"d:esbuild": "cross-env WATCH=1 npm run build:esbuild",
"d:locale:en": "npm run d:webext --pref intl.locale.requested=en --pref intl.locale.matchOS=false",
"d:locale:ja": "npm run d:webext --pref intl.locale.requested=ja --pref intl.locale.matchOS=false",
"d:nightly": "npm run web-ext run --firefox=nightly",
"lint": "npm run tsc:check && npm run lint:webext && npm run lint:prettier && npm run lint:eslint",
"lint:webext": "web-ext lint",
"lint:eslint": "eslint . --max-warnings 0",
"lint:prettier": "prettier --check .",
"lint:prettier:fix": "prettier --write .",
"package": "sh ./copystatic.sh && env -u WEB_EXT_API_KEY -u WEB_EXT_API_SECRET web-ext build --overwrite-dest --ignore-files test docs build-and-test.sh build-and-package.sh copystatic.sh docker-compose.build.yml docker-compose.test.yml Dockerfile package-lock.json eslint.config.js jest.config.js esbuild.mjs",
"test:watch": "jest --watch",
"test": "jest",
"tsc:check:no-error": "tsc --noEmit --skipLibCheck || true",
"tsc:check": "tsc --noEmit --skipLibCheck"
},
"devDependencies": {
"@eslint/js": "^9.2.0",
"@testing-library/jest-dom": "^6.4.5",
"@testing-library/react": "^15.0.6",
"@types/chrome": "0.0.267",
"@types/jest": "29.5.12",
"@types/node": "^20.12.8",
"@types/react": "18.3.1",
"@types/react-dom": "18.3.0",
"@types/webextension-polyfill": "^0.10.7",
"cross-env": "^7.0.3",
"esbuild": "^0.20.2",
"esbuild-jest": "^0.5.0",
"eslint": "^9.2.0",
"eslint-config-prettier": "^9.1.0",
"jest": "29.7.0",
"jest-environment-jsdom": "^29.7.0",
"jest-webextension-mock": "3.8.16",
"prettier": "3.2.5",
"typescript": "^5.4.5",
"typescript-eslint": "^7.8.0",
"web-ext": "7.11.0"
},
"dependencies": {
"react": "18.3.1",
"react-dom": "18.3.1",
"webextension-polyfill": "^0.11.0"
}
}