@masoni/components
v0.1.3
Published
Bouygues Design System - Masoni components library
Downloads
12
Maintainers
Readme
Components
This library was generated with Angular CLI version 16.2.0.
Code scaffolding
Run ng generate component component-name --project components
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module --project components
.
Note: Don't forget to add
--project components
or else it will be added to the default project in yourangular.json
file.
Install package
After installing npm, you can install @masoni/components
with this command:
npm i -S @masoni/components
Usage
When we're starting to use @masoni/components
, we have to install components package and its style through npm.
npm i --save @masoni/components @masoni/css @masoni/icons
Once you have installed, insert @masoni/css
and @masoni/icons
in Your Angular App by Updating the angular.json. For more detail, you could check out the usage of @masoni/css and the usage of @masoni/icons
All components will be prefixed with mas-
, to see all the available components, check out here for more information.
Build
Run ng build components
to build the project. The build artifacts will be stored in the projects/components/dist/
directory.
Publishing
After building your library with ng build components
, go to the dist folder cd projects/components
and run npm publish
.
Running unit tests
Run ng test components
to execute the unit tests via Karma.
Further help
To get more help on the Angular CLI use ng help
or go check out the Angular CLI Overview and Command Reference page.