Make WordPress Core

Ticket #50042: 50042.2.diff

File 50042.2.diff, 3.9 KB (added by desrosj, 6 years ago)
  • .env

     
    1515# x.y PHP version from 5.2 onwards.
    1616LOCAL_PHP=latest
    1717
     18# The PHPUnit version to use when running tests.
     19#
     20# Valid options are 'latest', '{version}-fpm', or {phpunit-version}-php-{version}-fpm, where {version} is any x.y PHP
     21# version from 5.2 onwards and {phpunit-version} is any PHPUnit version starting from 4.
     22#
     23# Support for new PHPUnit versions is not backported to past releases, so some old WordPress branches require an older
     24# version to run tests. For full documentation on PHPUnit compatibility and WordPress versions, see
     25# https://make.wordpress.org/core/handbook/references/phpunit-compatibility-and-wordpress-versions/.
     26#
     27# This defaults to the value assigned to the value of LOCAL_PHP.
     28LOCAL_PHPUNIT=${LOCAL_PHP}
     29
    1830# Whether or not to enable XDebug.
    1931LOCAL_PHP_XDEBUG=false
    2032
  • package-lock.json

     
    91359135                        }
    91369136                },
    91379137                "dotenv": {
    9138                         "version": "8.1.0",
    9139                         "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-8.1.0.tgz",
    9140                         "integrity": "sha512-GUE3gqcDCaMltj2++g6bRQ5rBJWtkWTmqmD0fo1RnnMuUqHNCt2oTPeDnS9n6fKYvlhn7AeBkb38lymBtWBQdA==",
     9138                        "version": "8.2.0",
     9139                        "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-8.2.0.tgz",
     9140                        "integrity": "sha512-8sJ78ElpbDJBHNeBzUbUVLsqKdccaa/BXF1uPTw3GrvQTBgrQrtObr2mUrE38vzYd8cEv+m/JBfDLioYcfXoaw==",
    91419141                        "dev": true
    91429142                },
    91439143                "dotenv-expand": {
  • package.json

     
    3535                "check-node-version": "4.0.1",
    3636                "copy-webpack-plugin": "^5.1.1",
    3737                "cssnano": "4.1.10",
    38                 "dotenv": "8.1.0",
     38                "dotenv": "8.2.0",
    3939                "dotenv-expand": "5.1.0",
    4040                "grunt": "~1.1.0",
    4141                "grunt-banner": "^0.6.0",
  • tools/local-env/scripts/docker.js

     
    1 const dotenv = require( 'dotenv' );
     1const dotenv       = require( 'dotenv' );
     2const dotenvExpand = require( 'dotenv-expand' );
    23const { execSync } = require( 'child_process' );
    3 dotenv.config();
     4
     5dotenvExpand( dotenv.config() );
    46
    57// Execute any docker-compose command passed to this script.
    68execSync( 'docker-compose ' + process.argv.slice( 2 ).join( ' ' ), { stdio: 'inherit' } );
  • tools/local-env/scripts/install.js

     
    1 const dotenv = require( 'dotenv' );
     1const dotenv       = require( 'dotenv' );
     2const dotenvExpand = require( 'dotenv-expand' );
    23const wait_on = require( 'wait-on' );
    34const { execSync } = require( 'child_process' );
    45const { renameSync, readFileSync, writeFileSync } = require( 'fs' );
    56
    6 dotenv.config();
     7dotenvExpand( dotenv.config() );
    78
    89// Create wp-config.php.
    910wp_cli( 'config create --dbname=wordpress_develop --dbuser=root --dbpass=password --dbhost=mysql --path=/var/www/src --force' );
  • tools/local-env/scripts/start.js

     
    1 const dotenv = require( 'dotenv' );
     1const dotenv       = require( 'dotenv' );
     2const dotenvExpand = require( 'dotenv-expand' );
    23const { execSync } = require( 'child_process' );
    34
    4 dotenv.config();
     5dotenvExpand( dotenv.config() );
    56
    67// Start the local-env containers.
    78execSync( 'docker-compose up -d wordpress-develop', { stdio: 'inherit' } );