gulp-yaml-include
v0.3.1
Published
A gulp plugin for yaml-include.
Downloads
4
Readme
gulp-yaml-include
A gulp plugin for yaml-include.
Usage
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
LICENSE
BSD-2-Clause