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 ()
|
|
|
|
{
|
2016-10-06 13:32:03 +00:00
|
|
|
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'));
|
|
|
|
});
|
|
|
|
|