Move you angular cli app to Nx

Help me improve these updates by giving suggestions.
Github Repo — https://github.com/ajitsinghkaler/devto-clone

Deployed on Firebase — https://dev-toclone.firebaseapp.com/

Last week I was sick so there was no updates last week.

This week I mostly focused on my moving my clone to Nx monorepo. While converting it here are some of my findings on how to convert an Angular cli app to Nx monorepo

To convert an angular cli app to nx follow the steps below:-

ng add @nrwl/workspace --preserveAngularCLILayout

Example of moving

  1. Environments to a library can be found here
  • To move them to a library generate anew library by nx g lib <lib-name> after that move everything to lib and export everything via the index.ts file.

I also moved most of my components to single file components as it was easier to read and most of my components don’t need to be multiple file.

Form next time I’ll start adding unit tests and integration tests, e2e tests after that this project will be done.

  1. feat: migrate to nx

Commits

Let me know if you ant to see any new experiments in the repo.

Originally published at https://ajitblogs.com on September 25, 2021.

Front End Developer