From 3f0bb2ce1d113788ac9b342a00c7acea6782b102 Mon Sep 17 00:00:00 2001 From: Charlotte Weaver Date: Wed, 8 Aug 2018 15:10:33 -0700 Subject: [PATCH 1/3] Added clean script for cellxgene --- bin/clean | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 bin/clean diff --git a/bin/clean b/bin/clean new file mode 100755 index 00000000..2765d394 --- /dev/null +++ b/bin/clean @@ -0,0 +1,16 @@ +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )" +CELLXGENE_DIR=$(dirname $DIR) + +echo "Uninstalling cellxgene" +yes | pip uninstall cellxgene +echo "removing node_modules" +rm -rf $CELLXGENE_DIR/client/node_modules +echo "removing client_build" +rm -rf $CELLXGENE_DIR/client/build +echo "removing egg-info" +rm -rf $CELLXGENE_DIR/cellxgene.egg-info +echo "removing static files" +rm $CELLXGENE_DIR/server/app/web/templates/index.html +rm -rf $CELLXGENE_DIR/server/app/web/static +echo "cellxgene cleanup complete" + From d093dc2e3b54295a47168463655cf4897e25376f Mon Sep 17 00:00:00 2001 From: Charlotte Weaver Date: Wed, 8 Aug 2018 15:17:23 -0700 Subject: [PATCH 2/3] Allow build-client to run anywhere --- bin/build-client | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/build-client b/bin/build-client index 8e51b8db..a4b2c484 100755 --- a/bin/build-client +++ b/bin/build-client @@ -1,4 +1,8 @@ #!/bin/bash +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )" +CELLXGENE_DIR=$(dirname $DIR) + +cd $CELLXGENE_DIR npm install --prefix client/ client npm run --prefix client build From 004303300bfeebc665ef86841eb14291655794a6 Mon Sep 17 00:00:00 2001 From: Charlotte Weaver Date: Thu, 9 Aug 2018 10:09:19 -0700 Subject: [PATCH 3/3] -f flag for file removal too --- bin/clean | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/clean b/bin/clean index 2765d394..e989035f 100755 --- a/bin/clean +++ b/bin/clean @@ -10,7 +10,7 @@ rm -rf $CELLXGENE_DIR/client/build echo "removing egg-info" rm -rf $CELLXGENE_DIR/cellxgene.egg-info echo "removing static files" -rm $CELLXGENE_DIR/server/app/web/templates/index.html +rm -f $CELLXGENE_DIR/server/app/web/templates/index.html rm -rf $CELLXGENE_DIR/server/app/web/static echo "cellxgene cleanup complete"