Removed duplicate logging for Android, and created start:android-log.
This commit is contained in:
parent
2121655249
commit
ea23b26795
2 changed files with 3 additions and 2 deletions
|
|
@ -66,7 +66,7 @@ module.exports = function(grunt) {
|
||||||
command: 'cordova prepare android && cordova build android --release',
|
command: 'cordova prepare android && cordova build android --release',
|
||||||
},
|
},
|
||||||
run_android: {
|
run_android: {
|
||||||
command: 'cordova run android --device && npm run log:android',
|
command: 'cordova run android --device',
|
||||||
},
|
},
|
||||||
log_android: {
|
log_android: {
|
||||||
command: 'adb logcat | grep chromium',
|
command: 'adb logcat | grep chromium',
|
||||||
|
|
@ -363,7 +363,7 @@ module.exports = function(grunt) {
|
||||||
grunt.registerTask('build-ios-release', ['prod', 'exec:build_ios_release']);
|
grunt.registerTask('build-ios-release', ['prod', 'exec:build_ios_release']);
|
||||||
|
|
||||||
// Build android
|
// Build android
|
||||||
grunt.registerTask('start-android', ['build-android-debug', 'exec:run_android', 'exec:log_android']);
|
grunt.registerTask('start-android', ['build-android-debug', 'exec:run_android']);
|
||||||
grunt.registerTask('build-android-debug', ['exec:build_android_debug']);
|
grunt.registerTask('build-android-debug', ['exec:build_android_debug']);
|
||||||
grunt.registerTask('build-android-release', ['prod', 'exec:build_android_release', 'sign-android']);
|
grunt.registerTask('build-android-release', ['prod', 'exec:build_android_release', 'sign-android']);
|
||||||
grunt.registerTask('sign-android', ['exec:sign_android']);
|
grunt.registerTask('sign-android', ['exec:sign_android']);
|
||||||
|
|
|
||||||
|
|
@ -127,6 +127,7 @@
|
||||||
"start": "npm run build:www && ionic serve --nolivereload --nogulp -s --address 0.0.0.0",
|
"start": "npm run build:www && ionic serve --nolivereload --nogulp -s --address 0.0.0.0",
|
||||||
"start:chrome": "npm run build:www && ionic serve --nolivereload --nogulp -s --address 0.0.0.0 --browser \"google chrome\"",
|
"start:chrome": "npm run build:www && ionic serve --nolivereload --nogulp -s --address 0.0.0.0 --browser \"google chrome\"",
|
||||||
"start:android": "grunt start-android",
|
"start:android": "grunt start-android",
|
||||||
|
"start:android-log": "grunt start-android && npm run log:android",
|
||||||
"start:ios": "grunt start-ios",
|
"start:ios": "grunt start-ios",
|
||||||
"start:windows": "npm run build:www && npm run build:windows",
|
"start:windows": "npm run build:www && npm run build:windows",
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue