代码拉取完成,页面将自动刷新
同步操作将从 Gitee 极速下载/gocron 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。