fix: use npm on makefile
This commit is contained in:
8
makefile
8
makefile
@@ -2,11 +2,11 @@ PORT?=8080
|
||||
|
||||
lint: build/templ
|
||||
go run github.com/golangci/golangci-lint/cmd/golangci-lint@v1.59.1 run
|
||||
bun x eslint .
|
||||
npx eslint .
|
||||
|
||||
lint/fix: build/templ
|
||||
go run github.com/golangci/golangci-lint/cmd/golangci-lint@v1.59.1 run
|
||||
bun x eslint --fix .
|
||||
npx eslint --fix .
|
||||
|
||||
fmt: build/templ
|
||||
go fmt ./.
|
||||
@@ -51,7 +51,7 @@ dev/sync_assets:
|
||||
--build.include_ext "js,css"
|
||||
|
||||
dev/assets/css:
|
||||
bun x unocss --watch
|
||||
npm run unocss -- --watch
|
||||
|
||||
dev/web:
|
||||
go run github.com/joho/godotenv/cmd/godotenv@v1.5.1 \
|
||||
@@ -68,7 +68,7 @@ build/bin:
|
||||
go build -o ./.dist/bin .
|
||||
|
||||
build/assets:
|
||||
npx unocss
|
||||
npm run unocss
|
||||
|
||||
build: build/templ build/assets build/bin
|
||||
|
||||
|
||||
Reference in New Issue
Block a user