1.0.0 • Published 8 years ago

gulp-src v1.0.0

Weekly downloads
213
License
MIT
Repository
github
Last release
8 years ago

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