[wp-trac] [WordPress Trac] #49274: Grunt copy:files should ignore node_modules
WordPress Trac
noreply at wordpress.org
Thu Sep 17 17:06:38 UTC 2020
#49274: Grunt copy:files should ignore node_modules
------------------------------+------------------------------
Reporter: iandunn | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Build/Test Tools | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
------------------------------+------------------------------
Comment (by iandunn):
So far, the only problem I've run into with symlinking `wp-content` is
that these files are sometimes deleted during `build` and `watch` tasks:
{{{
src/wp-content/index.php
src/wp-content/plugins/hello.php
src/wp-content/plugins/index.php
src/wp-content/themes/*
}}}
One potential solution would be to adjust `Gruntfile.js` to avoid that,
but I haven't dug into that, and any unintended consequences it'd have.
For now I'm just symlinking everything inside `wp-content` ''except''
those files. It seems to work fine at first glance, but I'll keep working
with it for a few days.
Related: #44492, where symlinking was tried for most of the `src/` folder,
but that didn't work out because of problems with Windows support.
cc @netweb, @omarreiss, @SergeyBiryukov
--
Ticket URL: <https://core.trac.wordpress.org/ticket/49274#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list