Create WP Core development environments in Local Lightning
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd .. | |
mv ./public/wp-config.php . | |
rm -rf ./public | |
git clone git://core.git.wordpress.org/ public | |
ln -sv $PWD/wp-config.php $PWD/public/wp-config.php | |
curl -o ./public/.gitignore https://gist.githubusercontent.com/afragen/43dfff563e942353d866c81904498cb2/raw/.gitignore | |
curl -o setup-phpunit.sh https://raw.githubusercontent.com/afragen/setup-phpunit/master/setup-phpunit.sh | |
curl -o apply-trac-patch.sh https://gist.githubusercontent.com/afragen/977d765414189d5f5fae42215fe92a27/raw/apply-trac-patch.sh | |
bash setup-phpunit.sh --wp-version=trunk --wp-ts-version=trunk | |
cd public/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd .. | |
mv ./public/wp-config.php . | |
rm -rf ./public | |
git clone git://develop.git.wordpress.org/ public | |
ln -sv $PWD/wp-config.php $PWD/public/wp-config.php | |
svn co https://plugins.svn.wordpress.org/wordpress-importer/trunk/ public/tests/phpunit/data/plugins/wordpress-importer | |
curl -o setup-phpunit.sh https://raw.githubusercontent.com/afragen/setup-phpunit/master/setup-phpunit.sh | |
curl -o apply-trac-patch.sh https://gist.githubusercontent.com/afragen/977d765414189d5f5fae42215fe92a27/raw/apply-trac-patch.sh | |
bash setup-phpunit.sh --wp-version=trunk --wp-ts-version=trunk | |
cd public/ | |
siteurl="$(wp option get siteurl | sed -e 's#/build$##')";wp option update siteurl "$siteurl/build" | |
home="$(wp option get home | sed -e 's#/build$##')";wp option update home "$home/build" | |
npm install && npm run build:dev && npm run env:start && npm run env:install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment