If you haven't already done so, install grunt-init.
Once grunt-init is installed, clone the grunt-init-gruntnautilus template into your
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
This init template is installing with the latest release of grunt-nautilus. Run the following command from your project's root, replacing "Firefly" with your project name:
grunt-init gruntnautilus --project "Firefly"
You can optionally use a default template and skip the prompts. The following pre-baked templates exist for these frameworks:
An example of using the squarespace template:
grunt-init gruntnautilus:squarespace --project "Firefly"
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 current working directory:
Now you can install the necessary packages:
# Node modules npm install
This will install grunt, grunt-nautilus and its peer packages as well as jquery and hammerjs.
Grunt Nautilus Plugin
Checkout the grunt-nautilus plugin to continue.