Make WordPress Core

Changeset 45745 for trunk/package.json


Ignore:
Timestamp:
08/05/2019 07:09:14 AM (5 years ago)
Author:
pento
Message:

Build Tools: Add a WordPress Development Environment.

This commit adds the first iteration of a Docker-based config for setting up a local WordPress development environment.

Props pento, noisysocks, mcsf, pbearne, isabel_brison.
See #47767.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package.json

    r45570 r45745  
    2323        "check-node-version": "3.2.0",
    2424        "copy-webpack-plugin": "^4.6.0",
     25        "copyfiles": "2.1.1",
    2526        "core-js": "3.1.4",
     27        "cross-env": "5.2.0",
     28        "cross-var": "1.1.0",
    2629        "cssnano": "4.1.8",
     30        "dotenv-cli": "2.0.1",
    2731        "grunt": "~1.0.3",
    2832        "grunt-banner": "^0.6.0",
     
    5458        "uglify-js": "^3.4.9",
    5559        "uglifyjs-webpack-plugin": "2.1.1",
     60        "wait-on": "3.3.0",
    5661        "webpack": "4.29.2",
    5762        "webpack-dev-server": "3.1.14",
     
    120125    "scripts": {
    121126        "build": "grunt build",
    122         "dev": "grunt build --dev",
     127        "build:dev": "grunt build --dev",
     128        "dev": "grunt watch --dev",
    123129        "test": "grunt test",
    124130        "watch": "grunt watch",
    125131        "grunt": "grunt",
    126         "env:start": "./tools/local-env/start.sh",
    127         "env:reset-site": "./tools/local-env/install-wordpress.sh --reset-site",
    128         "test:e2e": "wp-scripts test-e2e --config tests/e2e/jest.config.js"
     132        "env:start": "dotenv npm run env:__start-next",
     133        "env:__start-next": "docker-compose -f ./tools/local-env/docker-compose.yml up -d",
     134        "env:stop": "dotenv npm run env:__stop-next",
     135        "env:clean": "dotenv npm run env:__stop-next -- -- -v --remove-orphans",
     136        "env:reset": "dotenv npm run env:__stop-next -- -- --rmi all -v --remove-orphans",
     137        "env:__stop-next": "docker-compose -f ./tools/local-env/docker-compose.yml -f ./tools/local-env/docker-compose.scripts.yml down",
     138        "env:install": "dotenv npm run env:__install-next",
     139        "env:__install-next": "npm run env:__install-config && npm run env:__install-config-define-wp_debug && npm run env:__install-config-define-wp_debug_log && npm run env:__install-config-define-wp_debug_display && npm run env:__install-config-define-script_debug && copyfiles -f src/wp-config.php . && npm run env:__reset-site && npm run env:__install-site",
     140        "env:__install-config": "cross-var npm run env:__cli-next config create -- --dbname=wordpress_develop --dbuser=root --dbpass=password --dbhost=mysql --path=/var/www/src --force",
     141        "env:__install-config-define-wp_debug": "cross-var npm run env:__cli-next config set WP_DEBUG $LOCAL_WP_DEBUG -- --raw",
     142        "env:__install-config-define-wp_debug_log": "cross-var npm run env:__cli-next config set WP_DEBUG_LOG $LOCAL_WP_DEBUG_LOG -- --raw",
     143        "env:__install-config-define-wp_debug_display": "cross-var npm run env:__cli-next config set WP_DEBUG_DISPLAY $LOCAL_WP_DEBUG_DISPLAY -- --raw",
     144        "env:__install-config-define-script_debug": "cross-var npm run env:__cli-next config set SCRIPT_DEBUG $LOCAL_SCRIPT_DEBUG -- --raw",
     145        "env:__install-site": "cross-var wait-on tcp:localhost:$LOCAL_PORT && cross-var npm run env:__cli-next core install -- --title=WPDEV --admin_user=admin --admin_password=password --admin_email=test@test.com --skip-email --url=http://localhost:$LOCAL_PORT --quiet",
     146        "env:__reset-site": "cross-var wait-on tcp:localhost:$LOCAL_PORT && npm run env:__cli-next db reset -- --yes --quiet",
     147        "env:cli": "dotenv npm run env:__cli-next",
     148        "env:__cli-next": "docker-compose -f ./tools/local-env/docker-compose.yml -f ./tools/local-env/docker-compose.scripts.yml run --rm cli",
     149        "env:logs": "docker-compose -f ./tools/local-env/docker-compose.yml -f ./tools/local-env/docker-compose.scripts.yml logs",
     150        "test:e2e": "dotenv npm run test:__e2e-next",
     151        "test:__e2e-next": "cross-var cross-env WP_BASE_URL=http://localhost:$LOCAL_PORT wp-scripts test-e2e --config tests/e2e/jest.config.js",
     152        "test:php": "dotenv npm run test:__php-next",
     153        "test:__php-next": "docker-compose -f ./tools/local-env/docker-compose.yml -f ./tools/local-env/docker-compose.scripts.yml run --rm phpunit phpunit"
    129154    }
    130155}
Note: See TracChangeset for help on using the changeset viewer.