WIP nat-globelet-playground
This commit is contained in:
3
projects/nat-globelet-playground/.gitignore
vendored
Normal file
3
projects/nat-globelet-playground/.gitignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
node_modules/
|
||||
.haxelib/
|
||||
index.js
|
8
projects/nat-globelet-playground/build.hxml
Normal file
8
projects/nat-globelet-playground/build.hxml
Normal 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
|
1196
projects/nat-globelet-playground/package-lock.json
generated
Normal file
1196
projects/nat-globelet-playground/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
17
projects/nat-globelet-playground/package.json
Normal file
17
projects/nat-globelet-playground/package.json
Normal 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"
|
||||
}
|
||||
}
|
@@ -0,0 +1,7 @@
|
||||
package nat_globelet_playground;
|
||||
|
||||
import kiss.Kiss;
|
||||
import kiss.Prelude;
|
||||
|
||||
@:build(kiss.Kiss.build())
|
||||
class Main {}
|
@@ -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")))
|
||||
|
4
projects/nat-globelet-playground/test.sh
Normal file
4
projects/nat-globelet-playground/test.sh
Normal file
@@ -0,0 +1,4 @@
|
||||
#! /bin/bash
|
||||
|
||||
npm install .
|
||||
haxe build.hxml
|
Reference in New Issue
Block a user