mirror of
https://github.com/CodePhiliaX/Chat2DB.git
synced 2025-08-06 18:24:29 +08:00
138 lines
4.2 KiB
JSON
138 lines
4.2 KiB
JSON
{
|
|
"name": "chat2db",
|
|
"version": "1.0.0",
|
|
"private": true,
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/chat2db/Chat2DB"
|
|
},
|
|
"author": "fjy, hexi",
|
|
"main": "src/main/main.js",
|
|
"scripts": {
|
|
"build": "npm run build:web && npm run build:main",
|
|
"build:desktop": "npm run build:web:desktop && npm run build:main:prod",
|
|
"build:main": "cross-env NODE_ENV=development electron-builder",
|
|
"build:main:prod": "cross-env NODE_ENV=production electron-builder",
|
|
"build:prod": "npm run build:web:prod && npm run build:main:prod",
|
|
"build:web": "umi build",
|
|
"build:web:desktop": "cross-env UMI_ENV=desktop cross-env APP_VERSION=${npm_config_app_version} cross-env APP_PORT=${npm_config_app_port} umi build",
|
|
"build:web:prod": "cross-env UMI_ENV=prod cross-env APP_VERSION=${npm_config_app_version} cross-env APP_PORT=${npm_config_app_port} cross-env UMI_PublicPath=${npm_config_public_path} umi build",
|
|
"postinstall": "umi setup",
|
|
"lint": "umi lint",
|
|
"start": "concurrently \"npm run start:web\" \"npm run start:main\"",
|
|
"start:main": "cross-env NODE_ENV=development electron .",
|
|
"start:main:prod": "cross-env NODE_ENV=production electron .",
|
|
"start:web": "cross-env UMI_ENV=local HMR=none cross-env APP_VERSION=${npm_config_app_version} umi dev",
|
|
"start:web:hot": "cross-env UMI_ENV=local cross-env APP_VERSION=${npm_config_app_version} umi dev"
|
|
},
|
|
"dependencies": {
|
|
"@dnd-kit/modifiers": "^6.0.1",
|
|
"ahooks": "^3.7.8",
|
|
"ali-react-table": "^2.6.1",
|
|
"antd": "^5.12.1",
|
|
"copy-to-clipboard": "^3.3.3",
|
|
"echarts": "^5.4.2",
|
|
"echarts-for-react": "^3.0.2",
|
|
"event-source-polyfill": "^1.0.31",
|
|
"highlight.js": "^11.9.0",
|
|
"lodash": "^4.17.21",
|
|
"markdown-it-link-attributes": "^4.0.1",
|
|
"monaco-editor": "^0.44.0",
|
|
"monaco-editor-esm-webpack-plugin": "^2.1.0",
|
|
"monaco-editor-webpack-plugin": "^7.0.1",
|
|
"react-monaco-editor": "^0.54.0",
|
|
"react-sortablejs": "^6.1.4",
|
|
"sql-formatter": "^13.0.4",
|
|
"styled-components": "^6.0.1",
|
|
"umi": "^4.0.87",
|
|
"umi-request": "^1.4.0",
|
|
"uuid": "^9.0.0",
|
|
"zustand": "^4.4.4"
|
|
},
|
|
"devDependencies": {
|
|
"@types/event-source-polyfill": "^1.0.1",
|
|
"@types/lodash": "^4.14.195",
|
|
"@types/react": "^18.0.33",
|
|
"@types/react-dom": "^18.0.11",
|
|
"@types/uuid": "^9.0.1",
|
|
"@typescript-eslint/eslint-plugin": "^6.7.2",
|
|
"@typescript-eslint/parser": "^6.7.2",
|
|
"@umijs/plugins": "^4.0.55",
|
|
"concurrently": "^8.1.0",
|
|
"cross-env": "^7.0.3",
|
|
"electron": "^22.3.0",
|
|
"electron-builder": "^23.6.0",
|
|
"electron-debug": "^3.2.0",
|
|
"eslint": "^8.49.0",
|
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
"eslint-config-prettier": "^9.0.0",
|
|
"eslint-import-resolver-webpack": "^0.13.7",
|
|
"eslint-plugin-babel": "^5.3.1",
|
|
"eslint-plugin-import": "^2.28.1",
|
|
"eslint-plugin-prettier": "^5.0.0",
|
|
"eslint-plugin-react": "^7.33.2",
|
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
"is-electron": "^2.2.2",
|
|
"prettier": "^2",
|
|
"prettier-plugin-organize-imports": "^2",
|
|
"prettier-plugin-packagejson": "^2",
|
|
"tailwindcss": "^3",
|
|
"typescript": "^5.0.3"
|
|
},
|
|
"peerDependencies": {
|
|
"react": "^16.8.0",
|
|
"react-dom": "^16.8.0"
|
|
},
|
|
"engines": {
|
|
"node": ">=16"
|
|
},
|
|
"build": {
|
|
"appId": "com.chat2db",
|
|
"directories": {
|
|
"output": "release/"
|
|
},
|
|
"productName": "Chat2DB",
|
|
"asar": false,
|
|
"files": [
|
|
"dist/**/*",
|
|
"src/main",
|
|
"static/",
|
|
"versions/**/*",
|
|
"package.json",
|
|
"!node_modules/**/*"
|
|
],
|
|
"nsis": {
|
|
"oneClick": false,
|
|
"perMachine": false,
|
|
"allowElevation": true,
|
|
"allowToChangeInstallationDirectory": true,
|
|
"createDesktopShortcut": true,
|
|
"deleteAppDataOnUninstall": false,
|
|
"shortcutName": "Chat2DB"
|
|
},
|
|
"mac": {
|
|
"icon": "src/assets/logo/logo.icns",
|
|
"target": [
|
|
"zip",
|
|
"dmg"
|
|
]
|
|
},
|
|
"win": {
|
|
"target": [
|
|
{
|
|
"target": "nsis"
|
|
}
|
|
],
|
|
"publisherName": "Chat2DB",
|
|
"icon": "src/assets/logo/logo.ico"
|
|
},
|
|
"linux": {
|
|
"maintainer": "Chat2DB, huanyueyaoqin@qq.com",
|
|
"category": "Network;",
|
|
"target": [
|
|
"AppImage"
|
|
]
|
|
}
|
|
}
|
|
}
|