Skip to content

Commit b1fab7a

Browse files
committed
Update wp-env symlinks to use vendor dir
1 parent a1bceb2 commit b1fab7a

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

.gitignore

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
# Generated via bin/transform-readme.php
1010
/readme.txt
1111

12-
# Ignore symlinked directories for wp-env
13-
/wp-core
14-
/wp-tests-phpunit
15-
1612
# In case the GitHub Wiki repo is cloned.
1713
/wiki
14+
15+
# IDE files
16+
.idea
17+
.vscode

bin/symlink-wp-env-install-paths.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,16 @@ if [[ -z "$install_path" ]]; then
66
exit 1
77
fi
88

9-
core_dir="wp-core"
9+
mkdir -p vendor/wp-env
10+
11+
core_dir="vendor/wp-env/wp-core"
1012
if [[ -e "$core_dir" ]]; then
1113
rm "$core_dir"
1214
fi
1315
ln -s "$install_path/WordPress" "$core_dir"
1416
echo "Created $core_dir symlink"
1517

16-
tests_dir="wp-tests-phpunit"
18+
tests_dir="vendor/wp-env/wp-tests-phpunit"
1719
if [[ -e "$tests_dir" ]]; then
1820
rm "$tests_dir"
1921
fi

0 commit comments

Comments
 (0)