Questions tagged [grunt-contrib-watch]

It is a plugin for gruntjs. It runs predefined tasks whenever watched file patterns are added, changed or deleted.

435 questions
90
votes
6 answers

grunt throw "Recursive process.nextTick detected"

I'm running Lion 10.9.2 with nodejs v0.10.26 I want to setup an automated compilation on sass files and a live reload with grunt, nothing complicated but... When running grunt watch I get the following error (node) warning: Recursive…
denisjacquemin
  • 7,414
  • 10
  • 55
  • 72
59
votes
9 answers

How to run two grunt watch tasks simultaneously

Is it possible to run two watch tasks simultaneously? I understand that I can have any number of tasks I want inside watch settings and just launch grunt watch and it will watch all of them, like this ... watch: { A: { files:…
Vitalii Korsakov
  • 45,737
  • 20
  • 72
  • 90
26
votes
3 answers

grunt watch & connect

I am kinda new to grunt and want to use it with Jekyll and some LESS-compiling. My problem now is, I already have fully functioning LESS-comipiling with live reload and watch task and can build my jekyll site through grunt, but how do I run…
Kageetai
  • 1,268
  • 3
  • 12
  • 26
18
votes
2 answers

Error: Cannot find module 'connect-livereload'

I was following the steps provided as on the web http://yeoman.io/. After doing with all the steps, i am facing this error message `$ grunt Loading "Gruntfile.js" tasks...ERROR Error: Cannot find module 'connect-livereload' Warning: Task…
Thillai Narayanan
  • 4,766
  • 5
  • 32
  • 39
15
votes
2 answers

How to ignore one file in a grunt-watch task?

'use strict'; module.exports = function(grunt) { // Project Configuration grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), watch: { jade: { files: ['app/views/**'], …
Shamoon
  • 41,293
  • 91
  • 306
  • 570
14
votes
1 answer

Deep, one-way synchronization of two directories using grunt-contrib-watch. Code works, but grunt-contrib-watch re-init time is too slow

I have two directories src and compiled. I would like to ensure one-way data synchronization from src to compiled with Grunt Watch. As an intermediary step, I would like to compile *.less files as well as a subset of *.js files which are written…
Sean Anderson
  • 27,963
  • 30
  • 126
  • 237
13
votes
3 answers

Grunt watch not running less after error correction

I've got an issue with Grunt Watch currently not re-running tasks after compilation error correction. I get the error message, but then after correcting the error, grunt says the file has been changed, but no tasks are run after that point. Grunt…
Matt Cavanagh
  • 518
  • 5
  • 19
13
votes
5 answers

Grunt message: Fatal error: Port 35729 is already in use by another process

Grunt was working. But after moving my site's files up one directory, to sit at root, grunt stopped working: Fatal error: Port 35729 is already in use by another process. Would the path matter in this case? Looking at port 35729, I found that Grunt…
Mark Salvatore
  • 628
  • 1
  • 7
  • 13
13
votes
3 answers

Grunt.js, Warning: Unable to write "src" file (Error code: EISDIR)

I have an Gruntfile written in CoffeeScript and I keep getting an (Error code: EISDIR) when the cssmin task is run. After running the task in verbose mode, I get this information: Running "cssmin" task Running "cssmin:src" (cssmin) task Verifying…
agconti
  • 17,780
  • 15
  • 80
  • 114
13
votes
3 answers

Grunt watch warning: EPERM, operation not permitted

I have a very annoying problem with gruntjs and grunt-contrib-watch plugin. After some time, I can not define, it may be half an hour or two hours of work (it's random) the console spits out this error: Running "watch" task Waiting...Warning: EPERM,…
Indy
  • 4,838
  • 7
  • 24
  • 35
12
votes
1 answer

Grunt watch detects file changes only after 5 seconds with Vagrant and NFS

Grunt watch (grunt-contrib-watch) is used to trigger reload of web app in browser. However, it is slow to notice file changes when running in a Vagrant virtual machine using NFS for synced folders. Changing a file triggers a reload only after about…
Markus Miller
  • 3,695
  • 2
  • 29
  • 33
12
votes
3 answers

Can the gruntjs watch be restarted on grunt.js file change

Can the grunt watch be restarted when ever there is a change in grunt.js file use case: I am right now in the process of building my grunt process and keep changing the grunt.js file and I have to restart the grunt.js to see if it works.
user3140435
  • 147
  • 1
  • 7
11
votes
4 answers

Watch, recompile, and restart

I have been looking all over for an example of a way to use Grunt's watch module to perform a few steps in order when a file change occurs. I haven't found a good example of any of this, so if someone could point me in the right direction that would…
jocull
  • 20,008
  • 22
  • 105
  • 149
11
votes
3 answers

When I run Grunt, I receive the following message: Local npm module "grunt-contrib-copy" not found. Is it installed?

I have been trying to install Grunt. When I run grunt I receive the following list of messages and warnings: Local Npm module "grunt-contrib-copy" not found. Is it installed? Local Npm module "grunt-contrib-uglify" not found. Is it…
10
votes
5 answers

Troubles with NPM and node-gyp in Windows

I have some troubles with npm packages on my Windows workstation... I have a set of NPM dependencies in my package.json file: "devDependencies": { "babel-plugin-transform-react-jsx": "^6.2.0", "babel-preset-es2015": "^6.1.18", …
Dmytro Medvid
  • 4,988
  • 3
  • 25
  • 29
1
2 3
28 29