From c53051d48df79f874f0d47109d1e96caa35a3ca8 Mon Sep 17 00:00:00 2001 From: Jonathan Hodgson Date: Wed, 17 Apr 2019 11:12:40 +0100 Subject: [PATCH] Adds locations to aquarius-plugin --- bin/aquarius-plugin | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/bin/aquarius-plugin b/bin/aquarius-plugin index 747dc588..f00bb88e 100755 --- a/bin/aquarius-plugin +++ b/bin/aquarius-plugin @@ -30,6 +30,7 @@ while test $# -gt 0; do echo "" echo -e "blocks, aquarius-blocks \t\t install aquarius blocks" 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 "people, aquarius-people \t\t install aquarius people" echo -e "permissions, aquarius-permissions \t install aquarius permissions into mu-plugins" @@ -81,6 +82,21 @@ while test $# -gt 0; do fi 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) if [ "$remove" = true ]; then npm remove wp-content/plugins/aquarius-news