[wp-trac] [WordPress Trac] #44492: Add new build:dev task which symlinks all files that can be symlinked

WordPress Trac noreply at wordpress.org
Tue Jul 3 13:38:37 UTC 2018


#44492: Add new build:dev task which symlinks all files that can be symlinked
------------------------------+---------------------
 Reporter:  omarreiss         |       Owner:  (none)
     Type:  enhancement       |      Status:  new
 Priority:  normal            |   Milestone:  5.0
Component:  Build/Test Tools  |     Version:
 Severity:  normal            |  Resolution:
 Keywords:  needs-testing     |     Focuses:
------------------------------+---------------------

Comment (by netweb):

 Replying to [comment:7 omarreiss]:
 > >This is more than likely going to be an issue for the majority of
 Windows users, I expect it will be particularly troublesome if users are
 using the PowerShell terminal over cmd.exe also.
 > @netweb I've made it so that it gracefully falls back to copying files
 when that happens. When symlinking causes errors, I also output the
 following warning:
 > {{{Error: failed to create a symlink on your system. Will use copy
 instead.}}}

 Great 💯

 > When running grunt with `--verbose` it will also output the exact error
 message.
 >
 > I think this should be relatively safe to commit, also since the
 `build:dev` task is an addition to what is already there and doesn't
 really alter anything else.

 I'd still like to see some feedback from core committers that use Windows
 before this is committed please.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/44492#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list