mirror of
https://github.com/steveiliop56/tinyauth.git
synced 2025-10-28 12:45:47 +00:00
* wip * feat: finalize totp gen code * refactor: split login screen and forms * feat: add totp logic and ui * refactor: make totp pending expiry time fixed * refactor: skip all checks when disable continue is enabled * fix: fix cli not exiting on invalid input
25 lines
359 B
Makefile
25 lines
359 B
Makefile
# Build website
|
|
web:
|
|
cd site; bun run build
|
|
|
|
# Copy site assets
|
|
assets: web
|
|
rm -rf internal/assets/dist
|
|
mkdir -p internal/assets/dist
|
|
cp -r site/dist/* internal/assets/dist
|
|
|
|
# Run development binary
|
|
run: assets
|
|
go run main.go
|
|
|
|
# Test
|
|
test:
|
|
go test ./...
|
|
|
|
# Build
|
|
build: assets
|
|
go build -o tinyauth
|
|
|
|
# Build no site
|
|
build-skip-web:
|
|
go build -o tinyauth
|