Skip to content

Latest commit

 

History

History
40 lines (27 loc) · 1.44 KB

DOCS.md

File metadata and controls

40 lines (27 loc) · 1.44 KB

gulpGetStart

A Getting start Gulp Workflow boiler-plate for for Front end Dev to automate your workflow

Usage

  • Run npm install.
  • Run gulp or npm run dev for development.
  • Run gulp build or npm run build for production build.

Scaffolding

  • Clone this repository
  • Change the remote url
  • Run npm install
  • Update npm dependencies with npm install npm-check -g and then npm-check -u

What is this repository for?

Automations added

  • Updating a file whenever it is changed so you don’t have to run a command to update it.
  • Refreshing the browser automatically when needed so you don’t have to alt-tab and hit the refresh button manually.
  • Compile SCSS/SASS/CSS files when needed without reloading the page for style changes.
  • Auto-prefixer for newer css styles when needed without reloading the page for style changes.
  • Stream the compiled css when needed without reloading the page for style changes.
  • Optimizing your CSS, JavaScript, images and running every optimization you need to make sure your website is wicked fast.

Development Phase

There are three objectives for the development phase. They are:

  • gulp tasks: clean, images, fonts, sass, html, watch, browserSync.
  • default task that chains everything created into a single task.
  • build task that builds project for production.

Optimization Phase

  • strip-css-comments and cssnano for CSS.
  • uglify for JS.