| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
A template repository for Angular libraries
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.
Run npm start to build the library project first and then serve the testing project.
Run npm run watch to build the library on every change. Then in a new terminal run npm start to serve the testing project.
Run npm run build to build the library project using ng-packagr. The build artifacts will be stored in the dist/%PROJECT_NAME%/ directory.
Run npm publish in the dist/%PROJECT_NAME%/ directory in order to publish the library to a package registry.
| Back | FazBrowse Home | New Git URL |