This project has all components we currently use in all of our projects.













To serve the project to quickly build components, just use:
ng serveTo create new component:
ng g m compname --project=components
ng g c compname --project=componentsFor including it in build, make sure you add new entry in webpack.config.js as follows:
"components/compname": path.resolve(
__dirname,
"projects/components/src/lib/compname/compname.module.ts"
),To build components:
npm run buildmaking latest dev build components as production:
npm run build:prodserving:
npm run docs:servebuilding:
npm run docs:buildFOR PRODUCTION (npm run build:prod - copies files from build to prod)
https://cdn.nexopt.com/components/prod/angularapp.jsFOR DEVELOPMENT (updated from npm run build)
https://cdn.nexopt.com/components/build/angularapp.js