An open API service indexing awesome lists of open source software.

https://github.com/craigchilds94/gulp-boilerplate

Custom Gulp tasks packaged as a gulp "plugin"
https://github.com/craigchilds94/gulp-boilerplate

Last synced: 4 months ago
JSON representation

Custom Gulp tasks packaged as a gulp "plugin"

Awesome Lists containing this project

README

        

# gulp-boilerplate
Some custom Gulp tasks packaged as a gulp "plugin"

### Add dependency to package.json
```
"dependencies": {
"gulp": "^3.8.10",
"gulp-boilerplate": "CraigChilds94/gulp-boilerplate"
}
```

### Example usage

Specify some options and pass them to the task function. Any present will overwrite the default options which can be found in `index.js` by the task name on the `settings` object. Example: `settings.deploy` would hold the default options for the deploy task. Below is an example of how to apply the `boilerplate.deploy` task to your `gulpfile`.

```js
var gulp = require('gulp');
var boilerplate = require('gulp-boilerplate')(gulp);

var options = {
deploy: {
files: [
'**/*',
'!{_deploy,_deploy/**}',
'!{vendor,vendor/**}',
'!{assets,assets/**}',
'!{node_modules,node_modules/**}',
'!package.json',
'!.editorconfig',
'!gulpfile.js',
'!composer.json',
'!composer.lock',
'!README.md'
],
destination: '_deploy'
},
};

gulp.task('deploy', boilerplate.deploy(options.deploy));
```

You can find an example `gulpfile.js` and `package.json` in the [example](/example) folder. This example relies on the default options which are set in `index.js`.