ionic-framework Ionic - Analyze your app with jshint and gulp-jshint as part of your build process Add Makefile


Example

  1. Create a file named: "Makefile" (with no extension) in the root of your app

  2. Open it in a text editor and add this:

android:
    gulp lint
    gulp sass
    ionic run android --device

ios:
    gulp lint
    gulp sass
    ionic build ios

This will lint your app and if that passes, it will compile sass and build you app.

Usage: To run your app, instead of the regular "ionic run android --device", run these commands:

Android: make android
iOS    : make ios