[wp-trac] [WordPress Trac] #49196: Copy block metadata files for dynamic blocks
WordPress Trac
noreply at wordpress.org
Fri Jan 24 01:40:58 UTC 2020
#49196: Copy block metadata files for dynamic blocks
-------------------------------------------------+-------------------------
Reporter: chipsnyder | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: 5.4
Component: Build/Test Tools | Version:
Severity: normal | Resolution:
Keywords: has-patch 2nd-opinion needs-testing | Focuses: javascript
-------------------------------------------------+-------------------------
Comment (by azaozz):
Replying to [comment:14 gziolo]:
> I wasn't aware that the file location might be treated as a contract. If
this is the case then we can consider keeping the current names and handle
the rest differently.
Yeah, for better or for worse pretty much all files in WP are not "source"
files, they are "production" files. "Architectural changes" like moving
and/or renaming them is usually not a good idea :)
That's the reason why all the old js is moved back to the previous places
when building, from `/scr/js` to `/build/wp-admin/js` and `/build/wp-
includes/js`
> Another option would be to proxy old locations to the new one.
Yes, that's possible. Would probably require to keep the existing files
but then delete all the code there and just add `include [path to the
moved/renamed file]`. However thinking this is a "last resort" solution
for when a file has to be moved and there's absolutely no other way to do
it.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/49196#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list