Skip to content

Create dynamically loaded gulp tasks that automatically load plugins.

Notifications You must be signed in to change notification settings

FreeAllMedia/stimpak-gulp-babel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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/"));
  });
};

About

Create dynamically loaded gulp tasks that automatically load plugins.

Resources

Stars

Watchers

Forks

Packages

No packages published