Questions tagged [grunt-cli]

Grunt CLI is a command line interface for Grunt JS.

Reference:

34 questions
0
votes
1 answer

Grunt reference error

Gruntfile.js module.exports = functions(grunt) { grunt.initConfig({ //pkg: grunt.file.readJSON('package.json'), concat: { options: { separator: ';', }, dist: { src: …
0
votes
2 answers

Grunt: Task "default" not found

I am trying to set up some simple Grunt tasks but upon running them I get a Warning in the terminal "Warning: Task "default" not found. I have simplified the gruntfile down to just one task, to reduce the chance this was caused by syntax errors but…
0
votes
2 answers

Delete empty folders with a clean or clean-empty task in Grunt.js

I am trying to create a Grunt task to clean out a directory of all files, subdirectories, and their files, etc. I can delete all the files, but the folders always stay. clean: { preview: ["live_preview>/**/*"], dist: ["dist/**/*"] …
Steve
  • 14,401
  • 35
  • 125
  • 230
0
votes
1 answer

do I need to install both grunt and grunt-cli

I have installed grunt-cli like this npm install -g grunt-cli. Then I copied gruntfile.js to my local project folder. I tried to run grunt command but got an error that locally installed grunt can't be found. I then installed grunt like this npm…
Max Koretskyi
  • 101,079
  • 60
  • 333
  • 488
1 2
3