nx affected support.
Summary
Usage in project.json
Executors are configured in each project’sproject.json:
All 7 FrontMCP Nx executors for building, testing, and deploying
nx affected support.
project.json:
{
"name": "my-app",
"targets": {
"build": {
"executor": "@frontmcp/nx:build",
"outputs": ["{projectRoot}/dist"],
"options": {
"entry": "{projectRoot}/src/main.ts",
"outputPath": "{projectRoot}/dist"
}
},
"dev": {
"executor": "@frontmcp/nx:dev",
"options": {
"entry": "{projectRoot}/src/main.ts"
}
},
"test": {
"executor": "@frontmcp/nx:test",
"options": {
"runInBand": true
}
}
}
}
# Run a specific target
nx build my-app
nx dev my-app
nx test my-app
# Run across all projects
nx run-many -t build
nx run-many -t test
# Run only affected projects
nx affected -t test
Was this page helpful?