mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-23 15:25:14 +00:00
makefile: fix frontend app path
This commit is contained in:
parent
46d8d28b5b
commit
78299a6e7d
14
Makefile
14
Makefile
|
@ -15,7 +15,7 @@ OSX_APP_CODESIGN_IDENTITY ?=
|
||||||
# OSX_APP_GUI ?= lorca
|
# OSX_APP_GUI ?= lorca
|
||||||
OSX_APP_GUI ?= webview
|
OSX_APP_GUI ?= webview
|
||||||
|
|
||||||
FRONTEND_EXPORT_DIR = frontend/out
|
FRONTEND_EXPORT_DIR = apps/frontend/out
|
||||||
|
|
||||||
BACKTEST_REPORT_APP_DIR = apps/backtest-report
|
BACKTEST_REPORT_APP_DIR = apps/backtest-report
|
||||||
BACKTEST_REPORT_EXPORT_DIR = apps/backtest-report/out
|
BACKTEST_REPORT_EXPORT_DIR = apps/backtest-report/out
|
||||||
|
@ -224,13 +224,13 @@ docker-push:
|
||||||
docker push yoanlin/bbgo
|
docker push yoanlin/bbgo
|
||||||
bash -c "[[ -n $(DOCKER_TAG) ]] && docker push yoanlin/bbgo:$(DOCKER_TAG)"
|
bash -c "[[ -n $(DOCKER_TAG) ]] && docker push yoanlin/bbgo:$(DOCKER_TAG)"
|
||||||
|
|
||||||
frontend/node_modules:
|
apps/frontend/node_modules:
|
||||||
cd frontend && yarn install
|
cd apps/frontend && yarn install
|
||||||
|
|
||||||
frontend/out/index.html: frontend/node_modules
|
apps/frontend/out/index.html: apps/frontend/node_modules
|
||||||
cd frontend && yarn export
|
cd apps/frontend && yarn export
|
||||||
|
|
||||||
pkg/server/assets.go: frontend/out/index.html
|
pkg/server/assets.go: apps/frontend/out/index.html
|
||||||
go run ./utils/embed -package server -tag web -output $@ $(FRONTEND_EXPORT_DIR)
|
go run ./utils/embed -package server -tag web -output $@ $(FRONTEND_EXPORT_DIR)
|
||||||
|
|
||||||
$(BACKTEST_REPORT_APP_DIR)/node_modules:
|
$(BACKTEST_REPORT_APP_DIR)/node_modules:
|
||||||
|
@ -244,7 +244,7 @@ pkg/backtest/assets.go: $(BACKTEST_REPORT_APP_DIR)/out/index.html
|
||||||
|
|
||||||
embed: pkg/server/assets.go pkg/backtest/assets.go
|
embed: pkg/server/assets.go pkg/backtest/assets.go
|
||||||
|
|
||||||
static: frontend/out/index.html pkg/server/assets.go pkg/backtest/assets.go
|
static: apps/frontend/out/index.html pkg/server/assets.go pkg/backtest/assets.go
|
||||||
|
|
||||||
PROTOS := \
|
PROTOS := \
|
||||||
$(wildcard pkg/pb/*.proto)
|
$(wildcard pkg/pb/*.proto)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user