Skip to content
This repository has been archived by the owner on Jan 5, 2022. It is now read-only.

Latest commit

 

History

History
60 lines (43 loc) · 1.67 KB

README.md

File metadata and controls

60 lines (43 loc) · 1.67 KB

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