# Grunt

## **Installing Grunt**

To install grunt first you must have [NodeJs installed](http://nodejs.org/download/), NodeJS will have npm (node packaged modules) \
Run the following commands

* Install `grunt-cli` globally by running the following command `npm install -g grunt-cli`
* In you downloaded package from themeforest, navigate to `grunt/` directory and copy both `package.json` `gruntfile.js` to your project root. e.g : `getting_started` folder
* Navigate to the root directory of your project, then run `npm install`.

Once you have successfully setup now you can use pages Grunt CLI commands to automate your task

## **Commands**

**Grunt Build**

This will automatically minify your assets resources like css and js into a folder called `dist`

**Grunt Watch**

This will automatically compile the pages Less files on save

**Grunt Less**

This will compile the pages Less files on execute once<br>

Your are free to customize the Grunt task to your need by editing the gruntfile.js in the root directory of `getting_started`

## **Troubleshooting**

Should you encounter problems with installing dependencies or running Grunt commands, first delete the `/node_modules/`directory generated by npm. Then, rerun `npm install`.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.pages.revox.io/other/working-with-grunt.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
