Projects/Target Alias #33663
Bielik20
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I often structure my projects like so:
Intuitively I often run:
nx run my-awesome-project:servewhen I wantnx run my-awesome-project-app:servenx run my-awesome-project:e2ewhen I wantnx run my-awesome-project-e2e:e2eIt would be nice to add support for project/target aliases. I already do a workaround, in
apps/my-awesome-project/project.jsonI have:{ "name": "my-awesome-project", "$schema": "../../node_modules/nx/schemas/project-schema.json", "projectType": "application", "tags": ["alias"], "targets": { "serve": { "executor": "@root/workspace:noop-continuous", "continuous": true, "dependsOn": [ { "projects": ["@root/my-awesome-project-app"], "target": "serve", "params": "forward" } ] }, "e2e": { "executor": "nx:noop", "dependsOn": [ { "projects": ["@root/my-awesome-project-e2e"], "target": "e2e", "params": "forward" } ] }, "lint": { "executor": "nx:noop", "dependsOn": [ { "projects": ["@root/my-awesome-project-*"], "target": "lint", "params": "forward" } ] } }It works but it would be nice to have first party support for those cases.
It is not a pressing our necessary change change, the workaround works, it is a bit annoying that those targets appear in affected list etc. but again not the end of the world (I can always filter against
aliastag).BTW,
noop-continuousis just:Beta Was this translation helpful? Give feedback.
All reactions