gulp-syrup

1.0.4 • Public • Published

gulp-syrup v1.0.4

Syntax syrup for gulpfile

Usage

In your gulpfile, gulp-syrup works like the following.

const {task, src, dest, $} = require('gulp-syrup')(require('gulp'))
 
task('default', () =>
  src('src/**/*.js')
    .pipe($.somePlugin())
    .pipe(dest('dist/')))

gulp-syrup returns the static versions of the gulp APIs and $ as gulp-load-plugins.

Expose to globals

It's useful if it works but be careful.

require('gulp-syrup')(require('gulp')).globals()
 
task('default', () =>
  src('src/**/*.js')
    .pipe($.somePlugin())
    .pipe(dest('dist/')))

This exposes the gulp APIs and gulp-load-plugins to the global namespace of gulpfile i.e. exposes src, dest, task, watch and $.

Install

npm install --save-dev gulp-syrup

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.4
    4
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.4
    4
  • 1.0.3
    0
  • 1.0.2
    0
  • 1.0.1
    0

Package Sidebar

Install

npm i gulp-syrup

Weekly Downloads

4

Version

1.0.4

License

MIT

Last publish

Collaborators

  • kt3k