Adds locations to aquarius-plugin

Jonathan Hodgson 5 years ago
parent d35292a05a
commit 8a145cbc19
  1. 16
      bin/aquarius-plugin

@ -30,6 +30,7 @@ while test $# -gt 0; do
echo "" echo ""
echo -e "blocks, aquarius-blocks \t\t install aquarius blocks" echo -e "blocks, aquarius-blocks \t\t install aquarius blocks"
echo -e "clients, aquarius-clients \t\t install aquarius clients" echo -e "clients, aquarius-clients \t\t install aquarius clients"
echo -e "locations, aquarius-locations \t\t install aquarius locations"
echo -e "news, aquarius-news \t\t\t install aquarius news" echo -e "news, aquarius-news \t\t\t install aquarius news"
echo -e "people, aquarius-people \t\t install aquarius people" echo -e "people, aquarius-people \t\t install aquarius people"
echo -e "permissions, aquarius-permissions \t install aquarius permissions into mu-plugins" echo -e "permissions, aquarius-permissions \t install aquarius permissions into mu-plugins"
@ -81,6 +82,21 @@ while test $# -gt 0; do
fi fi
shift shift
;; ;;
aquarius-locations|locations)
if [ "$remove" = true ]; then
npm remove wp-content/plugins/aquarius-locations
git-delete-submodule "wp-content/plugins/aquarius-locations"
else
if [ "$ssh" = true ]; then
git submodule add git@bitbucket.org:fellowshipproductionsltd/aquarius-locations.git wp-content/plugins/aquarius-locations
else
git submodule add https://bitbucket.org/fellowshipproductionsltd/aquarius-locations.git wp-content/plugins/aquarius-locations
fi
npm install --save wp-content/plugins/aquarius-locations
doWebpack locations
fi
shift
;;
aquarius-news|news) aquarius-news|news)
if [ "$remove" = true ]; then if [ "$remove" = true ]; then
npm remove wp-content/plugins/aquarius-news npm remove wp-content/plugins/aquarius-news

Loading…
Cancel
Save