This plugin allows combining a raml file and its dependencies into a unique file within the gulp pipeline mechanism.
npm install --save-dev gulp-flatraml
const flat = require('gulp-flatraml');
gulp.task('flatten', function() {
return gulp.src('*.raml')
.pipe(flat())
.pipe(gulp.dest('dist'));
});