forked from FooSoft/yomichan
-
Notifications
You must be signed in to change notification settings - Fork 105
/
package.json
120 lines (120 loc) · 5.39 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
{
"name": "yomitan",
"version": "0.0.0",
"description": "Japanese pop-up dictionary extension for Chrome and Firefox.",
"directories": {
"test": "test"
},
"engines": {
"node": ">=20.0.0"
},
"type": "module",
"scripts": {
"bench": "vitest bench",
"build": "node ./dev/bin/build.js",
"build:libs": "node ./dev/bin/build-libs.js",
"build:serve:firefox-android": "node ./dev/bin/build.js --target firefox-android && web-ext run -s ./builds/yomitan-firefox-android",
"build:serve:kiwi-browser": "node ./dev/bin/build.js --target chrome-dev && adb shell mkdir -p /sdcard/yomitan && adb push ./builds/yomitan-chrome-dev.zip /sdcard/yomitan/yomitan-kiwi-browser.zip",
"test": "npm run test:js && npm run test:ts && npm run test:css && npm run test:html && npm run test:unit && npm run test:unit:options && npm run test:json && npm run test:md && npm run test:build",
"test:fast": "npm run test:js && npm run test:ts && npm run test:unit && npm run test:json:format",
"test:static-analysis": "npm run test:js && npm run test:ts && npm run test:css && npm run test:html && npm run test:md",
"test:js": "npx eslint . --ignore-pattern **/*.json",
"test:json": "npm run test:json:format && npm run test:json:types",
"test:json:format": "npx eslint **/*.json",
"test:json:types": "vitest run --config test/data/vitest.json.config.json",
"test:css": "npx stylelint \"ext/**/*.css\" \"test/**/*.css\" \"dev/**/*.css\"",
"test:html": "npx html-validate \"ext/**/*.html\" \"test/**/*.html\" \"dev/**/*.html\"",
"test:md": "prettier . --check",
"test:md:write": "prettier . --write",
"test:ts": "npm run test:ts:main && npm run test:ts:dev && npm run test:ts:test && npm run test:ts:bench",
"test:ts:main": "npx tsc --noEmit --project jsconfig.json",
"test:ts:dev": "npx tsc --noEmit --project dev/jsconfig.json",
"test:ts:test": "npx tsc --noEmit --project test/jsconfig.json",
"test:ts:bench": "npx tsc --noEmit --project benches/jsconfig.json",
"test:unit": "vitest run",
"test:unit:write": "vitest run --config test/data/vitest.write.config.json",
"test:unit:options": "vitest run --config test/data/vitest.options.config.json",
"test:build": "node ./dev/bin/build.js --dryRun --all",
"license-report:html": "license-report --output=html --only=prod --fields=name --fields=installedVersion --fields=licenseType --fields=link --html.cssFile=dev/data/legal-npm.css > ext/legal-npm.html",
"license-report:markdown": "license-report --output=markdown --only=prod --fields=name --fields=installedVersion --fields=licenseType --fields=link",
"prepare": "husky install"
},
"repository": {
"type": "git",
"url": "git+https://github.com/yomidevs/yomitan.git"
},
"license": "GPL-3.0-or-later",
"licenses": [
{
"type": "GPL-3.0-or-later",
"url": "https://www.gnu.org/licenses/gpl-3.0.html"
}
],
"bugs": {
"url": "https://github.com/yomidevs/yomitan/issues"
},
"homepage": "https://github.com/yomidevs/yomitan/",
"webExt": {
"sourceDir": "ext"
},
"devDependencies": {
"@codspeed/vitest-plugin": "^3.1.0",
"@playwright/test": "^1.44.1",
"@stylistic/eslint-plugin": "^1.6.3",
"@stylistic/stylelint-plugin": "^2.1.2",
"@types/assert": "^1.5.10",
"@types/browserify": "^12.0.40",
"@types/chrome": "^0.0.268",
"@types/css": "^0.0.37",
"@types/events": "^3.0.3",
"@types/firefox-webext-browser": "^120.0.3",
"@types/jsdom": "^21.1.6",
"@types/node": "20.11.5",
"@types/wanakana": "^5.3.0",
"@types/zip.js": "^2.0.33",
"@typescript-eslint/eslint-plugin": "^7.18.0",
"@typescript-eslint/parser": "^7.18.0",
"@vitest/coverage-v8": "1.2.2",
"ajv": "^8.17.1",
"css": "^3.0.0",
"dotenv": "^16.4.5",
"esbuild": "^0.21.4",
"eslint": "^8.57.1",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-header": "^3.1.1",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jsdoc": "^48.2.7",
"eslint-plugin-jsonc": "^2.16.0",
"eslint-plugin-no-unsanitized": "^4.0.2",
"eslint-plugin-sonarjs": "^0.24.0",
"eslint-plugin-unicorn": "^51.0.1",
"eslint-plugin-unused-imports": "^3.2.0",
"eslint-plugin-vitest": "0.3.22",
"fake-indexeddb": "^5.0.2",
"handlebars": "^4.7.8",
"html-validate": "^8.19.1",
"husky": "^9.0.11",
"jsdom": "^24.1.0",
"jszip": "^3.10.1",
"license-report": "^6.5.0",
"lint-staged": "^15.2.5",
"prettier": "^3.2.5",
"stylelint": "^16.2.1",
"stylelint-config-recommended": "^14.0.0",
"ts-json-schema-generator": "^1.5.1",
"typescript": "^5.4.5",
"vitest": "^1.2.2"
},
"dependencies": {
"@zip.js/zip.js": "^2.7.45",
"dexie": "^3.2.5",
"dexie-export-import": "^4.1.2",
"hangul-js": "^0.2.6",
"parse5": "^7.1.2",
"wanakana": "^5.3.1",
"yomitan-handlebars": "git+https://github.com/yomidevs/yomitan-handlebars.git#12aff5e3550954d7d3a98a5917ff7d579f3cce25"
},
"lint-staged": {
"*.md": "prettier --write"
}
}