[wp-meta] [Making WordPress.org] #4173: Gruntfile in wporg-plugins theme refers to script removed from wp-api package

Making WordPress.org noreply at wordpress.org
Thu Feb 14 00:06:23 UTC 2019


#4173: Gruntfile in wporg-plugins theme refers to script removed from wp-api
package
-----------------------+--------------------
 Reporter:  diddledan  |      Owner:  (none)
     Type:  defect     |     Status:  new
 Priority:  normal     |  Milestone:
Component:  General    |   Keywords:
-----------------------+--------------------
 The Gruntfile.js in the wporg-plugins theme has this block:

 {{{
                 shell: {
                         build: {
                                 command: './node_modules/wpapi/lib/data
 /update-default-routes-json.js --endpoint=https://wordpress.org/plugins
 /wp-json --output=./client'
                         }
                 },
 }}}

 The file it references, `update-default-routes-json.js`, is not in the
 distribution of `wp-api` on NPM since version 1.2.0. The definition in the
 `package.json` is to pull versions matching `^1.0.0` which means that
 1.2.0 will be pulled in new or cleaned setups of the meta-environment.
 When the newer version is installed via npm, such as will occur for anyone
 setting up a new meta-environment system, the wporg-plugins theme build
 process will fail.

 The removal/move of the script in wp-api was in [https://github.com/WP-API
 /node-wpapi/commit/6a18245fbb944afbe79a69b41ff2d58c2f161fa3#diff-
 fc3bc611b99401c7fdab4c64a42b24b9 this commit].

-- 
Ticket URL: <https://meta.trac.wordpress.org/ticket/4173>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org


More information about the wp-meta mailing list