@soscv/dynamic-forms
v0.0.67
Published
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 11.2.3.
Downloads
33
Readme
DynamicFormsLib
This library was generated with Angular CLI version 11.2.3.
Code scaffolding
Run ng generate component component-name --project dynamic-forms-lib
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module --project dynamic-forms-lib
.
Note: Don't forget to add
--project dynamic-forms-lib
or else it will be added to the default project in yourangular.json
file.
Build
Run ng build dynamic-forms-lib
to build the project. The build artifacts will be stored in the dist/
directory.
Publishing
publish a version to NPM and GitHub Packages
- Increase the version number in dynamic-forms\projects\dynamic-forms-lib\package.json
- Tag the release of the commit
git tag v<version number> -m "<tag message>"
- Push tag to upstream
git push origin <tag with newly created version number>
or alternatively push all available tags to upstreamgit push origin --tags
- On the github page of the project create a new release from the tagged commit. The release should trigger a build and publish to both NPM and GitHub Packages
old way of publishing straight to NPM
You have to build with ~~--prod
~~ --configuration production
, for details see the documentation: https://angular.io/guide/creating-libraries#publishing-your-library
After building your library with ng build dynamic-forms-lib --prod
, go to the dist folder cd dist/dynamic-forms-lib
and run npm publish --access public
.
Running unit tests
Run ng test dynamic-forms-lib
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 Overview and Command Reference page.