82d7870fe4
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. git-svn-id: https://develop.svn.wordpress.org/trunk@45745 602fd350-edb4-49c9-b593-d223f7449a82
156 lines
6.6 KiB
JSON
156 lines
6.6 KiB
JSON
{
|
|
"name": "WordPress",
|
|
"version": "5.3.0",
|
|
"description": "WordPress is open source software you can use to create a beautiful website, blog, or app.",
|
|
"repository": {
|
|
"type": "svn",
|
|
"url": "https://develop.svn.wordpress.org/trunk"
|
|
},
|
|
"engines": {
|
|
"node": "10.13.0",
|
|
"npm": "6.1.0"
|
|
},
|
|
"author": "The WordPress Contributors",
|
|
"license": "GPL-2.0-or-later",
|
|
"devDependencies": {
|
|
"@wordpress/babel-preset-default": "4.3.0",
|
|
"@wordpress/custom-templated-path-webpack-plugin": "1.2.0",
|
|
"@wordpress/e2e-test-utils": "2.1.0",
|
|
"@wordpress/library-export-default-webpack-plugin": "1.1.0",
|
|
"@wordpress/scripts": "3.3.0",
|
|
"autoprefixer": "9.4.7",
|
|
"babel-jest": "24.8.0",
|
|
"check-node-version": "3.2.0",
|
|
"copy-webpack-plugin": "^4.6.0",
|
|
"copyfiles": "2.1.1",
|
|
"core-js": "3.1.4",
|
|
"cross-env": "5.2.0",
|
|
"cross-var": "1.1.0",
|
|
"cssnano": "4.1.8",
|
|
"dotenv-cli": "2.0.1",
|
|
"grunt": "~1.0.3",
|
|
"grunt-banner": "^0.6.0",
|
|
"grunt-contrib-clean": "~2.0.0",
|
|
"grunt-contrib-concat": "~1.0.0",
|
|
"grunt-contrib-copy": "~1.0.0",
|
|
"grunt-contrib-cssmin": "~3.0.0",
|
|
"grunt-contrib-imagemin": "~2.0.1",
|
|
"grunt-contrib-jshint": "~2.0.0",
|
|
"grunt-contrib-qunit": "^1.2.0",
|
|
"grunt-contrib-uglify": "~2.0.0",
|
|
"grunt-contrib-watch": "~1.1.0",
|
|
"grunt-file-append": "0.0.7",
|
|
"grunt-includes": "~1.1.0",
|
|
"grunt-jsdoc": "2.3.0",
|
|
"grunt-jsvalidate": "~0.2.2",
|
|
"grunt-legacy-util": "^1.1.1",
|
|
"grunt-patch-wordpress": "~1.0.0",
|
|
"grunt-postcss": "~0.9.0",
|
|
"grunt-replace": "~1.0.1",
|
|
"grunt-rtlcss": "~2.0.1",
|
|
"grunt-sass": "~3.0.2",
|
|
"grunt-webpack": "^3.1.3",
|
|
"ink-docstrap": "^1.3.0",
|
|
"jquery-migrate": "1.4.1",
|
|
"matchdep": "~2.0.0",
|
|
"node-sass": "~4.12.0",
|
|
"source-map-loader": "^0.2.4",
|
|
"uglify-js": "^3.4.9",
|
|
"uglifyjs-webpack-plugin": "2.1.1",
|
|
"wait-on": "3.3.0",
|
|
"webpack": "4.29.2",
|
|
"webpack-dev-server": "3.1.14",
|
|
"webpack-livereload-plugin": "2.2.0"
|
|
},
|
|
"dependencies": {
|
|
"@babel/polyfill": "7.2.5",
|
|
"@wordpress/a11y": "2.2.0",
|
|
"@wordpress/annotations": "1.2.3",
|
|
"@wordpress/api-fetch": "3.1.2",
|
|
"@wordpress/autop": "2.2.0",
|
|
"@wordpress/blob": "2.3.0",
|
|
"@wordpress/block-editor": "2.0.3",
|
|
"@wordpress/block-library": "2.4.6",
|
|
"@wordpress/block-serialization-default-parser": "3.1.0",
|
|
"@wordpress/blocks": "6.2.5",
|
|
"@wordpress/components": "7.3.2",
|
|
"@wordpress/compose": "3.2.0",
|
|
"@wordpress/core-data": "2.2.2",
|
|
"@wordpress/data": "4.4.0",
|
|
"@wordpress/date": "3.2.0",
|
|
"@wordpress/deprecated": "2.2.0",
|
|
"@wordpress/dom": "2.2.5",
|
|
"@wordpress/dom-ready": "2.2.0",
|
|
"@wordpress/edit-post": "3.3.6",
|
|
"@wordpress/editor": "9.2.6",
|
|
"@wordpress/element": "2.3.0",
|
|
"@wordpress/escape-html": "1.2.0",
|
|
"@wordpress/format-library": "1.4.6",
|
|
"@wordpress/hooks": "2.2.0",
|
|
"@wordpress/html-entities": "2.2.0",
|
|
"@wordpress/i18n": "3.3.0",
|
|
"@wordpress/is-shallow-equal": "1.2.0",
|
|
"@wordpress/keycodes": "2.2.0",
|
|
"@wordpress/list-reusable-blocks": "1.3.5",
|
|
"@wordpress/notices": "1.3.0",
|
|
"@wordpress/nux": "3.2.5",
|
|
"@wordpress/plugins": "2.2.0",
|
|
"@wordpress/priority-queue": "1.1.0",
|
|
"@wordpress/redux-routine": "3.2.0",
|
|
"@wordpress/rich-text": "3.2.3",
|
|
"@wordpress/shortcode": "2.2.0",
|
|
"@wordpress/token-list": "1.2.0",
|
|
"@wordpress/url": "2.5.0",
|
|
"@wordpress/viewport": "2.3.0",
|
|
"@wordpress/wordcount": "2.2.0",
|
|
"backbone": "1.3.3",
|
|
"clipboard": "2.0.4",
|
|
"element-closest": "^2.0.2",
|
|
"formdata-polyfill": "3.0.13",
|
|
"imagesloaded": "3.2.0",
|
|
"jquery-color": "github:jquery/jquery-color#2.1.1",
|
|
"jquery-form": "4.2.1",
|
|
"jquery-hoverintent": "1.8.3",
|
|
"jquery-ui": "github:jquery/jquery-ui#1.11.4",
|
|
"lodash": "4.17.11",
|
|
"masonry-layout": "3.3.2",
|
|
"moment": "2.22.2",
|
|
"polyfill-library": "3.27.4",
|
|
"react": "16.8.4",
|
|
"react-dom": "16.8.4",
|
|
"twemoji": "12.0.1",
|
|
"underscore": "1.8.3",
|
|
"whatwg-fetch": "3.0.0"
|
|
},
|
|
"scripts": {
|
|
"build": "grunt build",
|
|
"build:dev": "grunt build --dev",
|
|
"dev": "grunt watch --dev",
|
|
"test": "grunt test",
|
|
"watch": "grunt watch",
|
|
"grunt": "grunt",
|
|
"env:start": "dotenv npm run env:__start-next",
|
|
"env:__start-next": "docker-compose -f ./tools/local-env/docker-compose.yml up -d",
|
|
"env:stop": "dotenv npm run env:__stop-next",
|
|
"env:clean": "dotenv npm run env:__stop-next -- -- -v --remove-orphans",
|
|
"env:reset": "dotenv npm run env:__stop-next -- -- --rmi all -v --remove-orphans",
|
|
"env:__stop-next": "docker-compose -f ./tools/local-env/docker-compose.yml -f ./tools/local-env/docker-compose.scripts.yml down",
|
|
"env:install": "dotenv npm run env:__install-next",
|
|
"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",
|
|
"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",
|
|
"env:__install-config-define-wp_debug": "cross-var npm run env:__cli-next config set WP_DEBUG $LOCAL_WP_DEBUG -- --raw",
|
|
"env:__install-config-define-wp_debug_log": "cross-var npm run env:__cli-next config set WP_DEBUG_LOG $LOCAL_WP_DEBUG_LOG -- --raw",
|
|
"env:__install-config-define-wp_debug_display": "cross-var npm run env:__cli-next config set WP_DEBUG_DISPLAY $LOCAL_WP_DEBUG_DISPLAY -- --raw",
|
|
"env:__install-config-define-script_debug": "cross-var npm run env:__cli-next config set SCRIPT_DEBUG $LOCAL_SCRIPT_DEBUG -- --raw",
|
|
"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",
|
|
"env:__reset-site": "cross-var wait-on tcp:localhost:$LOCAL_PORT && npm run env:__cli-next db reset -- --yes --quiet",
|
|
"env:cli": "dotenv npm run env:__cli-next",
|
|
"env:__cli-next": "docker-compose -f ./tools/local-env/docker-compose.yml -f ./tools/local-env/docker-compose.scripts.yml run --rm cli",
|
|
"env:logs": "docker-compose -f ./tools/local-env/docker-compose.yml -f ./tools/local-env/docker-compose.scripts.yml logs",
|
|
"test:e2e": "dotenv npm run test:__e2e-next",
|
|
"test:__e2e-next": "cross-var cross-env WP_BASE_URL=http://localhost:$LOCAL_PORT wp-scripts test-e2e --config tests/e2e/jest.config.js",
|
|
"test:php": "dotenv npm run test:__php-next",
|
|
"test:__php-next": "docker-compose -f ./tools/local-env/docker-compose.yml -f ./tools/local-env/docker-compose.scripts.yml run --rm phpunit phpunit"
|
|
}
|
|
}
|