May 25, 2021 Grunt
Perform
sudo npm install -g grunt-cli
grunt
command-line interface provides a range of options.
You can use
grunt -h
to view this option.
Show help information.
Specify a base path.
By default, all file paths are
Gruntfile
You can
grunt.file.setBase(...)
Disable color output.
Specify
Gruntfile
file.
By default, grunt looks for the most recent Gruntfile file or
Gruntfile.js
the current
Gruntfile.coffee
Enable debug mode for tasks that support debugging.
Print stack trace information when exiting due to a warning or fatal error.
A way to force a skip of warning messages.
If you get a prompt from a warning, don't use this option and you can fix the code based on the prompt information.
Specify a directory that contains loadable tasks and "extra" files.
You can
grunt.loadTasks(...)
Check for any additional files that can be loaded in plug-ins installed through npm.
You can
grunt.loadNpmTasks(...)
Disable write-to-file operations, which can be used for demonstrations.
Long mode (Verbose mode). A lot of information is output.
Print the grunt version. Use with --verbose for more information.
Output shell auto-complement rules. For more information, refer to the grunt-cli-related documentation.