move standalone projects into own directory

This commit is contained in:
2023-04-27 11:39:41 -06:00
parent 5d593e22b0
commit acda704057
369 changed files with 1170 additions and 5 deletions

View File

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

View File

@@ -0,0 +1,8 @@
-lib kiss
-lib express
-lib kiss-express
-lib hxnodejs
-cp src
--main nat_globelet_playground.Main
--js index.js
--cmd node index.js

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,17 @@
{
"main": "index.js",
"name": "nat_globelet_playground",
"description": "An ExpressJS website made with Kisslang",
"title": "nat-globelet-playground",
"dependencies": {
"express": "^4.18.1",
"@types/express": "^4.17.13"
},
"devDependencies": {
"dts2hx": "^0.19.0"
},
"scripts": {
"postinstall": "dts2hx --all"
},
"version": "0.0.0"
}

View File

@@ -0,0 +1,7 @@
package nat_globelet_playground;
class Main {
static function main() {
Main_.main();
}
}

View File

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

View File

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