[wp-trac] [WordPress Trac] #49274: Grunt copy:files should ignore node_modules
WordPress Trac
noreply at wordpress.org
Mon Mar 8 17:12:34 UTC 2021
#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):
Thanks for testing!
My most common use case w/ Gutenberg is reproducing a potential bug on a
fresh WP install. Testing a PR against WP could be another common one.
IIRC, the reason running both tasks is sometimes needed, is because WP is
often served from the `build/` dir. So,
1. Dev changes a file in Gutenberg `src/wp-
content/plugins/gutenberg/packages`
1. Gutenberg's `dev` task builds the changes into Gutenberg's `build/`
folder
1. Core's `watch` task copies `src/wp-content/plugins` to `build/wp-
content/plugins`
1. Nginx serves Gutenberg from `build/wp-content/plugins/gutenberg/build`
If Core's task weren't also running, then it seems like refreshing would
get the older version of Gutenberg.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/49274#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list