Skip to content
This repository has been archived by the owner on Feb 18, 2021. It is now read-only.

Latest commit

 

History

History
149 lines (92 loc) · 4.53 KB

README.md

File metadata and controls

149 lines (92 loc) · 4.53 KB

grunt-steps : 03 - advanced (pt-Br)

Advanced usage of Grunt

Prerequisites

  • Must have Git installed

  • Must have node.js (at least v0.10.x) installed with npm (Node Package Manager)

  • Must have Grunt.js CLI node package installed globally. sudo npm install -g grunt-cli

  • Must have bower node package installed globally. sudo npm install -g bower

Installation Guide

Enter the following commands in the terminal

git clone https://github.com/soudev/grunt-steps.git
cd grunt-steps/03
npm install

Commands

run grunt

npm start

Grunt.js

  • development workflow
grunt
  • build (production version)
grunt release
  • preview builded
grunt preview

Commands on Mac

Create commands list

npm init

npm install \
  jshint-stylish \
  time-grunt \
  jit-grunt \
  grunt \
  grunt-contrib-watch \
  grunt-contrib-clean \
  grunt-contrib-copy \
  grunt-contrib-concat \
  grunt-contrib-uglify \
  grunt-contrib-htmlmin \
  grunt-contrib-cssmin \
  grunt-contrib-jshint \
  grunt-lintspaces \
  grunt-newer \
  grunt-browser-sync \
  grunt-filerev \
  grunt-usemin \
  --save-dev

touch Gruntfile.js

bower init

bower install \
  jquery \
  --save

Links

--

License