Added register page, email field, finished login + register UI, reduced the number of templates generated.
This commit is contained in:
@@ -1,20 +1,26 @@
|
||||
# Variables
|
||||
CSS_INPUT:=./src/layouts/static/styles/global.css
|
||||
CSS_OUTPUT:=./build/stylesheet.css
|
||||
STYLES:=./src/layouts/static/styles
|
||||
TW_INPUT:=$(STYLES)/global.css
|
||||
TW_OUTPUT:=$(STYLES)/stylesheet.css
|
||||
TW_CONFIG := tailwind.config.js
|
||||
|
||||
NAME:=web-app
|
||||
|
||||
all: css
|
||||
all: run
|
||||
|
||||
# Build Tailwind
|
||||
css: $(CSS_INPUT) ./src/layouts/**/*.tmpl
|
||||
npx tailwindcss -i $(CSS_INPUT) -o $(CSS_OUTPUT) --minify
|
||||
css: $(TW_INPUT) $(TW_CONFIG)
|
||||
npx tailwindcss -c $(TW_CONFIG) -i $(TW_INPUT) -o $(TW_OUTPUT) --minify
|
||||
|
||||
# Build App
|
||||
go: ./src/main/*.go
|
||||
go build -o ./build/$(NAME) ./src/main.go
|
||||
|
||||
run: css go
|
||||
./build/$(NAME)
|
||||
run: css down
|
||||
docker-compose up --build
|
||||
|
||||
down:
|
||||
docker-compose down
|
||||
|
||||
# Clear build
|
||||
clean:
|
||||
|
||||
Reference in New Issue
Block a user