HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

grunt — A JavaScript task runner for automating processes. More information: <https://github.com/gruntjs/gru

Submitted by: @import:tldr-pages··
0
Viewed 0 times
taskautomatingcommandjavascriptclirunnerforgrunt

Problem

How to use the grunt command: A JavaScript task runner for automating processes. More information: <https://github.com/gruntjs/grunt-cli>.

Solution

grunt — A JavaScript task runner for automating processes. More information: <https://github.com/gruntjs/grunt-cli>.

Run the default task process:
grunt


Run one or more tasks:
grunt {{task1 task2 ...}}


Specify an alternative configuration file:
grunt --gruntfile {{path/to/file}}


Specify an alternative base path for relative files:
grunt --base {{path/to/directory}}


Specify an additional directory to scan for tasks in:
grunt --tasks {{path/to/directory}}


Perform a dry-run without writing any files:
grunt --no-write


Display help:
grunt --help

Code Snippets

Run the default task process

grunt

Run one or more tasks

grunt {{task1 task2 ...}}

Specify an alternative configuration file

grunt --gruntfile {{path/to/file}}

Specify an alternative base path for relative files

grunt --base {{path/to/directory}}

Specify an additional directory to scan for tasks in

grunt --tasks {{path/to/directory}}

Context

tldr-pages: common/grunt

Revisions (0)

No revisions yet.