From 8de1aa342dde73b2b195f47a339213267ac906ab Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Fri, 30 Sep 2022 01:47:53 +0000 Subject: [PATCH] complicated globelet playground dependency fix --- projects/nat-globelet-playground/test.sh | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/projects/nat-globelet-playground/test.sh b/projects/nat-globelet-playground/test.sh index e45e27d6..c4e579f8 100755 --- a/projects/nat-globelet-playground/test.sh +++ b/projects/nat-globelet-playground/test.sh @@ -1,4 +1,24 @@ #! /bin/bash -npm install . +if [ ! -d node_modules ]; then + npm install . +fi +# npm install creates a .haxelib folder which needs to be pointed to the dependencies +if [ ! -d .haxelib/kiss ]; then + cp .haxelib/express/.current .haxelib/express/.current.tmp + haxelib install all --always + # install all introduces an out-of-date express haxelib + mv .haxelib/express/.current.tmp .haxelib/express/.current + + haxelib dev kiss ../../kiss + projects=$(ls ..) + for project in $projects + do + if [ -e ../${project}/haxelib.json ] + then + haxelib dev $project ../$project + # the word project has lost all meaning at this point + fi + done +fi haxe build.hxml \ No newline at end of file