kiss-express projects smarter dts2hx handling. Close #164

This commit is contained in:
2022-10-10 02:11:43 +00:00
parent 4b3730a0af
commit ad0b193065
12 changed files with 77 additions and 25 deletions

View File

@@ -1,3 +1,4 @@
node_modules/
.haxelib/
libs/
index.js

View File

@@ -1,5 +1,6 @@
(let [app (Express.call)
port 3000]
(app.get "/" ->[req res next] (res.send "Hello World!"))
(app.listen port ->(print "kiss-express listening at http://localhost:$port")))
(#unless test
(app.listen port ->(print "kiss-express listening at http://localhost:$port"))))

View File

@@ -1,4 +1,7 @@
#! /bin/bash
npm install .
haxe build.hxml
if [ ! -d node_modules ]; then
$(haxelib libpath kiss)/build-scripts/dts2hx-externs/regenerate.sh
fi
haxe -D test build.hxml