Changeset 45445
- Timestamp:
- 05/26/2019 07:34:24 PM (6 years ago)
- Location:
- trunk
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/.travis.yml
r45058 r45445 90 90 - node --version 91 91 - nvm install 10.13.0 92 - npm install -g grunt-cli93 92 - npm install 94 93 - npm prune … … 102 101 - phpunit --version 103 102 - curl --version 104 - grunt --version105 103 - git --version 106 104 - svn --version 107 105 - locale -a 108 script: grunt $WP_TRAVISCI106 script: npm run grunt $WP_TRAVISCI 109 107 after_script: 110 108 - | -
trunk/appveyor.yml
r44599 r45445 12 12 - ps: Install-Product node $env:nodejs_version 13 13 - npm install npm -g 14 - npm install grunt-cli -g15 14 - npm install 16 15 … … 20 19 21 20 build_script: 22 - cmd: " gruntbuild"21 - cmd: "npm run build" 23 22 24 23 test: off -
trunk/package.json
r45342 r45445 20 20 "copy-webpack-plugin": "^4.6.0", 21 21 "cssnano": "4.1.8", 22 "grunt": " ~1.0.3",22 "grunt": "1.0.4", 23 23 "grunt-banner": "^0.6.0", 24 24 "grunt-contrib-clean": "~2.0.0", … … 47 47 "node-sass": "~4.12.0", 48 48 "source-map-loader": "^0.2.4", 49 "uglify-js": " ^3.4.9",49 "uglify-js": "3.5.15", 50 50 "uglifyjs-webpack-plugin": "2.1.1", 51 51 "webpack": "4.29.2", … … 114 114 }, 115 115 "scripts": { 116 "build": "grunt build", 117 "dev": "grunt build --dev", 118 "test": "grunt test", 119 "watch": "grunt watch", 116 120 "grunt": "grunt" 117 121 } -
trunk/src/index.php
r45190 r45445 35 35 $die .= '<p>' . sprintf( 36 36 /* translators: %s: npm install */ 37 __( 'Before running any grunttasks 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.' ), 38 38 '<code style="color: green;">npm install</code>' 39 39 ) . '</p>'; … … 41 41 $die .= '<ul>'; 42 42 $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>'; 44 44 $die .= '<li>' . __( 'To build files automatically when changing the source files, run:' ) . '<br /><br />'; 45 $die .= '<code style="color: green;"> gruntwatch</code></li>';45 $die .= '<code style="color: green;">npm run watch</code></li>'; 46 46 $die .= '<li>' . __( 'To create a production build of WordPress, run:' ) . '<br /><br />'; 47 $die .= '<code style="color: green;"> gruntbuild</code></li>';47 $die .= '<code style="color: green;">npm run build</code></li>'; 48 48 $die .= '</ul>'; 49 49 50 50 $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>.' ), 53 53 'https://www.npmjs.com/get-npm', 54 'https://gruntjs.com/getting-started',55 54 __( 'https://make.wordpress.org/core/handbook/tutorials/installing-wordpress-locally/' ) 56 55 ) . '</p>'; -
trunk/src/wp-includes/embed.php
r45037 r45445 447 447 /* 448 448 * If you're looking at a src version of this file, you'll see an "include" 449 * statement below. This is used by the ` gruntbuild` process to directly449 * statement below. This is used by the `npm run build` process to directly 450 450 * include a minified version of wp-embed.js, instead of using the 451 451 * file_get_contents() method from above. … … 1009 1009 /* 1010 1010 * If you're looking at a src version of this file, you'll see an "include" 1011 * statement below. This is used by the ` gruntbuild` process to directly1011 * statement below. This is used by the `npm run build` process to directly 1012 1012 * include a minified version of wp-oembed-embed.css, instead of using the 1013 1013 * readfile() method from above. … … 1040 1040 /* 1041 1041 * If you're looking at a src version of this file, you'll see an "include" 1042 * statement below. This is used by the ` gruntbuild` process to directly1042 * statement below. This is used by the `npm run build` process to directly 1043 1043 * include a minified version of wp-embed-template.js, instead of using the 1044 1044 * readfile() method from above. -
trunk/src/wp-includes/formatting.php
r45424 r45445 5521 5521 /* 5522 5522 * If you're looking at a src version of this file, you'll see an "include" 5523 * statement below. This is used by the ` gruntbuild` process to directly5523 * statement below. This is used by the `npm run build` process to directly 5524 5524 * include a minified version of wp-emoji-loader.js, instead of using the 5525 5525 * readfile() method from above. … … 5737 5737 * 5738 5738 * These arrays are automatically built from the regex in twemoji.js - if they need to be updated, 5739 * you should update the regex there, then run the ` grunt precommit:emoji` job.5739 * you should update the regex there, then run the `npm run grunt precommit:emoji` job. 5740 5740 * 5741 5741 * @since 4.9.0 -
trunk/tests/phpunit/includes/bootstrap.php
r45020 r45445 48 48 49 49 if ( defined( 'WP_RUN_CORE_TESTS' ) && WP_RUN_CORE_TESTS && ! is_dir( ABSPATH ) ) { 50 echo "ERROR: The /build/ directory is missing! Please run ` gruntbuild` prior to running PHPUnit.\n";50 echo "ERROR: The /build/ directory is missing! Please run `npm run build` prior to running PHPUnit.\n"; 51 51 exit( 1 ); 52 52 } -
trunk/tests/phpunit/tests/oembed/template.php
r43571 r45445 310 310 * In many cases, this file will not exist; in those cases, we simply skip the test. 311 311 * 312 * So when would it be run? We have Travis CI run ` grunttest` which then runs, in order,312 * So when would it be run? We have Travis CI run `npm run test` which then runs, in order, 313 313 * `qunit:compiled` (which runs the build) and then `phpunit`. Thus, this test will at least be 314 314 * run during continuous integration.
Note: See TracChangeset
for help on using the changeset viewer.