Add bulma, remove 'npm serve' (let's go darhttpd!).

master
Philippe Pittoli 2023-06-08 16:31:51 +02:00
parent 4a7cd19407
commit 09b2908403
3 changed files with 7818 additions and 10 deletions

7790
app/bulma.css vendored Normal file

File diff suppressed because it is too large Load Diff

12
app/index.html Normal file
View File

@ -0,0 +1,12 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="./bulma.css">
<title>DNS Manager (beta)</title>
</head>
<body>
<script src="./index.js" type="module"></script>
</body>
</html>

View File

@ -3,24 +3,30 @@ all: build
build: build:
spago build spago build
bundle: bundle: install-esbuild
spago bundle-app PATH=$$PATH:node_modules/.bin spago bundle-app
mv index.js app/
repl: repl:
spago repl spago repl
serve:
npm run serve
spagobuild: spagobuild:
spago build spago build
#HTTPD_ACCESS_LOGS ?= /tmp/access.log install-esbuild:
#HTTPD_ADDR ?= 127.0.0.1 @echo "install ebbuild"
#HTTPD_PORT ?= 35000 [ -f node_modules/.bin/esbuild ] || npm install esbuild
#DIR ?= output
HTTPD_ACCESS_LOGS ?= /tmp/access.log
HTTPD_ADDR ?= 127.0.0.1
HTTPD_PORT ?= 35000
DIR ?= app
serve:
darkhttpd $(DIR) --addr $(HTTPD_ADDR) --port $(HTTPD_PORT) --log $(HTTPD_ACCESS_LOGS)
# NPM can serve it, but it's slow for nothing.
#serve: #serve:
# darkhttpd $(DIR) --addr $(HTTPD_ADDR) --port $(HTTPD_PORT) --log $(HTTPD_ACCESS_LOGS) # npm run serve
# You can add your specific instructions there. # You can add your specific instructions there.
-include makefile.user -include makefile.user