gulp-src
v1.0.0
Published
Get files or dependencies from YAML file (.yml)
Downloads
247
Maintainers
Readme
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