salix/gulpfile.js

17 lines
336 B
JavaScript
Raw Normal View History

2016-10-06 09:18:02 +00:00
var gulp = require ('gulp');
var jsoncombine = require ('gulp-jsoncombine');
function combineFunc (data)
{
return new Buffer (JSON.stringify (data));
}
gulp.task ('default', function ()
{
var json = gulp.src ('./@salix/**/routes.json')
2016-10-06 09:18:02 +00:00
.pipe (jsoncombine ('salix.routes.json', combineFunc))
.pipe (gulp.dest ('./build'));
});