2.0.31 • Published 8 years ago
construct-angular2 v2.0.31
Angular2 Construct API Wrapper
This repository is an Angular 2 provider for the Accela ConstructApi.
Installation
npm install --save construct-angular2
Usage
- Setup the Construct API as a dependency during your app bootstrap.
import { ConstructApi } from 'construct-angular2';
- Add the Construct API as a provider during your app bootstrap.
@App({
providers: [
ConstructApi
]
})
- Setup the Construct API during your app bootstrap.
constructor(private constructApi:ConstructApi)
initializeApp() {
this.constructApi.setup({
apiHost: 'https://apis.accela.com',
appId: '<your api id here>'
});
}
- Setup the auth token on the Construct API once a user logs in.
this.auth.user$.subscribe(user => {
this.constructApi.setAuthToken(user.authToken);
this.constructApi.setAgency(user.agency);
this.constructApi.setEnvironment(user.env);
});
Contributing
Building Steps
git clone https://github.com/Accela-Inc/construct-angular2.git
cd construct-angular2
npm install
typings install
npm run test
Testing
To test, run npm test
Publishing the npm package
- Make your changes to the repo
- Run
npm test
to ensure everything works properly - Commit your changes to the repo
- Run
npm run prepublish
- Run
npm version patch
path is 1.0.x, minor is 1.x.0 and major is x.0.0 - Run
npm publish
Next steps
- Add more unit tests
- Contributions welcome
Updating the NPM package
https://docs.npmjs.com/getting-started/publishing-npm-packages
2.0.31
8 years ago
2.0.30
8 years ago
2.0.29
8 years ago
2.0.28
9 years ago
2.0.27
9 years ago
2.0.26
9 years ago
2.0.25
9 years ago
2.0.24
9 years ago
2.0.23
9 years ago
2.0.22
9 years ago
2.0.21
9 years ago
2.0.20
9 years ago
2.0.19
9 years ago
2.0.18
9 years ago
2.0.17
9 years ago
2.0.16
9 years ago
2.0.15
9 years ago
2.0.14
9 years ago
2.0.13
9 years ago
2.0.12
9 years ago
2.0.11
9 years ago
2.0.10
9 years ago
2.0.9
9 years ago
2.0.8
9 years ago
2.0.7
9 years ago
2.0.6
9 years ago
2.0.5
9 years ago
2.0.4
9 years ago
2.0.3
9 years ago
2.0.2
9 years ago
2.0.1
9 years ago
2.0.0
9 years ago
1.0.8
9 years ago
1.0.6
9 years ago
1.0.5
9 years ago
1.0.4
9 years ago
1.0.3
9 years ago
1.0.2
9 years ago
1.0.1
9 years ago
1.0.0
9 years ago