Add bulma, remove 'npm serve' (let's go darhttpd!).
This commit is contained in:
parent
4a7cd19407
commit
09b2908403
7790
app/bulma.css
vendored
Normal file
7790
app/bulma.css
vendored
Normal file
File diff suppressed because it is too large
Load Diff
12
app/index.html
Normal file
12
app/index.html
Normal 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>
|
26
makefile
26
makefile
@ -3,24 +3,30 @@ all: build
|
||||
build:
|
||||
spago build
|
||||
|
||||
bundle:
|
||||
spago bundle-app
|
||||
bundle: install-esbuild
|
||||
PATH=$$PATH:node_modules/.bin spago bundle-app
|
||||
mv index.js app/
|
||||
|
||||
repl:
|
||||
spago repl
|
||||
|
||||
serve:
|
||||
npm run serve
|
||||
|
||||
spagobuild:
|
||||
spago build
|
||||
|
||||
#HTTPD_ACCESS_LOGS ?= /tmp/access.log
|
||||
#HTTPD_ADDR ?= 127.0.0.1
|
||||
#HTTPD_PORT ?= 35000
|
||||
#DIR ?= output
|
||||
install-esbuild:
|
||||
@echo "install ebbuild"
|
||||
[ -f node_modules/.bin/esbuild ] || npm install esbuild
|
||||
|
||||
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:
|
||||
# darkhttpd $(DIR) --addr $(HTTPD_ADDR) --port $(HTTPD_PORT) --log $(HTTPD_ACCESS_LOGS)
|
||||
# npm run serve
|
||||
|
||||
# You can add your specific instructions there.
|
||||
-include makefile.user
|
||||
|
Loading…
Reference in New Issue
Block a user