[wp-trac] [WordPress Trac] #29883: Split Gruntfile.js into multiple files
WordPress Trac
noreply at wordpress.org
Tue Mar 24 08:24:27 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 GaryJ):
Replying to [comment:3 voldemortensen]:
> This patch takes all of the configurations and loads the into a
wpGruntfile module that can then be called in Gruntfile.js. This patch
considerable reduces the size of Gruntfile.js and breaks each task into
it's own file.
The `load-grunt-config` package does similar, but also supports JIT
loading of the configs required for that particular run i.e. no need to
load all configs when only doing one particular task. It also loads the
configs directly by filename, so no need to explicitly export each one.
I like the one-file-per-task approach, but I know that Jorbin has
previously said he's not.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29883#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list