Book Image

LESS WEB DEVELOPMENT COOKBOOK

Book Image

LESS WEB DEVELOPMENT COOKBOOK

Overview of this book

Table of Contents (19 chapters)
Less Web Development Cookbook
Credits
Foreword
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Installing Grunt plugins


Grunt plugins are the heart of Grunt. Every plugin serves a specific purpose and can also work together with other plugins. In order to use Grunt to set up your Less workflow, you need to install several plugins. You can find more information about these plugins in the following How it works… section.

Getting ready

Before you install the plugins, you should first create some basic files and folders for the project. Navigate to the root of the project using cd ~/Desktop/chapter1 and run the following to create the files and folders:

$ a="app/dev" ; mkdir -p $a/css ; mkdir $a/less
$ touch $a/less/app.less && touch $a/index.html

This simply creates some files that you are going to work with throughout the chapter. You do not need to use the command line to create them, but in the end, you should end up with the following folder and file structure:

How to do it…

Grunt plugins are essentially Node.js modules that can be installed and added to the package.json file...