nx/graph/client/project.json
Jason Jean 01985c11db
fix(repo): add dependsOn to native build (#27446)
<!-- Please make sure you have read the submission guidelines before
posting an PR -->
<!--
https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr
-->

<!-- Please make sure that your commit message follows our format -->
<!-- Example: `fix(nx): must begin with lowercase` -->

<!-- If this is a particularly complex change or feature addition, you
can request a dedicated Nx release for this pull request branch. Mention
someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they
will confirm if the PR warrants its own release for testing purposes,
and generate it for you if appropriate. -->

## Current Behavior
<!-- This is the behavior we have today -->

`nx:build-native` updates the typings which `graph-client:build-client`
uses. Not running it in the right order could result in a compilation
error.

## Expected Behavior
<!-- This is the behavior we should expect with the changes in this PR
-->

`nx:build-native` updates the typings which `graph-client:build-client`
uses so it depends on `nx:build-native`

## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->

Fixes #
2024-08-15 14:48:10 -04:00

116 lines
2.9 KiB
JSON

{
"name": "graph-client",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "graph/client/src",
"projectType": "application",
"targets": {
"generate-dev-environment-js": {
"executor": "nx:run-commands",
"options": {
"commands": [
"ts-node -P ./scripts/tsconfig.scripts.json ./scripts/generate-graph-environment.ts"
]
}
},
"generate-graph-base": {
"executor": "nx:run-commands",
"options": {
"commands": [
"ts-node -P ./scripts/tsconfig.scripts.json ./scripts/generate-graph.ts"
]
}
},
"generate-graph": {
"executor": "nx:run-commands",
"options": {
"commands": [
"npx nx run graph-client:generate-graph-base",
"npx nx run graph-client:generate-dev-environment-js"
],
"parallel": false
}
},
"build-client": {
"dependsOn": ["nx:build-native"],
"configurations": {
"dev": {},
"nx-console": {},
"release": {},
"watch": {},
"release-static": {},
"dev-e2e": {}
},
"defaultConfiguration": "release"
},
"serve-base": {
"configurations": {
"dev": {},
"nx-console": {},
"release": {},
"watch": {},
"release-static": {},
"dev-e2e": {}
},
"defaultConfiguration": "dev"
},
"serve": {
"executor": "nx:run-commands",
"configurations": {
"dev": {
"commands": [
"npx nx run graph-client:generate-dev-environment-js",
"npx nx serve-base graph-client"
],
"parallel": false
},
"dev-e2e": {
"commands": ["npx nx serve-base graph-client --configuration dev-e2e"]
},
"release": {
"commands": ["npx nx serve-base graph-client --configuration release"]
},
"release-static": {
"commands": [
"npx nx serve-base graph-client --configuration release-static"
]
},
"watch": {
"commands": ["npx nx serve-base graph-client --configuration watch"]
},
"nx-console": {
"commands": [
"npx nx serve-base graph-client --configuration nx-console"
]
}
},
"defaultConfiguration": "dev"
},
"storybook": {
"executor": "@nx/storybook:storybook",
"options": {
"port": 4400,
"configDir": "graph/client/.storybook"
},
"configurations": {
"ci": {
"quiet": true
}
}
},
"build-storybook": {
"executor": "@nx/storybook:build",
"outputs": ["{options.outputDir}"],
"options": {
"configDir": "graph/client/.storybook",
"outputDir": "dist/storybook/graph-client"
},
"configurations": {
"ci": {
"quiet": true
}
}
}
},
"tags": []
}