[buddypress-trac] [BuddyPress Trac] #6382: Add dynamic Grunt Watch task

buddypress-trac noreply at wordpress.org
Sat Oct 10 14:33:42 UTC 2015


#6382: Add dynamic Grunt Watch task
--------------------------------------------------------+------------------
 Reporter:  netweb                                      |       Owner:
     Type:  enhancement                                 |      Status:  new
 Priority:  normal                                      |   Milestone:  2.4
Component:  Tools - Build Process                       |     Version:
 Severity:  normal                                      |  Resolution:
 Keywords:  needs-testing has-patch dev-feedback early  |
--------------------------------------------------------+------------------

Comment (by DJPaul):

 Goal:
 Run equivalent tasks from `grunt commit` for each of the watch categories
 when a file changes.

 Problems:

 * When `watch js`, making an invalid change to buddypress.js (removing a
 semi-colon, etc), is not caught. For jsvalidate and jshint, it says "0
 files are valid" which I take to mean it has checked 0 files, because the
 output is not a warning.
 * `grunt watch` gets caught in some kind of runaway loop.
 * `grunt watch:all` copies the intention from WordPress, which is to copy
 those files into the build folder. BP doesn't want that.
 * `grunt watch:styles` needs to run on all changed SASS in the bp-legacy
 (but not .CSS), and needs to run on .CSS everywhere else. It also needs
 all the tasks added to it: scsslint, sass, cssjanus.  (same as from the
 `src` task)
 * This is a proper PITA to work on.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6382#comment:9>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list