Last active
August 29, 2015 13:59
-
-
Save cocodrino/10938024 to your computer and use it in GitHub Desktop.
node-webkit gulp generator
This file contains hidden or 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 zip = require('gulp-zip'); | |
var rename = require("gulp-rename"); | |
var shell = require('gulp-shell') | |
gulp.task('nodewk', function() { | |
gulp.src('app/**') | |
.pipe(zip('app.zip')) | |
.pipe(rename("app.wk")) | |
.pipe(gulp.dest('build')) | |
.pipe(shell([ | |
'nw <%= file.path %>' | |
])); | |
}); | |
// Default Task | |
gulp.task('default', ["nodewk"]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment