mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-31 10:44:26 +00:00
Build/Test Tools: Remove the dependency on a globally installed Grunt.
The existing `"grunt": "grunt"` script in `package.json` allows for the use of `npm run grunt ...` which uses the local `grunt` binary in the project's `node_modules`. Fixes #47380 git-svn-id: https://develop.svn.wordpress.org/trunk@45445 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -446,7 +446,7 @@ function get_post_embed_html( $width, $height, $post = null ) {
|
||||
} else {
|
||||
/*
|
||||
* If you're looking at a src version of this file, you'll see an "include"
|
||||
* statement below. This is used by the `grunt build` process to directly
|
||||
* statement below. This is used by the `npm run build` process to directly
|
||||
* include a minified version of wp-embed.js, instead of using the
|
||||
* file_get_contents() method from above.
|
||||
*
|
||||
@@ -1008,7 +1008,7 @@ function print_embed_styles() {
|
||||
} else {
|
||||
/*
|
||||
* If you're looking at a src version of this file, you'll see an "include"
|
||||
* statement below. This is used by the `grunt build` process to directly
|
||||
* statement below. This is used by the `npm run build` process to directly
|
||||
* include a minified version of wp-oembed-embed.css, instead of using the
|
||||
* readfile() method from above.
|
||||
*
|
||||
@@ -1039,7 +1039,7 @@ function print_embed_scripts() {
|
||||
} else {
|
||||
/*
|
||||
* If you're looking at a src version of this file, you'll see an "include"
|
||||
* statement below. This is used by the `grunt build` process to directly
|
||||
* statement below. This is used by the `npm run build` process to directly
|
||||
* include a minified version of wp-embed-template.js, instead of using the
|
||||
* readfile() method from above.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user