nbsurvey-common
v0.0.5
Published
1. generate new angular project to workspace using command `ng g app <survey-name>`. 2. In `angular.json` go to that project config section and in build options, configure global style paths by putting below property, ```jsonc "build":{ "stylePr
Downloads
4
Readme
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/[email protected]
npm install @angular/[email protected]
npm install @ngx-translate/[email protected]
npm install @ngx-translate/[email protected]
npm install [email protected]
npm install [email protected]