mirror of
https://github.com/amir20/dozzle.git
synced 2025-12-21 13:23:07 +01:00
Fixes yarn dev
This commit is contained in:
18
Makefile
18
Makefile
@@ -8,19 +8,21 @@ publish:
|
|||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
@rm -rf static dozzle
|
@rm -rf static
|
||||||
|
@go clean
|
||||||
|
|
||||||
static: $(shell find assets -type f)
|
.PHONY: static
|
||||||
ifdef SKIP_ASSET
|
static:
|
||||||
|
@yarn build
|
||||||
|
|
||||||
|
.PHONY: fake_static
|
||||||
|
fake_static:
|
||||||
@echo 'Skipping yarn build'
|
@echo 'Skipping yarn build'
|
||||||
@mkdir -p static
|
@mkdir -p static
|
||||||
@touch static/index.html
|
@echo "yarn build was skipped" > static/index.html
|
||||||
else
|
|
||||||
yarn build
|
|
||||||
endif
|
|
||||||
|
|
||||||
.PHONY: test
|
.PHONY: test
|
||||||
test: static
|
test: fake_static
|
||||||
go test -cover ./...
|
go test -cover ./...
|
||||||
|
|
||||||
build: static
|
build: static
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
"watch": "npm-run-all -p watch:*",
|
"watch": "npm-run-all -p watch:*",
|
||||||
"watch:assets": "webpack --mode=development --watch",
|
"watch:assets": "webpack --mode=development --watch",
|
||||||
"watch:server": "reflex -c .reflex",
|
"watch:server": "reflex -c .reflex",
|
||||||
|
"predev": "make fake_static",
|
||||||
"dev": "npm-run-all -p dev-server watch:server",
|
"dev": "npm-run-all -p dev-server watch:server",
|
||||||
"dev-server": "webpack serve --mode=development",
|
"dev-server": "webpack serve --mode=development",
|
||||||
"prebuild": "yarn clean",
|
"prebuild": "yarn clean",
|
||||||
|
|||||||
Reference in New Issue
Block a user