Grunt tutorial

Steps to get this project up and running with Grunt:

  1. Install Node.js
  2. Install Grunt Command Line Interface (CLI)
  3. Open Terminal and navigate to the folder this file sits within
  4. Run: npm install
  5. The dependency files will download to a node_modules folder within this folder
  6. Run: grunt
  7. Grunt will run, triggering the JSHint, Uglify and SmushIt tasks, producing the following output:
    
    Running "jshint:all" (jshint) task
    >> 2 files lint free.
    
    Running "uglify:all" (uglify) task
    File "js/my-project.min.js" created.
    
    Running "smushit:path" (smushit) task
    [smushit] start smash img/logo.png
    [smushit] item: img/logo.png saving: 22.92%
    [smushit] smushit completed: total 1, saving 1
    
    Done, without errors.
    

Take a look through the files in this folder to understand in more detil what's going on.