blob: c9be91cb240a7ea1de6f6b4c08873905002692d2 [file] [log] [blame]
var gulp = require('gulp');
var concat = require('gulp-concat');
gulp.task('default', function() {
gulp.watch('./source/**/*.md', ['concat']);
});
gulp.task('concat', function() {
return gulp.src([
'./source/base.md',
'./source/utility/group.md',
'./source/utility/**/*.md',
'./source/tenant/group.md',
'./source/tenant/**/*.md',
'./source/service/group.md',
'./source/service/**/*.md',
'./source/core/group.md',
'./source/core/**/*.md',
])
.pipe(concat('../../../apiary.apib', {newLine: '\n \n \n'}))
.pipe(gulp.dest('./'));
});