mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2024-11-26 21:30:47 +00:00
68 lines
2.2 KiB
JSON
68 lines
2.2 KiB
JSON
{
|
|
"name": "cultivation",
|
|
"version": "1.0.26",
|
|
"private": true,
|
|
"dependencies": {
|
|
"@tauri-apps/api": "^1.0.0-rc.5",
|
|
"@testing-library/jest-dom": "^5.14.1",
|
|
"@testing-library/react": "^13.0.0",
|
|
"@testing-library/user-event": "^14.2.6",
|
|
"@types/jest": "^28.1.6",
|
|
"@types/node": "^18.0.6",
|
|
"@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": {
|
|
"start": "cross-env BROWSER=none react-scripts start",
|
|
"postbuild:windows": "xcopy /E /H /C /I /Y \".\\src-tauri\\lang\" \".\\src-tauri\\target\\release\\lang\"",
|
|
"postbuild:linux": "cp -r \"./src-tauri/lang\" \"./lang\"",
|
|
"build:windows": "yarn tauri build",
|
|
"build:linux": "yarn tauri build",
|
|
"build": "react-scripts build && run-script-os",
|
|
"test": "react-scripts test",
|
|
"eject": "react-scripts eject",
|
|
"tauri": "tauri",
|
|
"start:dev": "tauri dev -- -- --no-admin",
|
|
"format": "cargo fmt --manifest-path ./src-tauri/Cargo.toml --all && yarn prettier --write --cache --loglevel warn .",
|
|
"lint": "cargo clippy --manifest-path ./src-tauri/Cargo.toml --no-default-features && yarn tsc --noEmit && yarn eslint src",
|
|
"lint:fix": "cargo clippy --manifest-path ./src-tauri/Cargo.toml --no-default-features --fix --allow-dirty && yarn tsc --noEmit && yarn eslint --fix src",
|
|
"prepare": "husky install"
|
|
},
|
|
"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"
|
|
]
|
|
},
|
|
"devDependencies": {
|
|
"@tauri-apps/cli": "^1.0.0-rc.11",
|
|
"@typescript-eslint/eslint-plugin": "^5.22.0",
|
|
"@typescript-eslint/parser": "^5.22.0",
|
|
"cross-env": "^7.0.3",
|
|
"eslint": "^8.15.0",
|
|
"eslint-config-prettier": "^8.5.0",
|
|
"eslint-plugin-react": "^7.29.4",
|
|
"husky": "^8.0.0",
|
|
"lint-staged": "^13.0.3",
|
|
"prettier": "^2.7.1",
|
|
"run-script-os": "^1.1.6"
|
|
}
|
|
}
|