2023-03-15 16:18:51 +08:00
|
|
|
{
|
2023-03-15 17:09:28 +08:00
|
|
|
"name": "chatgptbox",
|
2026-02-28 06:42:39 +00:00
|
|
|
"engines": {
|
|
|
|
|
"node": ">=22"
|
|
|
|
|
},
|
2023-03-15 16:18:51 +08:00
|
|
|
"scripts": {
|
|
|
|
|
"build": "node build.mjs --production",
|
|
|
|
|
"build:safari": "bash ./safari/build.sh",
|
|
|
|
|
"dev": "node build.mjs --development",
|
|
|
|
|
"analyze": "node build.mjs --analyze",
|
|
|
|
|
"lint": "eslint --ext .js,.mjs,.jsx .",
|
2026-02-21 20:13:25 +08:00
|
|
|
"test": "node --import ./tests/setup/browser-shim.mjs --test",
|
2026-02-28 18:36:00 +08:00
|
|
|
"test:coverage": "c8 --all --reporter=text --reporter=lcov --reporter=json-summary --include=\"src/**/*.{mjs,jsx,js}\" node --import ./tests/setup/browser-shim.mjs --test",
|
2023-03-15 16:18:51 +08:00
|
|
|
"lint:fix": "eslint --ext .js,.mjs,.jsx . --fix",
|
|
|
|
|
"pretty": "prettier --write ./**/*.{js,mjs,jsx,json,css,scss}",
|
|
|
|
|
"stage": "run-script-os",
|
|
|
|
|
"stage:default": "git add $(git diff --name-only --cached --diff-filter=d)",
|
|
|
|
|
"stage:win32": "powershell git add $(git diff --name-only --cached --diff-filter=d)",
|
|
|
|
|
"verify": "node .github/workflows/scripts/verify-search-engine-configs.mjs"
|
|
|
|
|
},
|
|
|
|
|
"pre-commit": [
|
|
|
|
|
"pretty",
|
|
|
|
|
"stage",
|
|
|
|
|
"lint"
|
|
|
|
|
],
|
|
|
|
|
"dependencies": {
|
2025-09-02 02:51:54 +08:00
|
|
|
"@babel/runtime": "^7.24.7",
|
2025-07-26 16:38:54 +08:00
|
|
|
"@mozilla/readability": "^0.6.0",
|
2023-03-15 16:18:51 +08:00
|
|
|
"@nem035/gpt-3-encoder": "^1.1.7",
|
2024-07-30 16:47:42 +08:00
|
|
|
"@picocss/pico": "^1.5.13",
|
2023-04-22 12:57:10 +08:00
|
|
|
"@primer/octicons-react": "^18.3.0",
|
2023-12-03 23:31:04 +08:00
|
|
|
"buffer": "^6.0.3",
|
2023-03-15 16:18:51 +08:00
|
|
|
"countries-list": "^2.6.1",
|
2023-12-03 23:31:04 +08:00
|
|
|
"crypto-browserify": "^3.12.0",
|
2024-07-30 16:47:42 +08:00
|
|
|
"diff": "^5.2.0",
|
2023-03-15 16:18:51 +08:00
|
|
|
"file-saver": "^2.0.5",
|
2024-07-30 16:47:42 +08:00
|
|
|
"github-markdown-css": "^5.6.1",
|
2023-03-15 16:18:51 +08:00
|
|
|
"gpt-3-encoder": "^1.1.4",
|
2024-07-30 16:47:42 +08:00
|
|
|
"graphql": "^16.9.0",
|
2023-04-22 12:57:10 +08:00
|
|
|
"i18next": "^22.4.15",
|
2024-05-02 17:11:55 +08:00
|
|
|
"js-sha3": "^0.9.3",
|
2025-07-26 16:38:54 +08:00
|
|
|
"jsonwebtoken": "9.0.2",
|
2024-07-30 16:47:42 +08:00
|
|
|
"katex": "^0.16.11",
|
2023-03-15 16:18:51 +08:00
|
|
|
"lodash-es": "^4.17.21",
|
2023-04-17 20:54:16 +08:00
|
|
|
"md5": "^2.3.0",
|
2023-03-15 16:18:51 +08:00
|
|
|
"parse5": "^6.0.1",
|
2024-07-30 16:47:42 +08:00
|
|
|
"preact": "^10.22.1",
|
2023-12-03 23:31:04 +08:00
|
|
|
"process": "^0.11.10",
|
2023-03-15 16:18:51 +08:00
|
|
|
"prop-types": "^15.8.1",
|
2024-05-02 17:11:55 +08:00
|
|
|
"random-int": "^3.0.0",
|
2023-03-15 16:18:51 +08:00
|
|
|
"react": "npm:@preact/compat@^17.1.2",
|
2024-07-30 16:47:42 +08:00
|
|
|
"react-bootstrap-icons": "^1.11.4",
|
2023-03-15 16:18:51 +08:00
|
|
|
"react-dom": "npm:@preact/compat@^17.1.2",
|
2024-07-30 16:47:42 +08:00
|
|
|
"react-draggable": "^4.4.6",
|
2023-03-29 14:17:16 +08:00
|
|
|
"react-i18next": "^12.2.0",
|
2023-04-22 12:57:10 +08:00
|
|
|
"react-markdown": "^8.0.7",
|
2024-07-30 16:47:42 +08:00
|
|
|
"react-tabs": "^4.3.0",
|
|
|
|
|
"react-toastify": "^9.1.3",
|
2023-03-15 16:18:51 +08:00
|
|
|
"rehype-highlight": "^6.0.0",
|
2024-07-30 16:47:42 +08:00
|
|
|
"rehype-katex": "^6.0.3",
|
2023-03-15 16:18:51 +08:00
|
|
|
"rehype-raw": "^6.1.1",
|
2024-07-30 16:47:42 +08:00
|
|
|
"remark-breaks": "^3.0.3",
|
2023-03-15 16:18:51 +08:00
|
|
|
"remark-gfm": "^3.0.1",
|
|
|
|
|
"remark-math": "^5.1.1",
|
2023-12-03 23:31:04 +08:00
|
|
|
"stream-browserify": "^3.0.0",
|
|
|
|
|
"util": "^0.12.5",
|
2024-07-30 16:47:42 +08:00
|
|
|
"uuid": "^9.0.1",
|
|
|
|
|
"webextension-polyfill": "^0.12.0"
|
2023-03-15 16:18:51 +08:00
|
|
|
},
|
|
|
|
|
"devDependencies": {
|
2024-07-30 16:47:42 +08:00
|
|
|
"@babel/core": "^7.24.7",
|
|
|
|
|
"@babel/plugin-transform-react-jsx": "^7.24.7",
|
|
|
|
|
"@babel/plugin-transform-runtime": "^7.24.7",
|
|
|
|
|
"@babel/preset-env": "^7.24.7",
|
|
|
|
|
"@types/archiver": "^5.3.4",
|
|
|
|
|
"@types/fs-extra": "^11.0.4",
|
|
|
|
|
"@types/jsdom": "^21.1.7",
|
|
|
|
|
"@types/webextension-polyfill": "^0.10.7",
|
|
|
|
|
"archiver": "^5.3.2",
|
|
|
|
|
"babel-loader": "^9.1.3",
|
2026-02-28 18:36:00 +08:00
|
|
|
"c8": "^11.0.0",
|
2024-07-30 16:47:42 +08:00
|
|
|
"css-loader": "^6.11.0",
|
2026-03-06 14:46:43 +00:00
|
|
|
"css-minimizer-webpack-plugin": "^8.0.0",
|
2025-09-02 02:51:54 +08:00
|
|
|
"esbuild": "^0.25.9",
|
|
|
|
|
"esbuild-loader": "^4.3.0",
|
2025-07-26 16:38:54 +08:00
|
|
|
"eslint": "^8.57.1",
|
2024-07-30 16:47:42 +08:00
|
|
|
"eslint-plugin-react": "^7.34.3",
|
|
|
|
|
"fs-extra": "^11.2.0",
|
2023-04-17 20:54:16 +08:00
|
|
|
"graphql-tag": "^2.12.6",
|
2026-03-07 17:30:22 +00:00
|
|
|
"jsdom": "^28.1.0",
|
2024-07-30 16:47:42 +08:00
|
|
|
"less-loader": "^11.1.4",
|
|
|
|
|
"mini-css-extract-plugin": "^2.9.0",
|
|
|
|
|
"node-fetch": "^3.3.2",
|
2023-03-15 16:18:51 +08:00
|
|
|
"pre-commit": "^1.2.2",
|
2024-07-30 16:47:42 +08:00
|
|
|
"prettier": "^2.8.8",
|
2023-03-15 16:18:51 +08:00
|
|
|
"progress-bar-webpack-plugin": "^2.1.0",
|
|
|
|
|
"run-script-os": "^1.1.6",
|
2025-09-02 02:51:54 +08:00
|
|
|
"sass": "^1.91.0",
|
|
|
|
|
"sass-embedded": "^1.91.0",
|
|
|
|
|
"sass-loader": "^16.0.5",
|
2023-03-20 00:10:40 +08:00
|
|
|
"string-replace-loader": "^3.1.0",
|
2025-09-02 02:51:54 +08:00
|
|
|
"style-loader": "^4.0.0",
|
|
|
|
|
"thread-loader": "^4.0.4",
|
2024-07-30 16:47:42 +08:00
|
|
|
"webpack": "^5.92.1",
|
|
|
|
|
"webpack-bundle-analyzer": "^4.10.2"
|
2023-03-15 16:18:51 +08:00
|
|
|
}
|
|
|
|
|
}
|