Skip to content

Commit b5dfa8d

Browse files
Reorganising folders (#526)
* First cleanup * Update AGENTS.md Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> * Update AGENTS.md Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> * Renaming Config * Add blueprints file * Add blueprints file * Block resides in assets too --------- Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent b23c922 commit b5dfa8d

File tree

795 files changed

+468
-334
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

795 files changed

+468
-334
lines changed

.distignore

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
.gitignore
44
.phpcs.cache
55
.phpcs.xml.dist
6+
.phpstan.neon.dist
67
.scrutinizer.yml
78
/.git
89
/.github
@@ -12,14 +13,13 @@
1213
/.wordpress-org
1314
/bin
1415
/build
15-
/diagrams
1616
/docs
17-
/legacy-tests
1817
/multisite-language-switcher
1918
/node_modules
2019
/out
2120
/src
2221
/tests
22+
AGENTS.md
2323
Changelog.md
2424
Diagrams.md
2525
README.md
@@ -29,7 +29,6 @@ package-lock.json
2929
package.json
3030
patchwork.json
3131
phpdoc.xml
32-
phpstan.neon.dist
3332
phpunit.xml
3433
playwright.config.ts
3534
setup.sh

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
.vscode/
77
composer.lock
88
composer.phar
9-
js/msls-widget-block/
10-
js/msls.js
9+
assets/js/msls-widget-block/
10+
assets/js/msls.js
1111
multisite-language-switcher.zip
1212
multisite-language-switcher/
1313
node_modules/

.phpcs.xml.dist

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22
<ruleset name="CS">
33
<description>PHPCS MSLS configuration</description>
44
<config name="testVersion" value="7.4-"/>
5+
<exclude-pattern>assets/*</exclude-pattern>
56
<exclude-pattern>bin/*</exclude-pattern>
6-
<exclude-pattern>css/*</exclude-pattern>
7-
<exclude-pattern>flags/*</exclude-pattern>
87
<exclude-pattern>images/*</exclude-pattern>
98
<exclude-pattern>node_modules/*</exclude-pattern>
109
<exclude-pattern>tests/*</exclude-pattern>
File renamed without changes.

AGENTS.md

Lines changed: 114 additions & 0 deletions

Diagrams.md

Lines changed: 2 additions & 2 deletions

assets/blueprints/blueprints.json

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
{
2+
"name": "Multisite Language Switcher Setup",
3+
"description": "Sets up a WordPress Multisite environment with two subsites and activates the Multisite Language Switcher plugin.",
4+
"meta": {
5+
"version": 2
6+
},
7+
"preferredVersions": {
8+
"php": "8.3",
9+
"wp": "latest"
10+
},
11+
"phpExtensionBundles": [
12+
"kitchen-sink"
13+
],
14+
"features": {
15+
"networkMode": true
16+
},
17+
"steps": [
18+
{
19+
"action": "login",
20+
"username": "admin",
21+
"password": "password"
22+
},
23+
{
24+
"action": "enableMultisite"
25+
},
26+
{
27+
"step": "installPlugin",
28+
"pluginZipFile": {
29+
"resource": "wordpress.org\/plugins",
30+
"slug": "multisite-language-switcher"
31+
},
32+
"networkActivate": true
33+
},
34+
{
35+
"step": "createSite",
36+
"name": "English Site",
37+
"slug": "it",
38+
"homeUrl": "/it",
39+
"title": "Italian Site"
40+
},
41+
{
42+
"step": "createSite",
43+
"name": "German Site",
44+
"slug": "de",
45+
"homeUrl": "/de",
46+
"title": "German Site"
47+
},
48+
{
49+
"step": "runPHP",
50+
"code": "<?php\nupdate_site_option( 'WPLANG', 'en_US' );\nupdate_blog_option( 2, 'WPLANG', 'it_IT' );\nupdate_blog_option( 3, 'WPLANG', 'de_DE' );\n"
51+
}
52+
]
53+
}

0 commit comments

Comments
 (0)