2.1.0 • Published 2 years ago

niwa-citizen-science-lib-app v2.1.0

Weekly downloads
4
License
-
Repository
-
Last release
2 years ago

NiwaCitizenScienceLibApp

This project was generated with Angular CLI version 6.2.1.

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.

Build!

First build the library npm run build_lib then run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the --prod flag for a production build.

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Protractor.

Developing

This repo contains a test app which should be able to test the app fully. If you need to comprehensively test within another project use this to pull the code locally.

npm install CHANGE_THIS_PATH/../niwa-citizen-science-lib/dist/niwa-citizen-science-lib/niwa-citizen-science-lib-1.0.16.tgz

Distributing

Make sure you have set both package.json files to the new version number /package.json and /projects/niwa-citizen-science-lib/src/package.json.

run npm run package to build and package the library. You'll find a *.tgz file inside dist/niwa-citizen-science-lib which then needs to be published.

To upload to NPM first log in to npm using the credentials in TeamPass under the account niwa_nz, then publish from with the dist folder niwa-citizen-science-lib/dist/niwa-citizen-science-lib

npm login

npm publish

Further info available here https://docs.npmjs.com/getting-started/publishing-npm-packages

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.