0.0.0 • Published 4 years ago
ng-workspace v0.0.0
NgWorkspace
This project serves as a common workspace to create angular libraries which can be easily shared across the other angular applications.
Test the lib Importing Bulma Importing font-awesome Importing theme styles Importing Normalize Importing google font fira sans Importing assets
Goals
Storybook of all components from dist Development of current component for lib Compiling all theme scss into one bundle and put into dist Copy all assets into dist
Done
Storybook up and running with global styles, fontawesome, fira font, bulma App serving with global styles, fontawesome, fira font, bulma
Getting Started
- Import
NgCommonModule
in your app. - Import
@lendingpoint/ngcommon/theme.scss
in angular.json styles. - Add
"scripts": ["./node_modules/@fortawesome/fontawesome-free/js/all.min.js"]
in angular.json to include font-awesome in your app.
Development Guidelines
ng serve ng-common-sandbox
to start a development instance of sandbox.- Develop the component here in isolation.
- Move the development component in
ng-common/src/lib
. - Update the
NgCommonModule
to import and export the newly created component. - Build the library with
npm run build
. - Update the storybook with a story o fnewly created component.
Testing and Previewing all the components
cd projects/ng-common-sandbox
and runnpm run storybook
Deployments
- Run
npm run update-npm-version
along with argument like patch, minor, major to update package.json before publishing to npm.