Skip to content

Instantly share code, notes, and snippets.

@bicherele
Forked from cocodrino/gulpfile
Created June 2, 2014 10:13
Show Gist options
  • Save bicherele/5d8ef1e7cb19779fe4ec to your computer and use it in GitHub Desktop.
Save bicherele/5d8ef1e7cb19779fe4ec to your computer and use it in GitHub Desktop.
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