Make WordPress Core

Changeset 45445 for trunk/src/index.php


Ignore:
Timestamp:
05/26/2019 07:34:24 PM (5 years ago)
Author:
johnbillion
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/index.php

    r45190 r45445  
    3535$die .= '<p>' . sprintf(
    3636    /* translators: %s: npm install */
    37     __( 'Before running any grunt tasks you need to make sure the dependencies are installed. You can install these by running %s.' ),
     37    __( 'Before running any build tasks you need to make sure the dependencies are installed. You can install these by running %s.' ),
    3838    '<code style="color: green;">npm install</code>'
    3939) . '</p>';
     
    4141$die .= '<ul>';
    4242$die .= '<li>' . __( 'To build WordPress while developing, run:' ) . '<br /><br />';
    43 $die .= '<code style="color: green;">grunt build --dev</code></li>';
     43$die .= '<code style="color: green;">npm run dev</code></li>';
    4444$die .= '<li>' . __( 'To build files automatically when changing the source files, run:' ) . '<br /><br />';
    45 $die .= '<code style="color: green;">grunt watch</code></li>';
     45$die .= '<code style="color: green;">npm run watch</code></li>';
    4646$die .= '<li>' . __( 'To create a production build of WordPress, run:' ) . '<br /><br />';
    47 $die .= '<code style="color: green;">grunt build</code></li>';
     47$die .= '<code style="color: green;">npm run build</code></li>';
    4848$die .= '</ul>';
    4949
    5050$die .= '<p>' . sprintf(
    51     /* translators: 1: NPM URL, 2: Grunt URL, 3: Handbook URL */
    52     __( '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>.' ),
     51    /* translators: 1: NPM URL, 2: Handbook URL */
     52    __( 'This requires <a href="%1$s">NPM</a>. <a href="%2$s">Read more about setting up your local development environment</a>.' ),
    5353    'https://www.npmjs.com/get-npm',
    54     'https://gruntjs.com/getting-started',
    5554    __( 'https://make.wordpress.org/core/handbook/tutorials/installing-wordpress-locally/' )
    5655) . '</p>';
Note: See TracChangeset for help on using the changeset viewer.