@pluritech/ion-codepush
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

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-codepush

Consuming

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 tsc

To lint all *.ts files:

$ npm run lint

License

MIT © Pluritech

Readme

Keywords

Package Sidebar

Install

npm i @pluritech/ion-codepush

Weekly Downloads

6

Version

1.0.5

License

MIT

Last publish

Collaborators