mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-21 22:43:52 +00:00
refine make process for #316
This commit is contained in:
parent
e030b87e4e
commit
3aed794c79
1
.github/workflows/release.yml
vendored
1
.github/workflows/release.yml
vendored
|
@ -27,7 +27,6 @@ jobs:
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
npm install --global yarn
|
npm install --global yarn
|
||||||
(cd frontend && yarn install)
|
|
||||||
make dist VERSION=${{ steps.get_version.outputs.VERSION }}
|
make dist VERSION=${{ steps.get_version.outputs.VERSION }}
|
||||||
shell: bash
|
shell: bash
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
|
|
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -32,3 +32,6 @@
|
||||||
/config/bbgo.yaml
|
/config/bbgo.yaml
|
||||||
|
|
||||||
/pkg/server/assets.go
|
/pkg/server/assets.go
|
||||||
|
|
||||||
|
node_modules
|
||||||
|
yarn.lock
|
||||||
|
|
9
Makefile
9
Makefile
|
@ -24,8 +24,10 @@ $(BIN_DIR):
|
||||||
|
|
||||||
|
|
||||||
# build native bbgo
|
# build native bbgo
|
||||||
bbgo:
|
bbgo: static bbgo-full
|
||||||
go build -tags web,release -o $(BIN_DIR)/$@ ./cmd/bbgo
|
|
||||||
|
bbgo-full:
|
||||||
|
go build -tags web,release -o $(BIN_DIR)/bbgo ./cmd/bbgo
|
||||||
|
|
||||||
# build native bbgo (slim version)
|
# build native bbgo (slim version)
|
||||||
bbgo-slim:
|
bbgo-slim:
|
||||||
|
@ -147,7 +149,8 @@ docker-push:
|
||||||
bash -c "[[ -n $(DOCKER_TAG) ]] && docker push yoanlin/bbgo:$(DOCKER_TAG)"
|
bash -c "[[ -n $(DOCKER_TAG) ]] && docker push yoanlin/bbgo:$(DOCKER_TAG)"
|
||||||
|
|
||||||
frontend/out/index.html:
|
frontend/out/index.html:
|
||||||
(cd frontend && yarn export)
|
cd frontend && yarn install
|
||||||
|
cd frontend && yarn export
|
||||||
|
|
||||||
pkg/server/assets.go: frontend/out/index.html
|
pkg/server/assets.go: frontend/out/index.html
|
||||||
go run ./util/embed -package server -output $@ $(FRONTEND_EXPORT_DIR)
|
go run ./util/embed -package server -output $@ $(FRONTEND_EXPORT_DIR)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user