2023-01-21 22:07:27 +01:00
|
|
|
.PHONY: all build
|
|
|
|
|
|
|
|
all: test build
|
|
|
|
|
2023-01-30 15:19:16 +01:00
|
|
|
mirror: test build-mirror
|
|
|
|
|
2023-01-21 22:07:27 +01:00
|
|
|
test:
|
|
|
|
deno test --unstable --allow-read utils/test.js
|
|
|
|
|
|
|
|
link-check:
|
|
|
|
lychee spec/**/*.yaml
|
|
|
|
|
|
|
|
format:
|
2023-04-07 00:09:13 +02:00
|
|
|
deno fmt utils/*.js data/*/events/*/*.js README.md
|
2023-01-21 22:07:27 +01:00
|
|
|
|
|
|
|
fmt: format
|
|
|
|
|
2023-04-19 00:47:59 +02:00
|
|
|
build:
|
2023-04-26 08:03:41 +02:00
|
|
|
deno --version
|
2023-02-05 16:21:19 +01:00
|
|
|
deno run --unstable --allow-read --allow-write utils/build.js tag=$(tag)
|
2023-01-23 03:37:00 +01:00
|
|
|
|
2023-01-30 15:19:16 +01:00
|
|
|
build-mirror:
|
|
|
|
deno run --unstable --allow-read --allow-write utils/mirror.js
|
|
|
|
|
2023-02-10 11:30:27 +01:00
|
|
|
sync:
|
|
|
|
deno run --unstable --allow-read --allow-write --allow-net utils/sync.js $(event)
|
2023-02-05 14:53:01 +01:00
|
|
|
|
2023-04-19 00:18:10 +02:00
|
|
|
imgs:
|
|
|
|
deno run --unstable --allow-read --allow-write --allow-run utils/imgs.js $(event)
|
|
|
|
|
2023-02-05 14:53:01 +01:00
|
|
|
tag:
|
2023-04-06 19:11:05 +02:00
|
|
|
deno run --unstable --allow-run utils/tag.js
|
|
|
|
|
|
|
|
inspect:
|
2023-04-26 08:03:41 +02:00
|
|
|
deno run --inspect-brk --unstable --allow-read utils/test.js
|
|
|
|
|
|
|
|
fsync:
|
2023-05-15 15:08:38 +02:00
|
|
|
rm -rf cache/sync
|
2023-05-15 15:06:52 +02:00
|
|
|
@make sync
|
|
|
|
|
|
|
|
twitter-stats:
|
2023-05-22 16:24:26 +02:00
|
|
|
deno run --unstable --allow-read --allow-write --allow-env --allow-net utils/twitter-stats.js $(complete)
|
|
|
|
|
2023-05-22 16:31:14 +02:00
|
|
|
install:
|
2023-05-22 16:48:29 +02:00
|
|
|
deno cache ./utils/*.js
|
2023-05-22 16:39:36 +02:00
|
|
|
|
|
|
|
reinstall:
|
2023-05-22 16:48:29 +02:00
|
|
|
deno cache --reload ./utils/*.js
|