This file describes the commands that can be run for this library.
/!\ The commands are run from the project's root directory.
The running commands lint of test the library code.
As in the lint section, the library code can be linted with the following command:
npm run libs:ng:lint
And its corrector:
npm run libs:ng:lint:fix
Check also the styleguide.
As in the test section, the library code can be tested with the following command:
npm run libs:ng:test
If developing at the same time, enable the watch mode:
npm run libs:ng:test:watch
The Angular CLI is a useful tool
that can be used via Nx
.
The latest proposes a lot of commands,
especially the generators.
Modules can be generated with the following command:
nx g @nx/angular:module --project=ng <module>
Services can be generated with the following command:
nx g @nx/angular:service --project=ng <service>
Components can be generated with the following command:
nx g @nx/angular:component --project=ng <component>
The following sections describe the commands related to I18n.
The I18n keys can be extracted with the following command:
npm run libs:ng:i18n:extract