npx create-nx-workspace@latest --preset=angular h3ar7b3a7
Type: monorepo Bundler: esbuild Project name: profile-page Styling: sass SSR: true
"scripts": {
"serve": "npx nx serve profile-page",
"build": "npx nx build profile-page --configuration production"
}
"development": {
"ssr": false,
"prerender": false
}
npx nx g @nx/angular:component home --project profile-page
We shouldn't generate components directly in the project app folder, we should rather create them in feature libraries.
npx nx generate @nx/angular:library --name=home --directory=libs/profile-page/feature-home
npx nx generate @nx/angular:library --name=typography --directory=libs/shared/ui-typography
© H3AR7B3A7, December 2023