gtl

gulp-task-loader-with-params

This is a plugin that helps you breaking down tasks into files and pass to it a parameter

Showing:

Popularity

Downloads/wk

4

GitHub Stars

0

Maintenance

Last Commit

5yrs ago

Contributors

1

Package

Dependencies

1

Size (min+gzip)

19.2KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

gulp-task-loader-with-params

npm install --save gulp-task-loader-with-params

##Usage: Assuming your gulp folder is /gulp-tasks

####Sample gulp file /gulp/sample.js

module.exports =  function(params) {
  return function () {
        browserSync({
          open: gutil.env.open === 'true',
          port: 9955,
          server: {
            baseDir: params.buildTarget+'/'+params.proj
          }
        });
  }
}

In your gulpfile.js

var handleError = function(){
  //some function here
}

taskConfigObj = {
    'buildTarget': 'release',
    'forRelease': true,
    'proj': 'projectName',
    'pass-call-function': handleError
};

require('gulp-task-loader-with-params')('gulp-tasks', taskConfigObj)

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100