1 Star 0 Fork 29

cjj/gocron

forked from Gitee 极速下载/gocron 
Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
makefile 1.05 KB
Copy Edit Raw Blame History
记住一座城 authored 2019-06-02 14:27 . golangci-lint
GO111MODULE=on
.PHONY: build
build: gocron node
.PHONY: build-race
build-race: enable-race build
.PHONY: run
run: build kill
./bin/gocron-node &
./bin/gocron web -e dev
.PHONY: run-race
run-race: enable-race run
.PHONY: kill
kill:
-killall gocron-node
.PHONY: gocron
gocron:
go build $(RACE) -o bin/gocron ./cmd/gocron
.PHONY: node
node:
go build $(RACE) -o bin/gocron-node ./cmd/node
.PHONY: test
test:
go test $(RACE) ./...
.PHONY: test-race
test-race: enable-race test
.PHONY: enable-race
enable-race:
$(eval RACE = -race)
.PHONY: package
package: build-vue statik
bash ./package.sh
.PHONY: package-all
package-all: build-vue statik
bash ./package.sh -p 'linux darwin windows'
.PHONY: build-vue
build-vue:
cd web/vue && yarn run build
cp -r web/vue/dist/* web/public/
.PHONY: install-vue
install-vue:
cd web/vue && yarn install
.PHONY: run-vue
run-vue:
cd web/vue && yarn run dev
.PHONY: statik
statik:
go get github.com/rakyll/statik
go generate ./...
.PHONY: lint
golangci-lint run
.PHONY: clean
clean:
rm bin/gocron
rm bin/gocron-node
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Shell
1
https://gitee.com/cjj8110/gocron.git
git@gitee.com:cjj8110/gocron.git
cjj8110
gocron
gocron
master

Search