Install plugin
npm install gulp-yml --save-dev
Add yml-compilation task into your gulp-file:
paths =
build: "build"
scripts: yml: "src/**/*.yml"
gulp.task "yml:compile", ->
gulp
.src( paths.scripts.yml )
.pipe( yml( ).on( "error", gutil.log ) )
.pipe( concat "all.yml" )
.pipe( gulp.dest( paths.build ) )
Finish
Plugin redirects passed options directly to js-yaml#safeLoad( ), so read its documentation for details.