The objective of this project to develop a framework that can provide all required bolts and nuts to retail requirements, for example: Hiring and Jobs Retail Shopping and e-commerce Tour, Travel & hotels Web classifieds, etc.
ng serve will start a local dev server at http://localhost:4200 and loads annu-ng-lib-pages app. Any code changes in any of the annu-ng-lib (library) and the annu-ng-lib-pages (pages app), will hot reload in the browser.
- One
index.tsfile is created inprojects/annu-ng-lib/src/liband exported all library angular items that need to be exposed publically. public-api.tsneeds to export all from thisindex.ts.- The last thing is to add
pathsto the roottsconfig.base.jsonto point to thisindex.ts. - This is all, now you just need to import library in your main app module.
Run ng build annu-ng-lib to build the project. The build artifacts will be stored in the dist/annu-ng-lib directory. Use the --prod flag for a production build.
Run ng build to build the project. The build artifacts will be stored in the dist/annu-ng-lib-pages directory. Use the --prod flag for a production build.
You can visit library's app pages at https://sunildivyam.github.io/annu-ng-lib.
To deploy latest annu-ng-lib-pages app to Github Pages, follow below steps:
- Switch to branch
annu-ng-lib-pages/ghithub-docs. - Rebase it from
masterbranch. - Run
ng build, this generates thedocsfolder in root. - Push your changes and this is all done. Go to https://sunildivyam.github.io/annu-ng-lib and view pages.
- Run
npm run docs, will create adocumentationfolder in root, that contains all static documentation code. - Run
npm run docs:serve, will start a local static web server at http://localhost:8080 that will serve the static library documentation. - This documentation support can be removed later once pages app is completed.