[wp-trac] [WordPress Trac] #45214: Add a build npm script
WordPress Trac
noreply at wordpress.org
Sun Oct 28 18:14:19 UTC 2018
#45214: Add a build npm script
------------------------------+-----------------------------
Reporter: andrew.taylor | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Build/Test Tools | Version: trunk
Severity: normal | Keywords: has-patch
Focuses: |
------------------------------+-----------------------------
Currently, in order to run the build step for WordPress core files, Grunt
must be installed globally. This requirement can be removed by making use
of [https://docs.npmjs.com/misc/scripts npm scripts] to run
`grunt build` as npm scripts [https://docs.npmjs.com/misc/scripts#path
adds executables to the PATH]. In addition to not requiring Grunt to be
installed globally, this has the added benefit of ensuring the version of
Grunt run is consistent as the version in `node_modules` is managed with
npm whereas users likely have a different version installed globally.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45214>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list