Merge remote-tracking branch 'origin/main' into LPM-58
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -2,9 +2,10 @@
|
||||
*.db
|
||||
*.ext
|
||||
bin
|
||||
|
||||
.idea
|
||||
.vscode
|
||||
|
||||
node_modules/
|
||||
package-lock.json
|
||||
package.json
|
||||
pkg/web/node_modules/
|
||||
|
||||
25
Makefile
25
Makefile
@@ -4,12 +4,16 @@ tidy:
|
||||
go mod tidy
|
||||
|
||||
clean:
|
||||
go clean
|
||||
@go clean
|
||||
@rm -rf ./bin
|
||||
@rm -rf ./.pm
|
||||
@rm -rf node_modules
|
||||
|
||||
build:
|
||||
build: tidy
|
||||
go build -o ./bin/pm ./cmd/pm
|
||||
go build -o ./bin/tui ./cmd/tui
|
||||
go build -o ./bin/web ./cmd/web
|
||||
go build -o ./bin/survey ./cmd/survey
|
||||
|
||||
docker-build:
|
||||
@docker build -t survey .
|
||||
@@ -17,20 +21,23 @@ docker-build:
|
||||
docker-run:
|
||||
@docker run -it -p 8080:8080 survey:latest
|
||||
|
||||
cli:
|
||||
cli: tidy
|
||||
go run ./cmd/pm
|
||||
|
||||
tui:
|
||||
tui: tidy
|
||||
go run ./cmd/tui
|
||||
|
||||
web:
|
||||
web: tidy
|
||||
go run ./cmd/web
|
||||
|
||||
# Run both dev and tw in parallel for generating templates and compiling Tailwind CSS on file changes
|
||||
dev:
|
||||
@go tool templ generate -watch -cmd "go run ./cmd/web"
|
||||
tw:
|
||||
tw-install:
|
||||
@npm install tailwindcss@latest @tailwindcss/cli@latest @tailwindcss/typography daisyui@latest
|
||||
|
||||
# Run both dev and tw in parallel for generating templates and compiling Tailwind CSS on file changes
|
||||
dev: tidy
|
||||
@go tool templ generate -watch -cmd "go run ./cmd/web"
|
||||
|
||||
tw: tw-install
|
||||
@npx --yes @tailwindcss/cli -i ./pkg/web/input.css -o ./pkg/web/assets/css/styles.css --watch --minify
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user