- Creation et Installation Package NPM
- Documentation Label Manager
Build Library
ng build centran-label-manager --prod
Test Library
ng serve centran-label-manager-test
Publish Library
cd dist/ ng build centran-label-manager --prod cd dist/centran-label-manager vim package.json npm login npm publish --public
@NgModule({ declarations:[ ], imports:[ LabelModule.forRoot({ languages: ["NL", "FR", "DE", "EN"], labelSourceUrl: environment.labelSourceUrl, appName: "appName", urlPrefix: environment.labelPrefix, urlSuffix: environment.labelSuffix, prod: environment.production, }), ] ... })
//environement.ts export const environment = { production: false, assetsSource:"", labelSourceUrl : "/Project/api/translations/", labelPrefix: "file/", labelSuffix: "" };
//environement.prod.ts dans projet principal export const environment = { production: true, assetsSource:"/Project/", labelSourceUrl : "/Project/assets/", labelPrefix: "Label", labelSuffix: ".json" };
assets/css/custom.css => a ajouter dans le angular(-cli).json .modal-lg { max-width: 1000px !important }
Version 2 :
add in imports of module
QuillModule.forRoot(),
from
import { QuillModule } from 'ngx-quill';
add in style.css
@import '~quill/dist/quill.core.css';
@import '~quill/dist/quill.bubble.css';
@import '~quill/dist/quill.snow.css';