Skip to content

Northward-Design/gulp-recipes-es6

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gulp ES6 Recipes

A Collection of Gulp.js Recipes in ES6

Overview

Recipes

Recipes combine multiple Ingredients together, and are designed to be copied into new projects.

Ingredients

Most Ingredients complete a single task. Watch, Browsersync and some Image Ingredients contain multiple tasks.

Configuration

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..

Index

Recipes

Essential Ingredients

  • Basic Web (HTML, CSS, and JS)

    • 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 Ingredients (Development/Production)

Advanced Images (Development/Production)

Ingredients