-
Notifications
You must be signed in to change notification settings - Fork 0
Debug and Publish library to NPM
AAMarcosHannecke edited this page Nov 19, 2018
·
20 revisions
IMPORTANT: It's required to have Alytic and Serfalytic dev environments running
git clone https://github.com/AAMarcosHannecke/aafilter.git
- Install dependencies
npm install
- Pass the required directive properties in
src/app/app.component.html
.
<aa-filter
endpoint="http://localhost:9000/api/v2/sources/2"
cardEndpoint="http://localhost:9000/api/v2/decks/1/cards/1">
</aa-filter>
- Start application
npm start
. By default running in http://localhost:4200 - Add CORS google chrome extension
The library files are located in /projects/aafilter
- /projects/aafilter/src/lib/aafilter.component.html
- /projects/aafilter/src/lib/aafilter.component.scss
- /projects/aafilter/src/lib/aafilter.component.ts
- /projects/aafilter/src/lib/aafilter.module.ts
-
npm version patch
- Update version number -
ng build aafilter
- Build library for production -
cd /dist/aafilter
- Change directory -
npm login
- Login into NPM account -
npm publish
- Publish library
Create custom sidebar