It is a plugin for gruntjs. It runs predefined tasks whenever watched file patterns are added, changed or deleted.
Questions tagged [grunt-contrib-watch]
435 questions
0
votes
1 answer
A single Grunt task to run a shell command and watch task?
Given this Gruntfile.coffee, I'd like to keep the shell:server task running and outputting to the shell while watch checks for changes to front-end assets and reports to the shell when it runs my :compile tasks.
All from the same grunt command to…

tbeseda
- 1,838
- 3
- 16
- 25
0
votes
2 answers
Grunt watch doesn't work during grunt server task
I am using Grunt with a grunt server task that performs a watch task. Unfortunately, after saving a less or coffee file, the "default" task that should be triggered by the watch taks doesn't get triggered and so the browser doesn't livereload.
I was…

christophe
- 692
- 4
- 14
- 27
0
votes
0 answers
Grunt.js/Grunt-contrib-watch packaged with Yeoman does not work
I recently installed Yeoman and am finding that the included livereload feature (provided by grunt-watch-contrib) does not work. In fact, nothing short of restarting the Node server altogether actually allows me to see my SCSS changes in the…

Michael P.
- 1,373
- 3
- 12
- 33
0
votes
1 answer
Compass watch with Grunt
I'd like to create a task to watch all my scss files. And I used "grunt-contrib-watch" and "grunt-contrib-sass" but it doesn't work.
My files and my directories : http://glui.me/?i=pz7vmwu9cfgbzt3/2013-11-28_at_12.46_2x.png/
My error…

tonymx227
- 5,293
- 16
- 48
- 91
0
votes
1 answer
How can I setup in-browser tests using grunt?
I am a newbie to grunt. I am using the a version of yeoman webapp generator (which I would like to fork when I get this right). It seems to serve website and run mocha tests correctly, but having trouble with livereload.
What I would like to do is…

shaunc
- 5,317
- 4
- 43
- 58
0
votes
0 answers
grunt-contrib-less creates the app.css file during launch but not during live reload
Basically, at the beginning all is ok but after modifications, CSS are not updated.
First, my package details:
"node" : "0.10.21"
[...]
"grunt": "~0.4.1",
"grunt-contrib-uglify": "~0.2.7",
"grunt-contrib-jshint": "~0.7.1",
"grunt-contrib-concat":…

PRASS
- 315
- 3
- 7
0
votes
1 answer
Grunt - livereload only uglified script.js?
GruntJS newbie here. I currently have my gruntfile.js using the watch task to look for changes to any .js files in my js/components/ folder and uglify those scripts into a single script.js file.
The issue that I'm having is that these changes cause…

Delon
- 255
- 3
- 21
0
votes
3 answers
Grunt - running php and watch SCSS/CSS
I'm trying to use Grunt view run a php web server with the SCSS/CSS changes being watched and recompiled as they're changed and live reloaded into the web server. At the moment it is running up the web service and showing the requests, however when…

Adam Johnson
- 43
- 1
- 5
0
votes
1 answer
Grunt globbing pattern not working as expected within grunt-contrib-watch
In grunt-contrib-watch I want to watch for changes in both <%%= yeoman.app %>/*.html and changes to any HTML file one folder deeper.
Therefore, my watch task looks like this:
watch: {
html: {
files: ['<%%= yeoman.app %>/{,*/}*.html'],
…

Fisu
- 3,294
- 9
- 39
- 61
0
votes
1 answer
Listening to PHP files using Grunt.js
I'm still a Grunt newbie and I'm having difficulties "watching" for php files.
What happens is that the livereload works perfectly fine for any php file but any task I want to launch in regard to changes on php files simply doesn't happen... In this…

LIMsomnium
- 127
- 1
- 3
- 12
0
votes
1 answer
Watcher does not work in Grunt
Hello I am trying to set up a watcher with grunt but all I get is this in the console.
$ grunt watchTest
Running "watch" task
Waiting...$
So the there is no actual waiting. I have tried the jasmine task and it works as expected. What I have I…

pethel
- 5,397
- 12
- 55
- 86
0
votes
2 answers
Keep a task grunt task open
I have a grunt task that kicks off a socket-io server among other things.
I have found a way of keeping the task 'open' (ie, not exiting straight away on the command line) by running the 'watch' task right after it. e.g
grunt.registerTask('default',…

shane
- 852
- 1
- 8
- 16
0
votes
1 answer
Gruntjs - watch for changes in a large amount of subdirectories and files
I just started using grunt.js recently and I wanted to know if it is possible to watch for changes in large folder structures?
it works fine for me in small project folder structures but when trying to watch a whole system like magento or wordpress…

Jake
- 1,380
- 3
- 14
- 27
-1
votes
1 answer
Grunt watch doesn't run
I've been having trouble figuring out how to run grunt-contrib-watch. Running grunt watch as specified only results in:
Running "watch" task
Waiting...
Then I'm back at my command prompt again, with no watch process blocking the input, or showing…

avramov
- 2,119
- 2
- 18
- 41
-2
votes
1 answer
GruntJS does not watch all folders in project
Why doesn't the GruntJS watch for the css/ folder?
But it successfully watches for /js folder.
Manual start function by default or any separate function using grunt-cli command grunt or grunt cssmin works correctly too...
My GruntJS code…

north.inhale
- 483
- 2
- 9
- 20