frankframework / angular-library-template

A template repository for Angular libraries
Apache License 2.0
0 stars 0 forks source link

Angular Library Template

A template repository for Angular libraries

frank-framework-github-banner

How to use

Find and replace all %PROJECT_NAME% with your project name, you should also rename the /projects/PROJECT_NAME folder and update .eslintrc.js > parserOptions > project property accordingly.

[!IMPORTANT] Make sure to update angular to the latest version

This template repository consists of 2 angular projects which split the responsibility of developing vs publishing only what's needed:

Pay attention to /package.json, /angular.json & projects/example-lib/package.json since they define how the development environment will be set up compared to what will be published onto NPM.

Build

Run npx ng build to build the library project using ng-packagr. The build artifacts will be stored in the dist/%PROJECT_NAME%/ directory.

Publishing

Run npm publish in the dist/%PROJECT_NAME%/ directory in order to publish the library to a package registry.