2021-12-06 17:25:19 +01:00
|
|
|
default: lint frontend_lint test
|
2021-04-03 14:11:47 +02:00
|
|
|
|
|
|
|
lint:
|
2021-12-06 17:25:19 +01:00
|
|
|
golangci-lint run
|
2021-04-03 14:11:47 +02:00
|
|
|
|
2021-09-22 15:36:45 +02:00
|
|
|
publish: frontend
|
2021-04-03 14:11:47 +02:00
|
|
|
curl -sSLo golang.sh https://raw.githubusercontent.com/Luzifer/github-publish/master/golang.sh
|
|
|
|
bash golang.sh
|
|
|
|
|
|
|
|
test:
|
2021-08-19 15:33:56 +02:00
|
|
|
go test -cover -v ./...
|
2021-04-03 14:11:47 +02:00
|
|
|
|
2021-09-22 15:36:45 +02:00
|
|
|
# --- Editor frontend
|
|
|
|
|
2021-12-06 17:25:19 +01:00
|
|
|
frontend: node_modules
|
|
|
|
node ci/build.mjs
|
|
|
|
|
|
|
|
frontend_lint: node_modules
|
|
|
|
./node_modules/.bin/eslint \
|
|
|
|
--ext .js,.vue \
|
|
|
|
--fix \
|
|
|
|
src
|
|
|
|
|
|
|
|
node_modules:
|
|
|
|
npm ci
|
2021-09-22 15:36:45 +02:00
|
|
|
|
2021-04-03 14:11:47 +02:00
|
|
|
# --- Wiki Updates
|
2020-12-26 01:35:20 +01:00
|
|
|
|
2021-09-22 15:36:45 +02:00
|
|
|
actor_docs:
|
2022-02-10 02:02:25 +01:00
|
|
|
go run . --storage-file $(shell mktemp).json.gz actor-docs >wiki/Actors.md
|
2021-09-22 15:36:45 +02:00
|
|
|
|
2020-12-26 01:35:20 +01:00
|
|
|
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
|