WIP nat-globelet-playground

This commit is contained in:
2022-08-10 13:49:56 +00:00
parent 7ae640d1fd
commit a32e5fd09b
7 changed files with 1240 additions and 0 deletions

View File

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

View File

@@ -0,0 +1,8 @@
-lib kiss
-lib express
-lib kiss-express
-cp src
--macro kiss.Kiss.setup()
--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"
},
"version": "0.0.0",
"scripts": {
"postinstall": "dts2hx --all"
}
}

View File

@@ -0,0 +1,7 @@
package nat_globelet_playground;
import kiss.Kiss;
import kiss.Prelude;
@:build(kiss.Kiss.build())
class Main {}

View File

@@ -0,0 +1,5 @@
(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")))

View File

@@ -0,0 +1,4 @@
#! /bin/bash
npm install .
haxe build.hxml