O'Reilly logo

CoffeeScript Application Development Cookbook by Mike Hatfield

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Preparing deployments for staging and production

In the previous section, we created and configured a Grunt file to compile our source files. In this section, we will look at extending our Grunt file to include options to prepare files for deployments to staging and production environments.

Getting ready

In this section, we will use a few Grunt NPM packages to help us prepare our deployments, including the following:

  • grunt-contrib-clean: This removes files and directories
  • grunt-contrib-copy: - This copies files and directories
  • grunt-text-replace: This replaces text found within files

Install these NPM modules with the following commands:

> npm install grunt-contrib-clean --save-dev
> npm install grunt-contrib-copy --save-dev
> npm install grunt-text-replace ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required