0.1.1 • Published 6 years ago
ngx-google-forms-checkbox-mcq v0.1.1
ngx-google-forms-checkbox-mcq
Create a reusable UI library that behaves like:
- a MCQ (multiple-choice-question) with checkboxes that allows for more than one right answer
- or, a poll with checkboxes that allows for more than one choice to be selected
Code scaffolding
Run ng generate component component-name --project checkbox-mcq to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module --project checkbox-mcq.
Note: Don't forget to add
--project checkbox-mcqor else it will be added to the default project in yourangular.jsonfile.
Build
The build artifacts will be stored in the
dist/directory.npm run build_checkbox_mcq npm run pack_checkbox_mcq
Publishing
- After building your library with
ng build checkbox-mcq, go to the dist foldercd dist/checkbox-mcqand runnpm publish. Or, update the version number in
projects/checkbox-mcq/package.jsonand then use one command to rule them all:npm run publish_checkbox_mcq
Running unit tests
Run ng test checkbox-mcq 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 README.