0.0.5 • Published 1 year ago
nbsurvey-common v0.0.5
Scaffold new surveys
- generate new angular project to workspace using command
ng g app <survey-name>
. - In
angular.json
go to that project config section and in build options, configure global style paths by putting below property,"build":{ "stylePreprocessorOptions": { "includePaths": [ "dist/nbsurvey-common/styles" ] }, "styles":[ "dist/nbsurvey-common/styles/styles.scss // or path to styles.scss from node modules // ... other entries ] }
stylePreprocessorOptions
makes stylesheets imports absolute i.e. to import button styles from lib, you just need to do@import 'button';
instead of@import '../../../../dist/button;
Install Peer Dependency
npm install @angular/cdk@14.2.5
npm install @angular/material@14.2.5
npm install @ngx-translate/core@14.0.0
npm install @ngx-translate/http-loader@7.0.0
npm install ngx-mat-intl-tel-input@5.0.0
npm install libphonenumber-js@1.10.14