A Collection of Gulp.js Recipes in ES6
Recipes combine multiple Ingredients together, and are designed to be copied into new projects.
Most Ingredients complete a single task. Watch, Browsersync and some Image Ingredients contain multiple tasks.
Configuration is stored in config
.
The following properties are included in the basic configuration.
config.root // The project root.
config.env // Relevant environment variables.
config.src // The project source paths/directories/globs.
config.src.root // The project source directory.
config.dist // The project distribution directories.
config.dist.root // The project distribution directory.
config.clean // The paths of generated files and directories for cleanup.
config.plugins // Gulp plug-in configurations.
Additional configuration can be performed by adding additional properties to
config.src
, config.dist
, config.plugins
etc..
-
- Clean, Watch, and Sync Browser.
- HTML: Lint and Minify.
- CSS: Lint, Prefix, and Minify with Source Maps.
- JS: Lint, Bundle, Transpile, and Minify with Source Maps.
- Images: Optimize (jpg/jpeg, png, svg, gif).
-
Sassy Web (HTML, SASS, and JS)
- Clean, Watch, and Sync Browser.
- HTML: Lint and Minify.
- SASS: Lint, Compile, Prefix, and Minify with Source Maps.
- JS: Lint, Bundle, Transpile, and Minify with Source Maps.
- Images: Optimize (jpg/jpeg, png, svg, gif).
-
Modern Web (HTML, SASS, and TS)
- Clean, Watch, and Sync Browser.
- HTML: Lint and Minify.
- SASS: Lint, Compile, Prefix, and Minify with Source Maps.
- TS: Lint, Bundle, Compile, and Minify with Source Maps.
- Images: Optimize (jpg/jpeg, png, svg, gif).
-
Advanced Sassy Web (HTML, SASS, and JS)
- Includes Sassy Web Recipe with:
- HTML: Injected JS, and Gzip.
- CSS: Purge, Critical, PostCSS Assets, and Gzip.
- Generate Sitemap.
-
Advanced Modern Web (HTML, SASS, and TS)
- Includes Modern Web Recipe with:
- HTML: Injected JS, and Gzip.
- CSS: Purge, Critical, PostCSS Assets, and Gzip.
- Generate Sitemap.
-
Responsive Sassy Web (HTML, SASS, and JS with Inject Responsive Images)
- Includes Advanced Sassy Web Recipe with:
- HTML: Inject Image Strings, in-line base64 miniature images.
- JS: Concatenate.
- Images: Responsive Image Sets.
-
Responsive Modern Web (HTML, SASS, and TS with Inject Responsive Images)
- Includes Advanced Modern Web Recipe with:
- HTML: Inject Image Strings, in-line base64 miniature images.
- TS: Concatenates JS Plugins.
- Images: Responsive Image Sets.
- Base
- Clean
- HTML
- CSS
- SASS
- JS
- TS
- PHP
- Images
- Sitemap Generator
- If Conditional