1.0.5 • Published 9 years ago
@pluritech/ion-codepush v1.0.5
pluritech-ion-codepush
Angular 2 Provider used at Pluritech to updates our Ionic Apps using CodePush.
Installation
To install this library, run:
$ npm install --save pluritech-ion-codepushConsuming
Import the library in any Angular application by adding then from your Angular AppModule:
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
// Import Ionic Native CodePush Provider
import { CodePush } from '@ionic-native/code-push';
// Import your library
import { CodePushService } from '@pluritech/ion-codepush';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
],
// Include both in providers
providers: [CodePush, CodePushService],
bootstrap: [AppComponent]
})
export class AppModule { }Once the library is imported, don't forget to add CodePushService to app.component.ts:
import { CodePushService } from '@pluritech/ion-codepush';
export class MyApp {
constructor(codePush: CodePushService) { }That's it. The CodePushService will do the work.
Development
To generate all *.js, *.js.map and *.d.ts files:
$ npm run tscTo lint all *.ts files:
$ npm run lintLicense
MIT © Pluritech