A gulp plugin for yaml-include.
current/
├── gulpfile.js
├── dist/
└── src/
├── base.yaml
└── parts/
└── sub.yaml
gulpfile.js
var gulp = require("gulp"),
yamlinc = require("gulp-yaml-include");
gulp.task("sample", function () {
return gulp.src("./src/*.yaml")
.pipe(yamlinc())
.pipe(gulp.dest("./dist/"));
});
src/base.yaml
version: 1
sub: !!inc/file parts/sub.yaml
src/parts/sub.yaml
hoge: fuga
results:
dist/base.yaml
version: 1
sub:
hoge: fuga
BSD-2-Clause