This file contains hidden or 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
function makesage() { | |
wp valet new $1 --dbname=$1 --admin_user=adminusertoreplace --admin_password=adminpasswordtoreplace --admin_email=adminemailtoreplace | |
cd $1 | |
installAndActivePlugins | |
installPlugins | |
if [ -s "@:2"] | |
then | |
wp plugin install ${@:2} --activate | |
fi | |
valet secure $1 && cd ./wp-content/themes/ && composer create-project roots/sage $1 && rm -rf twentynineteen && rm -rf twentytwenty && rm -rf twentytwentyone && cd $1 && sageInstallLanguages && npm i && open -a "Firefox" https://$1.test && open -a "Firefox" https://$1.test/wp-admin |
This file contains hidden or 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
function makewp(){ | |
wp valet new $1 --dbname=$1 --admin_user=adminusernametoreplace --admin_password=adminpasswordtoreplace --admin_email=adminemailadresstoreplace && cd $1 && installAndActivePlugins && installPlugins | |
if [ -s "@:2"]; then | |
wp plugin install ${@:2} --activate | |
fi | |
valet secure $1 && open -a "Firefox" https://$1.test/wp-admin | |
} | |
function installAndActivePlugins(){ | |
wp plugin install query-monitor really-simple-ssl duracelltomi-google-tag-manager imsanity --activate |
This file contains hidden or 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
{"lastUpload":"2018-11-07T20:46:50.690Z","extensionVersion":"v3.2.0"} |