Skip to content

Commit

Permalink
more clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
yocontra committed May 2, 2014
1 parent 1b73a11 commit d31a415
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/writing-a-plugin/guidelines.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
- For example: deleting a folder does not need to be a gulp plugin. Use a module like `rimraf` within a task instead.
- Wrapping every possible thing just for the sake of wrapping it will pollute the ecosystem with low quality plugins that don't make sense within the gulp paradigm.
- gulp plugins are for file-based operations! If you find yourself shoehorning a complex process into streams just make a normal node module instead.
- A good example of a gulp plugin would be something like gulp-coffee. The coffee-script module does not work with Vinyl out of the box, so we wrap it to add this functionality and abstract away pain points to make it work well within gulp.
1. Your plugin should only do **one thing**, and do it well.
- Avoid config options that make your plugin do completely different tasks
- For example: A JS minification plugin should not have an option that adds a header as well
Expand Down

0 comments on commit d31a415

Please sign in to comment.