ionic tutorial - Add Makefile in Ionicframework - ionic framework - ionic 2 - ionic creator - ionic development



Create a file named: "Makefile" (with no extension) in the root of your app 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
Click below button to copy the code. From wikitechy - ionic tutorial - ionic framework tutorial - team

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  
Click below button to copy the code. From wikitechy - ionic tutorial - ionic framework tutorial - team

Related Searches to Add Makefile in Ionicframework