[wp-trac] [WordPress Trac] #49635: Build tools: Remove generated and package sourced files from committed code.

WordPress Trac noreply at wordpress.org
Thu Mar 12 20:13:05 UTC 2020


#49635: Build tools: Remove generated and package sourced files from committed
code.
------------------------------+-----------------------------
 Reporter:  peterwilsoncc     |      Owner:  (none)
     Type:  enhancement       |     Status:  new
 Priority:  normal            |  Milestone:  Awaiting Review
Component:  Build/Test Tools  |    Version:
 Severity:  normal            |   Keywords:
  Focuses:                    |
------------------------------+-----------------------------
 Currently several PHP files either auto-generated or copied during the
 build process are committed in to the repositories `src` directory, this
 includes:

 * `src/wp-includes/assets/script-loader-packages.php`
 * `wp-includes/blocks/*.php`

 As including built files can lead to errors during the commit process, it
 would be dandy if these files could be removed from the repository and
 added to the list of ignored files.

 A consideration is if this can be and needs to be done in such a way to
 avoid requiring JavaScript and CSS be built in order to run the PHP unit
 tests. I'm sure there are other complexities too.

 Related #48154

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/49635>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list