kiss-express projects smarter dts2hx handling. Close #164
This commit is contained in:
3
projects/nat-globelet-playground/.gitignore
vendored
3
projects/nat-globelet-playground/.gitignore
vendored
@@ -1,3 +1,4 @@
|
||||
node_modules/
|
||||
.haxelib/
|
||||
index.js
|
||||
libs/
|
||||
index.js
|
||||
|
@@ -10,8 +10,8 @@
|
||||
"devDependencies": {
|
||||
"dts2hx": "^0.19.0"
|
||||
},
|
||||
"version": "0.0.0",
|
||||
"scripts": {
|
||||
"postinstall": "dts2hx --all"
|
||||
}
|
||||
},
|
||||
"version": "0.0.0"
|
||||
}
|
@@ -1,24 +1,7 @@
|
||||
#! /bin/bash
|
||||
|
||||
if [ ! -d node_modules ]; then
|
||||
npm install .
|
||||
$(haxelib libpath kiss)/build-scripts/dts2hx-externs/regenerate.sh
|
||||
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
|
||||
(cp ../../kiss/build-scripts/common-args.hxml ./ && haxelib install all --always && rm common-args.hxml)
|
||||
# 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 -D test build.hxml
|
Reference in New Issue
Block a user