Add bulma, remove 'npm serve' (let's go darhttpd!).
parent
4a7cd19407
commit
09b2908403
File diff suppressed because it is too large
Load Diff
|
@ -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>
|
26
makefile
26
makefile
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue