Miss any of our Open RFC calls?Watch the recordings here! »

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

Install

npm i gulp-src

DownloadsWeekly Downloads

48

Version

1.0.0

License

MIT

Last publish

Collaborators

  • avatar