Specific Example
The steps that were used to create a UI library are documented in each respective github issue for the learnwell/ngx-google-forms
repo.
- https://github.com/learnwell/ngx-google-forms/issues/1
- https://github.com/learnwell/ngx-google-forms/issues/2
- https://github.com/learnwell/ngx-google-forms/issues/3
- etc.
Generic
# step 1 - flavor A
ng new <lib-project-name> --create-application=false
# step 1 - flavor B
ng new <ngx-project-name> --create-application=false
# step 2 - say NO to router
# step 3 - select css, sass, scss, whatever you are comfortable with for styling. You may not need it at all if your library won't have any UI compnonents to it but you still need to pick something.
# step 4 - flavor A
cd <lib-project-name>
# step 4 - flavor B
cd <ngx-project-name>
# step 5 - flavor A
ng g lib <project-name> -p <lib>
# step 5 - flavor B
ng generate library <project-name> --prefix <lib>
References
Written with StackEdit.