17 lines
336 B
JavaScript
17 lines
336 B
JavaScript
|
|
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')
|
|
.pipe (jsoncombine ('salix.routes.json', combineFunc))
|
|
.pipe (gulp.dest ('./build'));
|
|
});
|
|
|