Cheatography
https://cheatography.com
Creating a new app
cd documents/projects
ionic start app_name {tabs|sidemenu|blank}
cd app_name
|
Android Preparation
cd documents/projects/app_name
ionic prepare andoid
cordova build —release android
cd platforms/android/build/outputs/apk
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore keystore_name.keystore android-release-unsigned.apk keystore_name
zipalign -f -v 4 android-release-unsigned.apk app_name.apk
|
|
|
Various Commands
Install Cordova CLI |
npm install -g cordova ionic |
Generate Resources |
ionic resources |
Add Platform |
ionic platform add {ios|android} |
Remove Platform |
ionic platform remove {ios|android} |
Prepare Platform |
ionic prepare {ios|android} |
Run Ios |
ionic run ios --target="iPhone-5" |
Run Android |
ionic run android |
Build Android |
cordova build --release android |
Restore Plugins |
cordova state restore --plugins |
Reset Plugins |
cordova state reset |
Install/Update Node Modules |
npm update |
Install/Update Global Node Modules |
npm update -g |
|
Created By
Metadata
Favourited By
Comments
No comments yet. Add yours below!
Add a Comment
Related Cheat Sheets