gulp-src

1.0.0 • Public • Published

gulp-src

A Gulp plugin for get files or dependencies from YAML file (.yml)

Usage in gulpfile.js:

gulp.task('source', function() {
    var sources = gulp.src('source.yml')
        .pipe(source())
        .pipe(gulp.dest('./app'));
 
    return gulp.src('./app/index.html')
        .pipe(inject(sources, {relative: true}))
        .pipe(gulp.dest('./app'));
});

And in source.yml:

scripts:
  - node_modules/jquery/dist/jquery.min.js
 
#styles:
  # your stylesheets here...
 
# you can add any other folder

Package Sidebar

Install

npm i gulp-src

Weekly Downloads

49

Version

1.0.0

License

MIT

Last publish

Collaborators

  • matp