0.0.1 • Published 7 years ago

stimpak-gulp-babel v0.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

stimpak gulp-babel

Create dynamically loaded gulp tasks that automatically load plugins.

Installation

$ npm install stimpak stimpak-gulp-babel -g

Usage

$ cd my-project-directory
$ stimpak gulp-babel

Dynamic Task & Plugin Loading

  1. Create a dynamic task file in the ./tasks directory.
  2. Install the gulp plugins you want to use normally via npm.
  3. Use plugins without requiring or importing via the dynamic task.
  4. Gulp recognizes the new task automatically, so you can immediately use it on the command-line.
// ./tasks/do-something.js
module.exports = (gulp, plugins) => {
  gulp.task("do-something", () => {
    gulp.src("**/*.js")
      .pipe(plugins.concat())
      .pipe(gulp.dest("./dist/"));
  });
};