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
0
votes
1 answer

How to use grunt-forever and grunt-watch together

I have both files: app.js which starts the http server, and main.js which is compiled by browserify and used in html as So I have a Grunt configured with forever, browserify and watch. I want that on app.js chance, the http must be restarted (via…
alexserver
  • 1,348
  • 3
  • 15
  • 30
0
votes
0 answers

grunt server error in npm even after grunt install successful

I need to run the grunt server command.. but the problem is i am getting the error.. i even installed grunt by using this command npm install grunt and it was successful but i am still getting the error..when i do *grunt serve*r.. can you tell me…
user3413185
0
votes
1 answer

Do Grunt options need to be set when the task is initiated, or can I modify options at runtime?

I've been trying to find the best way to set global options for all of my grunt tasks from within a grunt task, but haven't had much luck getting things to work. I'm wondering whether the tasks get compiled in some way, so that they're stuck with…
nwalton
  • 2,033
  • 21
  • 22
0
votes
1 answer

Grunt php livereload not work

i've a grunt script that run a php server, i've configured grunt to watch php files and livereload them. When i change a php file (and other kind of file inside my project) grunt log: File "application/views/welcome_message.php" changed. Completed…
Matteo Codogno
  • 1,569
  • 6
  • 21
  • 36
0
votes
1 answer

How to specify which child taks to run on watch grunt config

I have the following watch configuration that reloads the page and run others tasks. watch: { js: { files: ['gruntfile.js', 'server.js', 'app/**/*.js', 'public/js/**', 'test/**/*.js'], tasks: ['jshint'], …
Danillo Corvalan
  • 703
  • 1
  • 10
  • 19
0
votes
1 answer

Grunt Exiting When It Should Be Watching

I am developing a node app that interacts with IRC. My Gruntfile.js: module.exports = function(grunt) { grunt.initConfig({ watch: { js: { files: [ 'index.js', 'brains.js', 'lib/*.js' ], …
DigiLord
  • 1,014
  • 1
  • 10
  • 17
0
votes
1 answer

Custom grunt plugin not playing nice with grunt-watch

I'm developing a custom grunt extension that reloads a chrome tab. It works fine when I use it within the plugin's own folder, but then when I try to download it from NPM and use it in another project, it goes bonkers. I included it as…
freedomflyer
  • 2,431
  • 3
  • 26
  • 38
0
votes
2 answers

Running grunt-nodemon once after simultaneous file changes

This is my Gruntfile. I run concurrently nodemon to run my application and watch to watch for changes in my coffeescript. Coffeescript takes the src files and turns them into JS files (Currently 3, main.coffee, Person.coffee and Car.coffee) I want…
0
votes
1 answer

bus error:10 on grunt contrib-watch when updating scss files

grunt watch runs and successfully updates js updates, but not scss. I have to wait about a minute for the changes to get picked up. I am running node v0.10.18 Running "watch" task Waiting...OK File "app/styles/styles.scss" changed. Bus error:…
0
votes
1 answer

connecting grunt-contrib-sass to yeoman and grunt-contrib-watch

Very similar to this question. I've installed the node lib and have it in my package.json: "devDependencies": { ... "grunt-contrib-sass": "~0.6.0" } and have a block in my Gruntfile.js: grunt.initConfig({ ... sass: { dist: { …
pizza247
  • 3,869
  • 7
  • 33
  • 47
0
votes
1 answer

Config Gruntfile.js for livereload

I'm using Laravel as my back-end framework, I would like to have live reloading when some file's modification occurs. I still don't successfully configure the Gruntfile.js to make it works. I think, I should need 2 plugins, grunt-contrib-watch and…
Artisan
  • 4,042
  • 13
  • 37
  • 61
0
votes
2 answers

Live reload browser page. Grunt and Vagrant

sorry for the mistakes I've made, I'm not Englishman. So.. First, I have Vagrant machine which is my web server with installed Yii, Ngnix, PHP etc. The vm is configured as follows: private_network, 192.168.10.10 forwarded_port, guest: 80, host:…
Timur Fayzrakhmanov
  • 17,967
  • 20
  • 64
  • 95
0
votes
1 answer

grunt livereload and watch with php, without yeoman

I can no more, many hours on trying, but nothing. the problem comes with LiveReload, I do not reload the changes to the browser. I can say that if it works the compiled js and css but not the livereload. I put my gruntfile.js here, see if you can…
JCC
  • 23
  • 5
0
votes
2 answers

Grunt-contrib-watch targets and recursion

I'm trying to figure out a way to break out a watch target from the rest of the block. Currently my watch target looks like this: watch: { options: { // Parent-level options }, coffee: { // ... }, stylus: { // ... }, test:…
richgilbank
  • 384
  • 2
  • 9
0
votes
2 answers

Prevent `grunt-watch` from looping when there is a syntax error in less files?

I'm using grunt-watch to re-build my less style sheets: watch: { less: { files: ['media/less/**/*.less'], tasks: ['less'], options: { atBegin: true, spawn: false …
David Wolever
  • 148,955
  • 89
  • 346
  • 502
1 2 3
28
29