mirror of
https://github.com/Luzifer/twitch-bot.git
synced 2024-11-08 16:20:02 +00:00
36 lines
680 B
Makefile
36 lines
680 B
Makefile
default: lint frontend_lint test
|
|
|
|
lint:
|
|
golangci-lint run
|
|
|
|
publish: frontend
|
|
curl -sSLo golang.sh https://raw.githubusercontent.com/Luzifer/github-publish/master/golang.sh
|
|
bash golang.sh
|
|
|
|
test:
|
|
go test -cover -v ./...
|
|
|
|
# --- Editor frontend
|
|
|
|
frontend: node_modules
|
|
node ci/build.mjs
|
|
|
|
frontend_lint: node_modules
|
|
./node_modules/.bin/eslint \
|
|
--ext .js,.vue \
|
|
--fix \
|
|
src
|
|
|
|
node_modules:
|
|
npm ci
|
|
|
|
# --- Wiki Updates
|
|
|
|
actor_docs:
|
|
go run . actor-docs >wiki/Actors.md
|
|
|
|
pull_wiki:
|
|
git subtree pull --prefix=wiki https://github.com/Luzifer/twitch-bot.wiki.git master --squash
|
|
|
|
push_wiki:
|
|
git subtree push --prefix=wiki https://github.com/Luzifer/twitch-bot.wiki.git master
|