-
Notifications
You must be signed in to change notification settings - Fork 80
/
package.json
186 lines (186 loc) · 6.52 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
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
{
"name": "rikaikun",
"version": "3.0.2",
"description": "rikaikun is a Chrome extension that helps you to read Japanese web pages by showing the reading and English definition of Japanese words when you hover over them.",
"private": true,
"engines": {
"node": ">=20.0.0"
},
"type": "module",
"scripts": {
"prepare": "husky",
"postinstall": "([ \"$CI\" != true ]) && npm run test:update-baselines || exit 0",
"checktypes": "tsc --noEmit",
"build": "snowpack build",
"eslint:check": "eslint \"**/*.cjs\" \"**/*.ts\" \"**/*.js\" \"**/*.json\"",
"eslint:fix": "npm run eslint:check --silent -- --fix",
"fix": "npm run prettier:format --silent && npm run eslint:fix --silent && npm run stylelint:fix --silent",
"lint": "npm run eslint:check --silent && npm run prettier:check --silent && npm run stylelint:check --silent",
"presubmit:base": "npm run lint && npm run checktypes && npm run build",
"presubmit": "npm run presubmit:base && npm run test:small",
"presubmit:coverage": "npm run presubmit:base && npm test -- --coverage",
"prettier:base": "prettier --config .prettierrc.js --ignore-path '.gitignore' .",
"prettier:check": "npm run prettier:base --silent -- --check",
"prettier:format": "npm run prettier:base --silent -- --write",
"stylelint:check": "stylelint '**/*.css' '**/*.ts' --ignore-path '.gitignore'",
"stylelint:fix": "npm run stylelint:check --silent -- --fix",
"test": "wtr \"extension/test/*_test.ts\"",
"test:small": "wtr --files \"extension/test/background_test.ts\" \"extension/test/data_test.ts\" \"extension/test/docs-annotate-canvas_test.ts\" \"extension/test/rikaicontent_test.ts\"",
"test:browserstack": "npm run test -- --browserstack",
"test:watch": "npm run test -- --watch",
"test:update-baselines": "npm run test -- --update-visual-baseline",
"update-db": "node --loader ts-node/esm utils/update-db.ts"
},
"repository": {
"type": "git",
"url": "git+https://github.com/melink14/rikaikun.git"
},
"keywords": [
"japanese",
"chrome",
"extension",
"javascript"
],
"author": "melink14",
"license": "GPL-3.0",
"bugs": {
"url": "https://github.com/melink14/rikaikun/issues"
},
"homepage": "https://github.com/melink14/rikaikun#readme",
"dependencies": {
"lit": "^3.2.0",
"lit-toast": "^1.5.1"
},
"devDependencies": {
"@commitlint/cli": "^19.4.1",
"@commitlint/config-conventional": "^19.4.1",
"@eslint/js": "^9.10.0",
"@esm-bundle/chai": "^4.3.4",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/exec": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@snowpack/web-test-runner-plugin": "^0.2.2",
"@stylelint/postcss-css-in-js": "^0.38.0",
"@types/byline": "^4.2.36",
"@types/chai": "^4.3.19",
"@types/chai-like": "^1.1.3",
"@types/chai-things": "^0.0.38",
"@types/chrome": "^0.0.270",
"@types/mocha": "^10.0.7",
"@types/node": "^20.16.5",
"@types/simulant": "^0.2.2",
"@types/sinon-chai": "^3.2.12",
"@types/sinon-chrome": "^2.2.15",
"@web/test-runner": "^0.18.3",
"@web/test-runner-browserstack": "^0.7.2",
"@web/test-runner-chrome": "^0.16.0",
"@web/test-runner-commands": "^0.9.0",
"@web/test-runner-puppeteer": "^0.16.0",
"@web/test-runner-visual-regression": "^0.9.0",
"byline": "^5.0.0",
"chai-like": "^1.1.1",
"chai-things": "^0.2.0",
"conventional-changelog-conventionalcommits": "~8.0.0",
"csv-parse": "^5.5.6",
"eslint": "^9.10.0",
"eslint-config-prettier": "^9.1.0",
"eslint-import-resolver-typescript": "^3.6.3",
"eslint-plugin-chai-friendly": "^1.0.1",
"eslint-plugin-import-x": "^4.2.1",
"eslint-plugin-json": "^4.0.1",
"eslint-plugin-lit": "^1.15.0",
"eslint-plugin-mocha": "^10.5.0",
"eslint-plugin-n": "^17.10.2",
"eslint-plugin-promise": "^7.1.0",
"eslint-plugin-sort-imports-es6-autofix": "^0.6.0",
"eslint-plugin-tsdoc": "^0.3.0",
"globals": "^15.9.0",
"husky": "^9.1.5",
"iconv-lite": "^0.6.3",
"is-docker": "^3.0.0",
"prettier": "^3.3.3",
"prettier-plugin-jsdoc": "^1.3.0",
"semantic-release": "^24.1.0",
"semantic-release-chrome": "^3.2.0",
"simulant": "^0.2.2",
"sinon": "^18.0.0",
"sinon-chai": "^3.7.0",
"sinon-chrome": "^3.0.1",
"snowpack": "^3.8.8",
"snowpack-plugin-replace": "^1.0.4",
"stylelint": "^16.9.0",
"stylelint-config-standard": "^36.0.1",
"stylelint-order": "^6.0.4",
"ts-lit-plugin": "^2.0.2",
"ts-node": "^10.9.2",
"typescript": "^5.5.4",
"typescript-eslint": "^8.4.0"
},
"overrides": {
"chokidar": ">=3.6.0",
"esbuild": "^0.23.1",
"glob-parent": ">=5.1.2"
},
"release": {
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
[
"@semantic-release/changelog",
{
"changelogTitle": "# Changelog\n\nStarting with 1.0.0 rikaikun uses [Semantic Versioning](https://semver.org/spec/v2.0.0.html) to\nconsistently version releases as follows:\n\n- Major: Minimum required chrome version advances.\n- Minor: New user visible feature added. (contains feat commits)\n- Patch: Bug fix to previous feature. (contains only fix commits)"
}
],
"@semantic-release/npm",
[
"@semantic-release/exec",
{
"prepareCmd": "npm run fix && npm run lint && npm run build"
}
],
[
"semantic-release-chrome",
{
"asset": "rikaikun.zip",
"extensionId": "jipdnfibhldikgcjhfnomkfpcebammhp"
}
],
[
"@semantic-release/exec",
{
"prepareCmd": "cp dist/manifest.json extension/manifest.json && npm run fix && npm run lint && npm i"
}
],
[
"@semantic-release/git",
{
"assets": [
"CHANGELOG.md",
"extension/manifest.json",
"package.json",
"package-lock.json"
],
"message": "chore(release): ${nextRelease.version}\n\n${nextRelease.notes}"
}
],
[
"@semantic-release/github",
{
"assets": [
{
"path": "rikaikun.zip",
"name": "rikaikun_${nextRelease.gitTag}.zip",
"label": "Packaged chrome extension (${nextRelease.gitTag})"
}
],
"addReleases": "top"
}
]
],
"preset": "conventionalcommits",
"branches": [
"main"
],
"repositoryUrl": "[email protected]:melink14/rikaikun.git"
}
}