mirror of
https://github.com/storytold/storyteller-bevy.git
synced 2026-10-09 00:09:55 +00:00
a1779fb1ec
This PR adds `cargo fmt -- --check`, `nx lint ...` and `nx test ...` as GitHub Actions. This will cause future PRs to automatically fail when formatting issues, Clippy warnings, or test failures are present in the changed code.
70 lines
1.6 KiB
JSON
70 lines
1.6 KiB
JSON
{
|
|
"name": "react-frontend",
|
|
"$schema": "../node_modules/nx/schemas/project-schema.json",
|
|
"sourceRoot": "react-frontend/src",
|
|
"projectType": "application",
|
|
"targets": {
|
|
"build": {
|
|
"executor": "@nx/vite:build",
|
|
"outputs": ["{options.outputPath}"],
|
|
"defaultConfiguration": "production",
|
|
"options": {
|
|
"outputPath": "dist/react-frontend"
|
|
},
|
|
"configurations": {
|
|
"development": {
|
|
"mode": "development"
|
|
},
|
|
"production": {
|
|
"mode": "production"
|
|
}
|
|
}
|
|
},
|
|
"serve": {
|
|
"executor": "@nx/vite:dev-server",
|
|
"defaultConfiguration": "development",
|
|
"dependsOn": [
|
|
{
|
|
"projects": ["studio"],
|
|
"target": "build:web"
|
|
}
|
|
],
|
|
"options": {
|
|
"buildTarget": "react-frontend:build"
|
|
},
|
|
"configurations": {
|
|
"development": {
|
|
"buildTarget": "react-frontend:build:development",
|
|
"hmr": true
|
|
},
|
|
"production": {
|
|
"buildTarget": "react-frontend:build:production",
|
|
"hmr": false
|
|
}
|
|
}
|
|
},
|
|
"preview": {
|
|
"executor": "@nx/vite:preview-server",
|
|
"defaultConfiguration": "development",
|
|
"options": {
|
|
"buildTarget": "react-frontend:build"
|
|
},
|
|
"configurations": {
|
|
"development": {
|
|
"buildTarget": "react-frontend:build:development"
|
|
},
|
|
"production": {
|
|
"buildTarget": "react-frontend:build:production"
|
|
}
|
|
}
|
|
},
|
|
"test": {
|
|
"executor": "nx:run-commands",
|
|
"options": {
|
|
"command": "\n"
|
|
}
|
|
}
|
|
},
|
|
"tags": []
|
|
}
|