Never Print Magazines

    gulp-yaml-include

    0.3.1 • Public • Published

    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

    Install

    npm i gulp-yaml-include

    DownloadsWeekly Downloads

    5

    Version

    0.3.1

    License

    BSD-2-Clause

    Unpacked Size

    6.59 kB

    Total Files

    5

    Last publish

    Collaborators

    • aaharu