/gulp-yaml-include

A gulp plugin for js-yaml and yaml-include.

Primary LanguageJavaScriptBSD 2-Clause "Simplified" LicenseBSD-2-Clause

gulp-yaml-include

A gulp plugin for yaml-include.

npm version Build Status Coverage Status Scrutinizer Code Quality FOSSA Status

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

FOSSA Status