The Nx workspace is organized into the following main folders:
apps/- Contains all applicationslibs/- Contains reusable libraries
- Shared styles are imported from
libs/component-library/styles/styles.scss. - Public assets are served from the
public/folder.
To start the development server for myproject, run:
npx nx serve myprojectOnce the server is running, open your browser and navigate to http://localhost:4200/. The application will automatically reload whenever you modify any of the source files.
To build myproject for production, use the following command:
npx nx build myproject --configuration=productionThe build artifacts will be stored in the dist/myproject directory. You can also build in development mode by specifying --configuration=development.
To execute unit tests for myproject using Jest, run:
npx nx test myproject-
Run linting for
myproject:npx nx lint myproject
-
Run deploy for
myproject:npx nx run myproject:deploy
For more details about Nx, visit the Nx documentation. For Angular-specific tools and information, check the Angular documentation.