Skip to content

christoph-rogalla/angular-starter

Repository files navigation

Conciso

Note for my self

Generate new Angular App

npx nx g @nrwl/angular:application {{applicationName}} --directory=apps/{{directory => probably the applicationName}}

Generate new Component for specific Angular app

npx nx g @nx/angular:component {{componentName}} --directory=apps/step0070/src/app/components/{{directory => probably the componentName}} --dry-run

Generate Lib for Nx

npx nx g lib --name={LibName} --directory=libs/{typeOfLib}/{LibName} --dry-run

Start the application

Run npx nx serve angular-starter to start the development server. Happy coding!

Build for production

Run npx nx build angular-starter to build the application. The build artifacts are stored in the output directory (e.g. dist/ or build/), ready to be deployed.

Running tasks

To execute tasks with Nx use the following syntax:

npx nx <target> <project> <...options>

You can also run multiple targets:

npx nx run-many -t <target1> <target2>

..or add -p to filter specific projects

npx nx run-many -t <target1> <target2> -p <proj1> <proj2>

Targets can be defined in the package.json or projects.json. Learn more in the docs.

Set up CI!

Nx comes with local caching already built-in (check your nx.json). On CI you might want to go a step further.

Explore the project graph

Run npx nx graph to show the graph of the workspace. It will show tasks that you can run with Nx.

Connect with us!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published