Commit 7050895d authored by Jérémie Garcia's avatar Jérémie Garcia
Browse files

build changes and update node modules

parent 96874032
var NwBuilder = require('node-webkit-builder');
var NwBuilder = require('nw-builder');
var gulp = require('gulp');
var gutil = require('gulp-util');
gulp.task('nw', function () {
gulp.task('traj', function () {
var nw = new NwBuilder({
version: '0.12.1',
......@@ -15,18 +15,18 @@ gulp.task('nw', function () {
'!./build/**',
'!./node_modules/gulp/**',
'./node_modules/gulp-util/**',
'./node_modules/node-webkit-builder/**'],
'./node_modules/nw-builder/**'],
//platforms: ['osx32', 'win32', 'linux32'] // change this to 'win' for/on windows
platforms: ['osx'] // change this to 'win' for/on windows
});
// Log stuff you want
nw.on('log', function (msg) {
gutil.log('node-webkit-builder', msg);
gutil.log('nw-builder', msg);
});
// Build returns a promise, return it so the task isn't called in parallel
return nw.build().catch(function (err) {
gutil.log('node-webkit-builder', err);
gutil.log('nw-builder', err);
});
});
\ No newline at end of file
......@@ -21,8 +21,8 @@
"ws": "0.7.1"
},
"devDependencies": {
"node-webkit-builder": "1.0.11",
"gulp": "3.8.11",
"gulp-util": "3.0.4"
"gulp": "^3.8.11",
"gulp-util": "3.0.4",
"nw-builder": "^2.0.2"
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment