-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
105 lines (105 loc) · 3.32 KB
/
Copy pathpackage.json
File metadata and controls
105 lines (105 loc) · 3.32 KB
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
{
"name": "lingoflow",
"description": "A lightweight bilingual translation Chrome extension.",
"version": "1.1.1",
"author": "Gabe<yugang2002@gmail.com>",
"private": true,
"dependencies": {
"@emotion/cache": "^11.11.0",
"@emotion/css": "^11.13.5",
"@emotion/react": "^11.11.1",
"@emotion/styled": "^11.11.0",
"@mui/icons-material": "^5.15.15",
"@mui/lab": "5.0.0-alpha.170",
"@mui/material": "^5.15.15",
"@streamparser/json": "^0.0.22",
"dompurify": "^3.4.0",
"query-string": "^8.1.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-markdown": "^8.0.7",
"react-router-dom": "^6.16.0",
"react-scripts": "5.0.1",
"sval": "^0.5.2",
"webextension-polyfill": "^0.10.0"
},
"scripts": {
"start": "cross-env REACT_APP_CLIENT=chrome react-app-rewired start",
"sync-version": "zx src/scripts/sync-version.mjs",
"version:patch": "zx src/scripts/update-version.mjs patch",
"version:minor": "zx src/scripts/update-version.mjs minor",
"version:major": "zx src/scripts/update-version.mjs major",
"version:set": "zx src/scripts/update-version.mjs set",
"build:chrome": "zx src/scripts/build-task.mjs --target=chrome",
"format": "prettier --write \"**/*.{js,json,html}\"",
"lint": "eslint src --ext .js,.jsx,.ts,.tsx",
"lint:fix": "eslint src --ext .js,.jsx,.ts,.tsx --fix",
"i18n:report": "node src/scripts/dynamic-i18n-report.mjs",
"test:ci": "cross-env CI=true react-app-rewired test --watchAll=false --runInBand",
"build:ci": "cross-env REACT_APP_CLIENT=chrome CI=true react-app-rewired build",
"build": "pnpm sync-version && pnpm format && pnpm build:chrome",
"zip": "zx src/scripts/archive.mjs",
"build+zip": "cross-env CI=true pnpm build && pnpm zip",
"test": "react-app-rewired test",
"test:subtitle-segmentation": "babel-node src/scripts/test-subtitle-segmentation.js",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
],
"overrides": [
{
"files": [
"src/**/*.test.js",
"src/**/*.test.jsx",
"src/**/*.test.tsx"
],
"rules": {
"testing-library/no-container": "off",
"testing-library/render-result-naming-convention": "off",
"testing-library/no-unnecessary-act": "off",
"require-yield": "off",
"no-useless-constructor": "off"
}
}
],
"globals": {
"globalThis": true,
"LanguageDetector": true,
"Translator": true
}
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"@babel/core": "^7.22.20",
"@babel/node": "^7.22.19",
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
"@babel/preset-env": "^7.22.20",
"@types/chrome": "^0.2.5",
"@types/jest": "^27.5.2",
"@types/node": "^18.19.130",
"@types/react": "^18.3.31",
"@types/react-dom": "^18.3.7",
"bestzip": "^2.2.1",
"cross-env": "^7.0.3",
"dotenv": "^17.2.1",
"find-up": "^7.0.0",
"prettier": "3.6.2",
"react-app-rewired": "^2.2.1",
"typescript": "^5.9.3",
"zx": "^8.8.1"
}
}