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:
John Blackbourn
2019-05-26 19:34:24 +00:00
parent 68f7c2d7a5
commit 814aa7149f
8 changed files with 21 additions and 21 deletions

View File

@@ -34,24 +34,23 @@ $die = __( 'You are running WordPress without JavaScript and CSS files. These ne
$die .= '<p>' . sprintf(
/* translators: %s: npm install */
__( 'Before running any grunt tasks you need to make sure the dependencies are installed. You can install these by running %s.' ),
__( 'Before running any build tasks you need to make sure the dependencies are installed. You can install these by running %s.' ),
'<code style="color: green;">npm install</code>'
) . '</p>';
$die .= '<ul>';
$die .= '<li>' . __( 'To build WordPress while developing, run:' ) . '<br /><br />';
$die .= '<code style="color: green;">grunt build --dev</code></li>';
$die .= '<code style="color: green;">npm run dev</code></li>';
$die .= '<li>' . __( 'To build files automatically when changing the source files, run:' ) . '<br /><br />';
$die .= '<code style="color: green;">grunt watch</code></li>';
$die .= '<code style="color: green;">npm run watch</code></li>';
$die .= '<li>' . __( 'To create a production build of WordPress, run:' ) . '<br /><br />';
$die .= '<code style="color: green;">grunt build</code></li>';
$die .= '<code style="color: green;">npm run build</code></li>';
$die .= '</ul>';
$die .= '<p>' . sprintf(
/* translators: 1: NPM URL, 2: Grunt URL, 3: Handbook URL */
__( 'This requires <a href="%1$s">NPM</a> and <a href="%2$s">Grunt</a>. <a href="%3$s">Read more about setting up your local development environment</a>.' ),
/* translators: 1: NPM URL, 2: Handbook URL */
__( 'This requires <a href="%1$s">NPM</a>. <a href="%2$s">Read more about setting up your local development environment</a>.' ),
'https://www.npmjs.com/get-npm',
'https://gruntjs.com/getting-started',
__( 'https://make.wordpress.org/core/handbook/tutorials/installing-wordpress-locally/' )
) . '</p>';