Assuming that the Grunt CLI has been installed and that the project has already been configured with a package.jsonand a Gruntfile, it's very easy to start working with Grunt: Change to the project's root directory. Install project dependencies with npm install. Run Grunt with grunt.Using The CLI · Configuring Tasks · Installing Grunt · Sample Gruntfile
Mar 13, 2017Each time grunt is run, it looks for a locally installed Grunt using node’s require () system. and with this, you can run grunt from any subfolder in your project.
While installing grunt is simple, it's slightly more involved to get it running on your project. To see what your effort will win you, take a look at this example output from running Grunt in a sample project. grunt Running "jshint:gruntfile" (jshint) task >> 1 file lint free. Running "jshint:src" (jshint) task >> 1 file lint free.
Getting started with Grunt - derpturkey
Grunt is fantastic for automating linting tasks and enforcing coding standards by making it extremely easy to follow them! JSLint has many different options that can be configured. In order to get JSLint to run you can use the grunt-jslint npm package.