#38423 closed enhancement (fixed)
Alllow builds to be minimal
Reported by: | jorbin | Owned by: | jorbin |
---|---|---|---|
Milestone: | 4.7 | Priority: | normal |
Severity: | normal | Version: | 3.7 |
Component: | Build/Test Tools | Keywords: | has-patch |
Focuses: | Cc: |
Description
Right now, if you do grunt build
it is going to copy everything including every plugin and every theme. This can cause things to slow down, especially if you have something with it's own node_modules
folder. There should be a simpler way.
Attachments (1)
Change History (7)
#3
@
8 years ago
- Owner set to jorbin
- Resolution set to fixed
- Status changed from new to closed
In 38848:
#4
follow-up:
↓ 5
@
8 years ago
@jorbin Should the functionality of the --minimal-copy
flag be used by default, and introduce a --full-copy
flag for a full copy?
#5
in reply to:
↑ 4
@
8 years ago
Replying to johnbillion:
@jorbin Should the functionality of the
--minimal-copy
flag be used by default, and introduce a--full-copy
flag for a full copy?
As the primary purpose of WordPress' Grunt file is to build https://build.svn.wordpress.org/
from https://develop.svn.wordpress.org/
via grunt build
I don't think changing this default functionality should occur in this ticket.
There are quite possible enhancements that could be made to the Grunt tasks to aid developers and committers to speed up some of the current tasks and default task, though as make.w.org/systems would need to be involved in any changes to the current default task some planning and lead time for make/systems would be beneficial and a new ticket be created to discuss this further.
@davidakennedy inspired this by noting that it was taking a long time for him to run run
grunt test
and seemed to be hanging onRunning "copy:files" (copy) task
.This patch allows you to pass in
--minimal-copy
to any task that uses the copy task (such as build, test, and copy) and it excludes all plugins and all of the themes except for the twenty* series of default themes.