[wp-trac] [WordPress Trac] #43731: Use Webpack + NPM scripts to build all the things

WordPress Trac noreply at wordpress.org
Tue Apr 10 17:05:09 UTC 2018


#43731: Use Webpack + NPM scripts to build all the things
------------------------------+------------------------------
 Reporter:  omarreiss         |       Owner:
     Type:  task (blessed)    |      Status:  new
 Priority:  normal            |   Milestone:  Awaiting Review
Component:  Build/Test Tools  |     Version:  trunk
 Severity:  normal            |  Resolution:
 Keywords:                    |     Focuses:
------------------------------+------------------------------

Comment (by youknowriad):

 So I started looking at this today, and the Gruntfile.js looks way too
 complex to move to WebPack on one step. I propose we do iteratively: move
 task my task to npm scripts while keeping Grunt as the task manager, and
 at some point, it will become obvious that we can just remove it.

 I know we're also planning to move to ESlint instead of JSHint and this
 would also be easier if the JSHint setup was a separate npm script. So in
 this first patch I'm proposing to move the JSHint script to an npm script,
 still call it in the gruntfile to keep the toolchain as is (precommit).

 I don't have a strong confidence in Trac and the workflow around the
 patches and stuff. Let me know if I'm doing something wrong.

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


More information about the wp-trac mailing list