5 Simple Steps Fast Reads: Build Tools by Gavin Davies - sample project
Sample code for the book "5 Simple Steps Fast Reads: Build Tools" by Gavin Davies.
This repository is an example project showing how a build file might be written.
This project has two key files:
Gulpfile.js- build file for the Gulp build tool
Gruntfile.js- build file for the Grunt build tool
You will need:
- NodeJS with NPM installed
# If you are using Grunt: npm install --global grunt-cli # If you are using Gulp: npm install --global gulp
Clone this repository to a directory on your computer. Then, install the dependencies with:
Running the Gulp build
Running it once:
Running it in "watch" mode, with a local webserver on http://localhost:3003/ :
Running the Grunt build
Running it in "watch" mode, with a local webserver on http://localhost:3004/ :
Install LiveReload for Chrome. Both Grunt and Gulp build files have live reload configured so you can make changes and the browser will refresh automatically whenever you change anything.
This repository is designed as a companion to the short book "5 Simple Steps Fast Reads: Build Tools" by Gavin Davies which is available for the price of a cup of coffee!