JSPM

gulp-src

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 63
  • Score
    100M100P100Q64293F
  • License MIT

Get files or dependencies from YAML file (.yml)

Package Exports

  • gulp-src

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (gulp-src) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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