I wonder if it's possible to run grunt 0.4.* without having installed grunt-cli.
I understand that grunt-cli looks for the version of grunt installed in node-modules in my project directory in order to run that version of grunt but...is it possible to run grunt without having grunt-cli installed? How?
Thanks in advance!
The grunt-cli is a very small amount of code. If I was you I would look through it in the GitHub repository. That way you will learn what it does, and it's very easy to do the same.
I have had luck with running it with no grunt-cli. You can do it with the following command:
node -e "require('grunt').cli()"
If you want to specify tasks you can do it like this:
node -e "var g = require('grunt'); g.cli.tasks = ['default']; g.cli()"
try
node -e "require('grunt').cli();"
if you're on a mac / unix
You can try from some other script:
var grunt = require('grunt');
grunt.cli();
That will look for the grunt package and execute the Gruntfile.js.