Skip to content

Instantly share code, notes, and snippets.

@wtnabe
Created September 28, 2014 00:53
Show Gist options
  • Save wtnabe/160aa4901f122d2cc871 to your computer and use it in GitHub Desktop.
Save wtnabe/160aa4901f122d2cc871 to your computer and use it in GitHub Desktop.
gulp task for installing basic cordova plugins ( with gulpfile prepared by Ionic )
gulp.task('cordova-plugin-install', function() {
require('./plugins.json').forEach(function(plugin) {
sh.exec('cordova plugin add ' + plugin, {async: false}, function(code, output) {
console.log(output);
});
});
});
[
"https://github.com/apache/cordova-plugin-inappbrowser",
"https://github.com/danwilson/google-analytics-plugin"
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment