mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-04-12 06:53:44 +03:00
Tools: Update node env, composer packages, add wp-env
This commit is contained in:
parent
aecac300ce
commit
28b102bc4c
31
.gitignore
vendored
31
.gitignore
vendored
|
@ -1,12 +1,31 @@
|
||||||
*.css.map
|
/**/.DS_STORE
|
||||||
*.js.map
|
/**/.idea
|
||||||
|
/**/.svn
|
||||||
|
/**/build
|
||||||
|
/**/node_modules
|
||||||
|
vendor
|
||||||
coverage
|
coverage
|
||||||
|
*.map
|
||||||
|
wp-cli.yml
|
||||||
|
|
||||||
|
/uploads
|
||||||
|
/db.php
|
||||||
|
|
||||||
|
|
||||||
|
# Allow local environment overrides.
|
||||||
|
.wp-env.override.json
|
||||||
|
.env/0-sandbox.php
|
||||||
|
|
||||||
|
# Configs from wporg-repo-tools.
|
||||||
|
.eslintrc.js
|
||||||
|
.prettierrc.js
|
||||||
|
.stylelintrc
|
||||||
|
phpcs.xml.dist
|
||||||
|
|
||||||
mu-plugins/vendor
|
mu-plugins/vendor
|
||||||
|
mu-plugins/pub
|
||||||
mu-plugins/wporg-mu-plugins
|
mu-plugins/wporg-mu-plugins
|
||||||
mu-plugins/0-sandbox.php
|
mu-plugins/0-sandbox.php
|
||||||
node_modules
|
|
||||||
|
|
||||||
plugins/*
|
plugins/*
|
||||||
!plugins/wporg-5ftf
|
!plugins/wporg-5ftf
|
||||||
|
@ -14,7 +33,5 @@ plugins/*
|
||||||
themes/wporg-5ftf/css/style.css
|
themes/wporg-5ftf/css/style.css
|
||||||
themes/wporg-5ftf/css/style-editor.css
|
themes/wporg-5ftf/css/style-editor.css
|
||||||
themes/pub
|
themes/pub
|
||||||
|
themes/wporg-parent-2021
|
||||||
themes/twenty*
|
themes/twenty*
|
||||||
|
|
||||||
/uploads
|
|
||||||
/db.php
|
|
||||||
|
|
21
.wp-env.json
Normal file
21
.wp-env.json
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
{
|
||||||
|
"config": {
|
||||||
|
"WP_DEBUG": true,
|
||||||
|
"SCRIPT_DEBUG": true,
|
||||||
|
"WP_DEBUG_LOG": "/tmp/wp-errors.log",
|
||||||
|
"FS_METHOD": "direct",
|
||||||
|
"WP_ENVIRONMENT_TYPE": "local",
|
||||||
|
"WP_DEVELOPMENT_MODE": "all",
|
||||||
|
"JETPACK_DEV_DEBUG": true,
|
||||||
|
"WPORG_SANDBOXED": true
|
||||||
|
},
|
||||||
|
"core": "WordPress/WordPress#master",
|
||||||
|
"mappings": {
|
||||||
|
"env": "./env",
|
||||||
|
"wp-content/mu-plugins": "./mu-plugins",
|
||||||
|
"wp-content/plugins": "./plugins",
|
||||||
|
"wp-content/themes": "./themes",
|
||||||
|
"wp-content/mu-plugins/0-sandbox.php": "./.env/0-sandbox.php",
|
||||||
|
"wp-cli.local.yml": "./wp-cli.local.yml"
|
||||||
|
}
|
||||||
|
}
|
|
@ -23,23 +23,68 @@
|
||||||
},
|
},
|
||||||
"extra": {
|
"extra": {
|
||||||
"installer-paths": {
|
"installer-paths": {
|
||||||
"mu-plugins/{$name}": [ "wporg/wporg-mu-plugins" ]
|
"mu-plugins/{$name}/": ["type:wordpress-muplugin"],
|
||||||
|
"plugins/{$name}/": ["type:wordpress-plugin"],
|
||||||
|
"themes/{$name}/": ["type:wordpress-theme"]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"repositories": [
|
"repositories": [
|
||||||
|
{
|
||||||
|
"type": "composer",
|
||||||
|
"url": "https://wpackagist.org/"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "vcs",
|
||||||
|
"url": "git@github.com:WordPress/wporg-repo-tools.git"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"type": "vcs",
|
"type": "vcs",
|
||||||
"url": "git@github.com:WordPress/wporg-mu-plugins.git"
|
"url": "git@github.com:WordPress/wporg-mu-plugins.git"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "vcs",
|
||||||
|
"url": "git@github.com:WordPress/wporg-parent-2021.git"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "package",
|
||||||
|
"package": [
|
||||||
|
{
|
||||||
|
"name": "wordpress-meta/pub",
|
||||||
|
"type": "wordpress-muplugin",
|
||||||
|
"version": "1",
|
||||||
|
"source": {
|
||||||
|
"type": "svn",
|
||||||
|
"url": "https://meta.svn.wordpress.org/sites/",
|
||||||
|
"reference": "trunk/wordpress.org/public_html/wp-content/mu-plugins/pub/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "wordpress-meta/handbook",
|
||||||
|
"type": "wordpress-plugin",
|
||||||
|
"version": "2",
|
||||||
|
"source": {
|
||||||
|
"type": "svn",
|
||||||
|
"url": "https://meta.svn.wordpress.org/sites/",
|
||||||
|
"reference": "trunk/wordpress.org/public_html/wp-content/plugins/handbook/"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"require": {},
|
|
||||||
"require-dev" : {
|
"require-dev" : {
|
||||||
"composer/installers": "~1.0",
|
"composer/installers": "~1.0",
|
||||||
"wporg/wporg-mu-plugins": "dev-build",
|
|
||||||
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.0",
|
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.0",
|
||||||
"wp-coding-standards/wpcs": "3.0.*",
|
"phpcompatibility/phpcompatibility-wp": "*",
|
||||||
"phpunit/phpunit": "^9",
|
"phpunit/phpunit": "^9",
|
||||||
"spatie/phpunit-watcher": "^1.23",
|
"spatie/phpunit-watcher": "^1.23",
|
||||||
|
"wp-coding-standards/wpcs": "3.0.*",
|
||||||
|
"wordpress-meta/pub": "1",
|
||||||
|
"wordpress-meta/handbook": "2",
|
||||||
|
"wpackagist-plugin/gutenberg": "*",
|
||||||
|
"wpackagist-plugin/wordpress-importer": "*",
|
||||||
|
"wporg/wporg-mu-plugins": "dev-build",
|
||||||
|
"wporg/wporg-parent-2021": "dev-build",
|
||||||
|
"wporg/wporg-repo-tools": "dev-trunk",
|
||||||
"yoast/phpunit-polyfills": "^1.1"
|
"yoast/phpunit-polyfills": "^1.1"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
995
composer.lock
generated
995
composer.lock
generated
File diff suppressed because it is too large
Load diff
25162
package-lock.json
generated
Normal file
25162
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load diff
25
package.json
Normal file
25
package.json
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
{
|
||||||
|
"name": "wporg-5ftf",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"description": "The codebase and development environment for Five for the Future.",
|
||||||
|
"author": "WordPress.org",
|
||||||
|
"license": "GPL-2.0-or-later",
|
||||||
|
"private": true,
|
||||||
|
"devDependencies": {
|
||||||
|
"@wordpress/env": "10.6.0",
|
||||||
|
"@wordpress/scripts": "28.6.0"
|
||||||
|
},
|
||||||
|
"scripts": {
|
||||||
|
"setup:tools": "npm install && composer install && TEXTDOMAIN=wporg-5ftf composer exec update-configs",
|
||||||
|
"setup:wp": "wp-env run cli bash env/setup.sh",
|
||||||
|
"build:theme": "npm run build --workspace=wporg-5ftf",
|
||||||
|
"start:theme": "npm run watch --workspace=wporg-5ftf",
|
||||||
|
"update:tools": "composer update && TEXTDOMAIN=wporg-5ftf composer exec update-configs",
|
||||||
|
"lint:php": "composer lint ./themes/wporg-5ftf ./plugins/wporg-5ftf",
|
||||||
|
"wp-env": "wp-env"
|
||||||
|
},
|
||||||
|
"workspaces": [
|
||||||
|
"themes/wporg-5ftf",
|
||||||
|
"themes/wporg-5ftf-2024"
|
||||||
|
]
|
||||||
|
}
|
5426
themes/wporg-5ftf/package-lock.json
generated
5426
themes/wporg-5ftf/package-lock.json
generated
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue