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

[QUESTION] ng build instead of nx build #314

Open
Trojan13 opened this issue Jun 18, 2024 · 0 comments
Open

[QUESTION] ng build instead of nx build #314

Trojan13 opened this issue Jun 18, 2024 · 0 comments

Comments

@Trojan13
Copy link

Hi,

I noticed that in your package.json, you are using ng build instead of nx build. I'm wondering if there's a specific reason for this choice, and whether switching to nx build would provide any benefits, such as utilizing Nx's caching capabilities. I am new to nx so I do not know.

Here is the relevant part of the package.json:

 "scripts": {
    "ng": "nx",
    "start": "ng serve",
    "build": "ng build",
    "test": "ng test",
    "lint": "nx workspace-lint && ng lint",
    "e2e": "ng e2e",
    "nx": "nx",
    "affected:apps": "nx affected:apps",
    "affected:libs": "nx affected:libs",
    "affected:build": "nx affected:build",
    "affected:e2e": "nx affected:e2e",
    "affected:test": "nx affected:test",
    "affected:lint": "nx affected:lint",
    "affected:dep-graph": "nx affected:dep-graph",
    "affected": "nx affected",
    "format": "nx format:write",
    "format:write": "nx format:write",
    "format:check": "nx format:check",
    "update": "ng update @nrwl/workspace",
    "update:check": "ng update",
    "dep-graph": "nx dep-graph",
    "workspace-schematic": "nx workspace-schematic",
    "help": "nx help",
    "postinstall": "node ./decorate-angular-cli.js"
  },

I'm not sure if opening an issue is the right way to ask this question, so I apologize if this is not the correct channel.

Thank you for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant