grunt-init-gruntnautilus

A grunt-init template for grunt-nautilus projects.

npm install grunt-init-gruntnautilus
34 downloads in the last week
34 downloads in the last month

grunt-init-gruntnautilus

Creates a grunt-nautilus Gruntfile with grunt-init.

Installation

If you haven't already done so, install grunt-init.

Once grunt-init is installed, clone the grunt-init-gruntnautilus template into your ~/.grunt-init/ directory:

git clone https://github.com/kitajchuk/grunt-init-gruntnautilus.git ~/.grunt-init/gruntnautilus

If you already have grunt-init-gruntnautilus installed and need to update it, you can do the following:

cd ~/.grunt-init/gruntnautilus

git pull origin master

Usage

Run the following command from your project's root:

grunt-init gruntnautilus --project "Your Project Name"

You can optionally use a default template and skip the prompts. The following default templates are supported as of this version:

An example of using the caribou template:

grunt-init gruntnautilus:caribou --project "My Caribou Project"

If you are not using a default template, you will answer a series of prompts so grunt-nautilus can make magic happen:

  • What is the path to your public directory?
  • What is the path to your js directory?
  • What is the path to your css directory?
  • What is the path to your sass directory?
  • What is the path to your images directory?
  • What is the path to your fonts directory?

This creates the following files in the cwd:

  • Gruntfile.js
  • package.json
  • bower.json

Now you can install the necessary packages:

# Node modules
npm install

# Bower components
bower install

This will install grunt, grunt-nautilus and its peer packages as well as the default bower components.

Grunt Nautilus Plugin

Checkout the grunt-nautilus plugin to continue.

npm loves you