Book Image

Grunt Cookbook

By : Jurie-Jan Botha
Book Image

Grunt Cookbook

By: Jurie-Jan Botha

Overview of this book

<p>A web application can quickly turn into a complex orchestration of many smaller components, each one requiring its own bit of maintenance. Grunt allows you to automate all the repetitive tasks required to get everything working together by using JavaScript, the most popular programming language.</p> <p>Grunt Cookbook offers a host of easy-to-follow recipes for automating repetitive tasks in your web application's development, management, and deployment processes. This book will introduce you to methods that can be used to automate basic processes and your favorite tools. By following the recipes, you will soon be comfortable using Grunt to perform a wide array of advanced tasks in a range of different scenarios.</p>
Table of Contents (17 chapters)
Grunt Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Using Stylus plugins


In this recipe, we'll make use of the contrib-stylus (0.18.0) plugin to compile Stylus style sheets that make use of one of the Stylus libraries provided by the developer community.

Tip

A partial list of the plugins available for the Stylus framework can be found at the following URL:

https://github.com/LearnBoost/stylus/wiki

For our example, we'll make use of the axis library that comes packaged with the Roots platform. It provides a host of useful functions, mixins, and other utilities that you'll be sure to make use of in your day-to-day style sheet development.

Getting ready

In this example, we'll work with the basic project structure that we created in the Compiling Stylus to CSS recipe of this chapter. Be sure to refer to it if you are not yet familiar with its contents.

How to do it...

The following steps will take us through altering our configuration in order to provide our style sheets with access to the axis library:

  1. First, we'll need to install the axis-css package...