Skip to content

Instantly share code, notes, and snippets.

@logicaroma
Created August 4, 2013 13:57
Show Gist options
  • Save logicaroma/6150396 to your computer and use it in GitHub Desktop.
Save logicaroma/6150396 to your computer and use it in GitHub Desktop.
Grunt phonegap-build
// Project configuration.
grunt.initConfig({
"phonegap-build": {
debug: {
options: {
archive: "app.zip",
"appId": "1234",
"user": {
"email": "[email protected]",
"password": "yourPassw0rd"
}
}
},
release: {
options: {
"isRepository": "true",
"appId": "9876",
"user": {
"token": "ABCD123409876XYZ"
}
}
}
},
zip: {
app: {
file: {
src: ["index.html", "js/**/*.js", "css/**/*.js", "icon.png", "images/background.jpg"],
dest: "app.zip"
}
}
}
});
// Load tasks.
grunt.loadNpmTasks('grunt-zipstream');
grunt.loadNpmTasks('grunt-phonegap-build');
// Default task.
grunt.registerTask('default', 'zip phonegap-build:debug');
url: https://coderwall.com/p/e0jxea
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment