Skip to content

hiyamamo/gulp-yml-merge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npm version

gulp-yml-merge

Gulp plugin merge yaml

Install

npm install --save-dev gulp-yml-merge

Usage

/* gulpfile.js */
const gulp = require('gulp');
const ymlMerge = require('gulp-yml-merge');

gulp.task('merge', () => {
  gulp.src('a.yml')
    .pipe(ymlMerge({
      targetPath: 'b.yml',
      isPriorSrc: true
    }))
    .pipe(gulp.dest('./dist'))
});
# a.yml
foo: foo
bar: bar
qux:
  a: a
  b: b
# b.yml
foo: foo-foo
baz: baz
qux:
  b: b-b
# dist/a.yml
foo: foo
baz: baz
qux:
  a: a
  b: b
bar: bar

About

Gulp plugin merge yaml

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published