Make WordPress Core

Opened 7 years ago

Closed 7 years ago

#29068 closed enhancement (fixed)

Automatically reload the grunt watch task when changes are made to Gruntfile.js

Reported by: netweb Owned by: jorbin
Milestone: 4.1 Priority: normal
Severity: normal Version: 4.0
Component: Build/Test Tools Keywords: commit
Focuses: Cc:


By default, if Gruntfile.js is being watched, then changes to it will trigger the watch task to restart, and reload the Gruntfile.js changes https://github.com/gruntjs/grunt-contrib-watch#optionsreload

This is a convenient little developer helper for when making changes in Gruntfile.js and not having to manually restart the grunt watch task to test your changes.

Patch adds a config task to the watch task so that Gruntfile.js is watched.

Attachments (1)

29068.patch (357 bytes) - added by netweb 7 years ago.

Download all attachments as: .zip

Change History (4)

7 years ago

#1 @jorbin
7 years ago

  • Keywords commit added
  • Milestone changed from Awaiting Review to Future Release

This looks good and will make working on the Gruntfile easier.

Putting in Future Release to not clog the 4.0 report, but no reason this can't go in now.

#2 @markoheijnen
7 years ago

  • Milestone changed from Future Release to 4.1

#3 @jorbin
7 years ago

  • Owner set to jorbin
  • Resolution set to fixed
  • Status changed from new to closed

In 29795:

Watch Gruntfile.js so that changes to it reload the watch task

props netweb
fixes #29068

Note: See TracTickets for help on using tickets.