[wp-trac] [WordPress Trac] #29883: Split Gruntfile.js into multiple files

WordPress Trac noreply at wordpress.org
Tue Mar 24 16:48:14 UTC 2015


#29883: Split Gruntfile.js into multiple files
------------------------------+------------------------------
 Reporter:  jorbin            |       Owner:
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  Awaiting Review
Component:  Build/Test Tools  |     Version:
 Severity:  normal            |  Resolution:
 Keywords:  has-patch         |     Focuses:
------------------------------+------------------------------

Comment (by jorbin):

 I'm not a fan of the one file per task approach for a few reasons:

 1) It makes it harder for people to share configurations of tasks
 2) It can very quickly become an issue of having too many files. 15
 different files is a lot of places to need to look in order to find
 3) As we make changes to tasks (such as the switch from cssjanus to
 rtlcss), we delete files which makes it harder to do blames and find out
 why things changed.

 One more specific thing from this patch is that I don't like the idea of
 having our grunt configuration as a dependency.  When we split this, I
 think it should go into tools/grunt and should stay apart of our core
 repository.  Build tools are first class and moving them out of the core
 repository makes them more hidden and harder for people to patch.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/29883#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list