diff --git a/cli b/cli index d774d5d1db56fb483936bdacaa713828f3a94127..4d1562831cb6bf42955e4c406cf91af1c4b238d8 100755 --- a/cli +++ b/cli @@ -37,8 +37,7 @@ case $action in cd $MIRADOR_FOLDER && docker run --rm -v $PWD:/opt -it node:12 /bin/sh -c "cd /opt && npm install && npm run build:es" ;; "build-mirador-plugin") - cd $MIRADOR_ANNOTATION_FOLDER/$MIRADOR_FOLDER && docker run --rm -v $PWD:/opt -it node:12 /bin/sh -c "cd /opt && npm install && npm run build:es" - cd .. && docker run --rm -v $PWD:/opt -it node:12 /bin/sh -c "cd /opt && npm install && npm run build" + cd $MIRADOR_ANNOTATION_FOLDER && docker run --rm -v $PWD:/opt -it node:12 /bin/sh -c "cd /opt && npm install && npm run build" ;; "clean-mirador") cd $MIRADOR_FOLDER && rm -R -f node_modules package-lock.json @@ -64,6 +63,12 @@ case $action in "up") $cmdup $@ ;; + "init-submodules") + git submodule init + ;; + "update-submodules") + git submodule update + ;; *) echo "ERROR: No command given" usage