Questions tagged [gruntjs]

Grunt is a task-based command line build tool and task runner for JavaScript projects.

Grunt is a task-based command-line build tool and task runner for projects, that runs on Node.js and is installed via npm.

It runs on plugins that allow it to manipulate files, other languages, and systems, such as , , , , , and .

Some Useful Links

  1. Grunt GitHub Repo
  2. Grunt API
  3. Grunt Documentation
  4. Grunt Plugins

Related Tags for specific Grunt tools and plugins

9083 questions
53
votes
6 answers

Grunt dependencies conflicts in Bootstrap

I've downloaded Bootstrap source files from the official website and I'm getting dependency conflicts when installing the project using node's npm. I have grunt 0.4.3 installed on my machine but some bootstrap dependencies require 0.4.0 and some…
rpozarickij
  • 1,477
  • 3
  • 14
  • 27
53
votes
1 answer

How to ignore files grunt uglify

Background I've just started using grunt as of about 30mins ago. So bear with me. But I have a rather simple script going that will look at my js and then compress it all into one file for me. Code "use strict"; module.exports = function (grunt) { …
Jamie Hutber
  • 26,790
  • 46
  • 179
  • 291
52
votes
6 answers

How can I rename files with Grunt, based on the respective file's parent folder name?

I have a the following structure: src/ modules/ module1/ js/ main.js scss/ main.scss index.html module2/ js/ main.js …
keirog
  • 2,158
  • 1
  • 19
  • 17
51
votes
4 answers

How to use grunt-contrib-livereload?

I'm trying to use grunt-contrib-livereload, but can't seem to figure it out. The readme seems to skip over everything that I need explained, and then ends with an example that doesn't work when I try it and doesn't seem directly related to the…
davidtheclark
  • 4,666
  • 6
  • 32
  • 42
50
votes
11 answers

"No ESLint configuration found" error

Recently, we've upgraded to ESLint 3.0.0 and started to receive the following message running the grunt eslint task: > $ grunt eslint Running "eslint:files" (eslint) task Warning: No ESLint configuration found. Use --force to continue. Here is the…
alecxe
  • 462,703
  • 120
  • 1,088
  • 1,195
50
votes
5 answers

How can I run a grunt task from within a grunt task?

I've created a new grunt task and within it I want to use grunt-contrib-concat to concatenate a few files together. I looked through the docs but I don't find anything that hinted at being able to do this. It seems like a trivial use case, so I'm…
Arron S
  • 5,511
  • 7
  • 50
  • 57
49
votes
23 answers

WARNING: Tried to load angular more than once. Angular JS

I am trying to view my app after running Grunt Build. I use grunt serve:dist to see all production ready build but in the browser I get an infinite loop saying: WARNING: Tried to load angular more than once. I have read this occurs because the…
Vishal Sakaria
  • 1,367
  • 1
  • 17
  • 28
49
votes
3 answers

grunt Fatal error: Unable to find local grunt in Yeoman

I installed yeoman and started the examples which are provided in the official documentation. I went through the suggested operations yo webapp bower install underscore grunt After running grunt I have the message grunt-cli: The…
blackbird014
  • 2,069
  • 1
  • 18
  • 23
49
votes
2 answers

Grunt debugging from Webstorm

Its possible to run grunt tasks within WebStorm through external tools. However, is it possible to avail debugging with external tools? By running tasks like grunt server or grunt test within WebStorm, it would make debugging a lot easier if it's…
Kamal Reddy
  • 2,610
  • 5
  • 28
  • 36
48
votes
6 answers

'grunt' is not recognized as an internal or external command for some windows users

Grunt is not working for all Windows users. Some users are facing some issues, when I run npm install command; it prints a message as below. E:\Worksapce\web>npm install npm WARN package.json registers@4.0.0 No repository field. When I tried npm…
Patan
  • 17,073
  • 36
  • 124
  • 198
46
votes
4 answers

What are the differences between Grunt, Gulp.js and Bower? Why & when to use them?

What are the differences between Grunt, Gulp.js and Bower? Why & when and how to use them? I've seen nowadays, most of the front-end project using the above tools, though I am using them like in my recent project I am using gulp to build HTML, CSS…
Subodh Ghulaxe
  • 18,333
  • 14
  • 83
  • 102
46
votes
1 answer

<%= yeoman.app %> and <%=yeoman.dist %> variables for a gruntfile

I often see in some example gruntfiles the use of <%= yeoman.app %> and <%= yeoman.dist %> environment variables. I haven't used this myself but where do those variables get derived from? Also, is it possible to override those variables? Does one…
chrisjlee
  • 21,691
  • 27
  • 82
  • 112
46
votes
5 answers

Using grunt server, how can I redirect all requests to root url?

I am building my first Angular.js application and I'm using Yeoman. Yeoman uses Grunt to allow you to run a node.js connect server with the command 'grunt server'. I'm running my angular application in html5 mode. According to the angular docs,…
Charlie Martin
  • 8,208
  • 3
  • 35
  • 41
46
votes
2 answers

Programmatically pass arguments to grunt task?

I have a grunt task that calls other grunt tasks. I want to call a subtask with programmatically determined arguments. Is this possible? I spent some time digging around the lib/grunt.js and lib/grunt/task.js, but couldn't figure it out. I'm using…
Nick Heiner
  • 119,074
  • 188
  • 476
  • 699
45
votes
4 answers

Are you supposed to link to bower_components in production?

I'm relatively new to using Bower and I can't tell if you're supposed to link to bower_components in production. Should I be using a grunt task to link or copy over the files I need from bower_components into a separate directory? I'm asking this…
user499054