Skip to content

mquentin/app-zero-dechet

Repository files navigation

zeroDechet

Development

This app is built with the NativeScript CLI. Once you have the CLI installed, start by cloning the repo:

$ git clone https://github.com/mquentin/app-zero-dechet.git
$ cd app-zero-dechet

From there you can use the run command to run zeroDechet on iOS:

$ tns run ios

And the same command to run zeroDechet on Android:

$ tns run android

Run on android device

  • link the device through USB

  • list the list of available device (including the connected one): tns device android

  • install the IOS / android platforms tns install

  • Build the first time tns build Android --bundle

  • run nativescript: tns run android

  • run and debug: tns debug android

Update the app - nativescript, npm packages, platform...

Also remove the existing platform before: tns platform remove android

Update instructions

Run on android for production

1) Install webpack.   
npm install --save-dev nativescript-dev-webpack

2) Install webpack’s dependencies.   
npm install

3) Run on iOS with webpack, UglifyJS, and Angular Ahead-of-Time enabled.   
tns run ios --bundle --env.uglify --env.aot 

4) Run on Android with webpack, UglifyJS, Angular Ahead-of-Time (if using Angular), and V8 heap snapshot builds enabled.   
tns run android --bundle --env.uglify --env.aot --env.snapshot

Linting

zeroDechet uses tslint + codelyzer rules to ensure the code follows the angular style guide.

You can run the linter with the tslint npm script:

$ npm run tslint

Unit Testing

zeroDechet uses NativeScript’s integrated unit test runner with Jasmine. To run the tests for yourself use the tns test command:

$ tns test ios --emulator
$ tns test android --emulator

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published