Last active
August 29, 2015 14:18
-
-
Save benwestrate/a597f3a93033160cb898 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require('gulp'); | |
var phonegapBuild = require('gulp-phonegap-build'); | |
gulp.task( 'dist' , function(){ | |
gulp.src('www/**/*') | |
.pipe(gulp.dest("./dist")); | |
gulp.src('config.xml') | |
.pipe(gulp.dest("./dist")); | |
}); | |
gulp.task('phonegap-build', ['dist'], function () { | |
gulp.src('dist/**/*') | |
.pipe(phonegapBuild({ | |
"appId": "", | |
"user": { | |
"token": "" | |
} | |
})); | |
}); | |
gulp.task('default', function() { | |
console.log( "Please specify a task" ); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "phone-gap-build-util", | |
"version": "1.0.0", | |
"description": "", | |
"main": "gulp.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"author": "", | |
"license": "ISC", | |
"dependencies": { | |
"gulp": "^3.8.10", | |
"gulp-phonegap-build": "^0.1.3" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How to use this tool