-- Leo's gemini proxy

-- Connecting to git.thebackupbox.net:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini

repo: janusweb
action: commit
revision:
path_from:
revision_from: 34d45982b70e3e8c309c7e5448aeb858c4771956:
path_to:
revision_to:

git.thebackupbox.net

janusweb

git://git.thebackupbox.net/janusweb

commit 34d45982b70e3e8c309c7e5448aeb858c4771956
Author: James Baicoianu <james_github@baicoianu.com>
Date:   Sun May 29 14:54:00 2016 -0700

    Use npm for package instalation

diff --git a/utils/init.sh b/utils/init.sh

index 5339fd986a77f808b9b2c354d4b9760cc04ea4a2..

index ..430acb49b281360c58c9a4fc099f2414c666c266 100755

--- a/utils/init.sh
+++ b/utils/init.sh
@@ -1,13 +1,31 @@
-#!/bin/sh
+#!/bin/bash
+
+echo "Installing dependencies..."
+npm install
+echo "done"
+echo
+
+echo "Creating directory tree..."
+DEPENDENCYPATHS=$(npm ls -parseable)
+
+declare -A dependencies
+
+for DEP in $DEPENDENCYPATHS; do
+  DEPNAME=$(basename $DEP)
+  dependencies[$DEPNAME]=$DEP
+done

 if [ ! -d elation ]; then
-  git clone https://github.com/jbaicoianu/elation.git
-  cd elation
-  git clone https://github.com/jbaicoianu/elation-engine.git components/engine
-  git clone https://github.com/jbaicoianu/cyclone-physics-js.git components/physics
-  git clone https://github.com/jbaicoianu/elation-share.git components/share
-  #git clone https://github.com/jbaicoianu/janusweb.git components/janusweb
-  ln -s `pwd`/.. components/janusweb
+  ln -s ${dependencies["elation"]}
+
+  cd elation/components
+  ln -s ${dependencies["elation-engine"]} engine
+  ln -s ${dependencies["elation-share"]} share
+  ln -s ${dependencies["cyclone-physics"]} physics
+  ln -s ${dependencies["janusweb"]} janusweb
+
+  cd ..
   ./elation web init
   ./elation component enable engine physics share janusweb
 fi
+echo "done"

-----END OF PAGE-----

-- Response ended

-- Page fetched on Sun Jun 2 15:48:55 2024