Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove deploy from nx.json and add dependsOn on each project #932

Closed
kujtimprenkuSQA opened this issue Sep 19, 2023 · 0 comments · Fixed by #936
Closed

Remove deploy from nx.json and add dependsOn on each project #932

kujtimprenkuSQA opened this issue Sep 19, 2023 · 0 comments · Fixed by #936
Assignees
Labels
bug Something isn't working Emerging Tech Emerging Tech flying formation at Pagoda

Comments

@kujtimprenkuSQA
Copy link
Contributor

Describe the bug
We need to remove the deploy target from nx.json and add the "dependsOn": ["^deploy"] of each package in project.json:

"deploy": {
  "dependsOn": ["^deploy"]
}

To Reproduce
Steps to reproduce the behavior:

  1. Clone project
  2. yarn && yarn build:all
  3. yarn nx build angular
  4. yarn nx deploy angular

At this moment you will see an error because NX tries to deploy other packages before deploying the examples.

Expected behavior
yarn nx deploy angular should run without depending on the deploy script of other packages.

Screenshots

image

Device (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@kujtimprenkuSQA kujtimprenkuSQA added bug Something isn't working Emerging Tech Emerging Tech flying formation at Pagoda Near BOS labels Sep 19, 2023
@kujtimprenkuSQA kujtimprenkuSQA self-assigned this Sep 20, 2023
@kujtimprenkuSQA kujtimprenkuSQA linked a pull request Sep 20, 2023 that will close this issue
14 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Emerging Tech Emerging Tech flying formation at Pagoda
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant