Skip to content

Commit

Permalink
chore(readme): add handy nx g c command
Browse files Browse the repository at this point in the history
  • Loading branch information
tkohr committed Jan 18, 2024
1 parent 40465a9 commit 2d789dc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,20 @@

**This workspace has been generated by [Nx, a Smart, fast and extensible build system.](https://nx.dev)**


## Start the app

To start the development server run `nx serve datahub`. Open your browser and navigate to http://localhost:4200/. Happy coding!


## Generate code

If you happen to use Nx plugins, you can leverage code generators that might come with it.

To generate a component from the root dir for instance, run the following command:

```
npx nx g @nx/angular:component [my-component] --module=app.module --directory=apps/datahub/src/app/[my-component-location]
```

Run `nx list` to get a list of available plugins and whether they have generators. Then run `nx list <plugin-name>` to see what generators are available.

Learn more about [Nx generators on the docs](https://nx.dev/plugin-features/use-code-generators).
Expand Down

0 comments on commit 2d789dc

Please sign in to comment.