Skip to content

TheoryOfNekomata/gulp-breezy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gulp-breezy

Declare Gulp tasks fast.

var concat = require('gulp-concat'),
    breezy = require('gulp-breezy'),
    sourcemaps = require('gulp-sourcemaps');

breezy('compile',
    {

        // gulp.src(...)
        src: './src/js/**/*.js',

        // in case you want to add this to a watch task
        watch: true,

        // Declare as a dependency of `default` task. This is `true` by default.
        'default': true,

        // Breezy does the pipeline for you, as long as you specify the modules
        // to be used, as well as its options:
        pipeline: [
            // specify the expression you ought to be putting inside `pipe()`
            concat('app.js'),
            sourcemaps.init(),

            // you can specify the module name without the arguments
            'gulp-uglify',
            sourcemaps.write('.')
        ],

        dest: './public/app.min.js',

        deps: ['another-task']
    }, function cb() { /* ... */ }
);

// ...

breezy('default', breezy.getDefaultTasks());

// Easily create watcher tasks with optional dependencies
breezy.createWatcherTask('watch', ['default']);

Todo

  • Add plumber for breezy.createWatcherTask()

License

MIT

About

Declare Gulp tasks fast.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published