Skip to content

Instantly share code, notes, and snippets.

@yassinagx
Created May 17, 2014 21:59
Show Gist options
  • Save yassinagx/1890231c135915aec03c to your computer and use it in GitHub Desktop.
Save yassinagx/1890231c135915aec03c to your computer and use it in GitHub Desktop.
Gruntfile Phonegap Build
module.exports = (grunt) ->
require('load-grunt-tasks')(grunt)
grunt.initConfig {
"phonegap-build": {
debug: {
options: {
archive: "app.zip",
appId: "812618",
user: {
token: process.env.PHONEGAP_BUILD_TOKEN
}
}
},
release: {
options: {
archive: "app.zip",
appId: "812618",
user: {
token: process.env.PHONEGAP_BUILD_TOKEN
}
}
}
}
zip: {
app: {
src: 'www/**/*'
dest: 'app.zip'
}
}
notify: {
options: {
enabled: true
max_jshint_notifications: 5
title: 'Project Name'
}
"phonegap-build": {
options: {
title: 'Phonegap Build'
message: 'Successfull build'
}
}
}
}
grunt.registerTask 'default', ['zip:app', 'phonegap-build:debug','notify:phonegap-build']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment