2022-05-09 06:11:43 +08:00
|
|
|
{
|
2022-05-09 06:42:37 +08:00
|
|
|
"name": "cultivation",
|
2022-07-17 12:13:34 +08:00
|
|
|
"version": "1.0.3",
|
2022-05-09 06:11:43 +08:00
|
|
|
"private": true,
|
|
|
|
"dependencies": {
|
2022-05-09 06:42:37 +08:00
|
|
|
"@tauri-apps/api": "^1.0.0-rc.5",
|
2022-05-09 06:11:43 +08:00
|
|
|
"@testing-library/jest-dom": "^5.14.1",
|
|
|
|
"@testing-library/react": "^13.0.0",
|
|
|
|
"@testing-library/user-event": "^13.2.1",
|
|
|
|
"@types/jest": "^27.0.1",
|
|
|
|
"@types/node": "^16.7.13",
|
|
|
|
"@types/react": "^18.0.0",
|
|
|
|
"@types/react-dom": "^18.0.0",
|
|
|
|
"react": "^18.1.0",
|
|
|
|
"react-dom": "^18.1.0",
|
|
|
|
"react-scripts": "5.0.1",
|
|
|
|
"typescript": "^4.4.2",
|
|
|
|
"web-vitals": "^2.1.0"
|
|
|
|
},
|
|
|
|
"scripts": {
|
2022-05-09 06:42:37 +08:00
|
|
|
"start": "cross-env BROWSER=none react-scripts start",
|
2022-05-29 12:14:15 +08:00
|
|
|
"postbuild:windows": "xcopy /E /H /C /I /Y \".\\src-tauri\\lang\" \".\\src-tauri\\target\\release\\lang\"",
|
|
|
|
"postbuild:linux": "cp -r \".\\src-tauri\\lang\" \".\\lang\"",
|
2022-05-29 12:25:37 +08:00
|
|
|
"build:windows": "yarn tauri build",
|
|
|
|
"build:linux": "yarn tauri build",
|
|
|
|
"build": "react-scripts build && run-script-os",
|
2022-05-09 06:11:43 +08:00
|
|
|
"test": "react-scripts test",
|
2022-05-09 06:42:37 +08:00
|
|
|
"eject": "react-scripts eject",
|
|
|
|
"tauri": "tauri",
|
2022-07-12 07:50:51 +08:00
|
|
|
"start:dev": "tauri dev",
|
|
|
|
"format": "cargo fmt --manifest-path ./src-tauri/Cargo.toml --all",
|
|
|
|
"lint": "cargo clippy --manifest-path ./src-tauri/Cargo.toml --no-default-features && yarn tsc --noEmit && yarn eslint src"
|
2022-05-09 06:11:43 +08:00
|
|
|
},
|
|
|
|
"eslintConfig": {
|
|
|
|
"extends": [
|
|
|
|
"react-app",
|
|
|
|
"react-app/jest"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"browserslist": {
|
|
|
|
"production": [
|
|
|
|
">0.2%",
|
|
|
|
"not dead",
|
|
|
|
"not op_mini all"
|
|
|
|
],
|
|
|
|
"development": [
|
|
|
|
"last 1 chrome version",
|
|
|
|
"last 1 firefox version",
|
|
|
|
"last 1 safari version"
|
|
|
|
]
|
2022-05-09 06:42:37 +08:00
|
|
|
},
|
|
|
|
"devDependencies": {
|
2022-05-22 06:42:28 +08:00
|
|
|
"@tauri-apps/cli": "^1.0.0-rc.11",
|
2022-05-09 07:44:16 +08:00
|
|
|
"@typescript-eslint/eslint-plugin": "^5.22.0",
|
|
|
|
"@typescript-eslint/parser": "^5.22.0",
|
|
|
|
"cross-env": "^7.0.3",
|
|
|
|
"eslint": "^8.15.0",
|
2022-05-29 12:14:15 +08:00
|
|
|
"eslint-plugin-react": "^7.29.4",
|
|
|
|
"run-script-os": "^1.1.6"
|
2022-05-09 06:11:43 +08:00
|
|
|
}
|
2022-05-09 07:44:16 +08:00
|
|
|
}
|