1 Star 0 Fork 29

13532636010/gocron

forked from Gitee 极速下载/gocron 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
makefile 1.05 KB
一键复制 编辑 原始数据 按行查看 历史
记住一座城 提交于 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/ymwm2018/gocron.git
git@gitee.com:ymwm2018/gocron.git
ymwm2018
gocron
gocron
master

搜索帮助