This is a repo to try out new features of Angular. It uses Nx as a build system and monorepo manager.
PS: If you want to add new features, please create a new branch off of main and open a PR.
PPS: If you find this repo useful, please star it ⭐️
Kudos to https://github.com/spartan-ng/spartan for making this possible!
Before running any tasks, install the dependencies with:
pnpm installThen below are all NX commands you can use to run tasks. 👇
To run the dev server for your app, use:
pnpx nx serve try-ngTo create a production bundle:
pnpx nx build try-ngTo see all available targets to run for a project, run:
pnpx nx show project try-ngThese targets are either inferred automatically or defined in the project.json or package.json files.
More about running tasks in the docs »
While you could add new projects to your workspace manually, you might want to leverage Nx plugins and their code generation feature.
Use the plugin's generator to create new projects.
To generate a new application, use:
pnpx nx g @nx/angular:app demoTo generate a new library, use:
pnpx nx g @nx/angular:lib mylibYou can use pnpx nx list to get a list of installed plugins. Then, run pnpx nx list <plugin-name> to learn about more specific capabilities of a particular plugin. Alternatively, install Nx Console to browse plugins and generators in your IDE.