1
0
Fork 0
mirror of https://github.com/sensebox/blockly-app synced 2025-02-22 14:53:58 +01:00

switch build commands to --prod

This commit is contained in:
Norwin 2019-02-16 19:29:57 +01:00
parent 7c2754cc24
commit 1e067456ae
2 changed files with 6 additions and 2 deletions

2
.gitignore vendored
View file

@ -33,3 +33,5 @@ $RECYCLE.BIN/
.DS_Store .DS_Store
Thumbs.db Thumbs.db
UserInterfaceState.xcuserstate UserInterfaceState.xcuserstate
reedu-android.keystore

View file

@ -7,10 +7,12 @@
"scripts": { "scripts": {
"start": "ionic-app-scripts serve", "start": "ionic-app-scripts serve",
"clean": "ionic-app-scripts clean", "clean": "ionic-app-scripts clean",
"build": "ionic-app-scripts build", "build": "ionic-app-scripts build --prod",
"android:build": "ionic cordova build android", "android:build": "ionic cordova build --release --prod android",
"android:build:debug": "ionic cordova build android",
"android:deploy": "adb install -r platforms/android/app/build/outputs/apk/debug/app-debug.apk", "android:deploy": "adb install -r platforms/android/app/build/outputs/apk/debug/app-debug.apk",
"android:start": "adb shell am force-stop de.sensebox.blockly; adb shell am start -n de.sensebox.blockly/de.sensebox.blockly.MainActivity; sleep 5; adb logcat | grep -F \"`adb shell ps | grep de.sensebox.blockly | awk -F' ' '{print $2}'`\"", "android:start": "adb shell am force-stop de.sensebox.blockly; adb shell am start -n de.sensebox.blockly/de.sensebox.blockly.MainActivity; sleep 5; adb logcat | grep -F \"`adb shell ps | grep de.sensebox.blockly | awk -F' ' '{print $2}'`\"",
"android:dev": "npm run android:build:debug && npm run android:deploy && npm run android:start",
"lint": "ionic-app-scripts lint" "lint": "ionic-app-scripts lint"
}, },
"dependencies": { "dependencies": {