-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
91 lines (76 loc) · 2.69 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
.PHONY: images
docker-image:
docker build -t satisfactory-clips-archive/media-search-archive:npm-latest - < npm.Dockerfile
install:
docker run --rm \
--volume=/$(shell pwd):/media-search-archive \
--user $(shell id -u):$(shell id -g) \
--workdir=/media-search-archive \
composer:2 install
psalm:
docker run --rm \
--volume=/$(shell pwd):/media-search-archive \
--user $(shell id -u):$(shell id -g) \
--workdir=/media-search-archive \
php:8.0-cli ./vendor/bin/psalm --threads=$(nproc)
npm-install:
docker run --rm \
-w /media-search-archive \
--user $(shell id -u):$(shell id -g) \
-v $(shell pwd)/:/media-search-archive \
-v ${HOME}/.npm/:/.npm/ \
-v $(shell pwd)/node_modules--docker/:/media-search-archive/node_modules/ \
satisfactory-clips-archive/media-search-archive:npm-latest npm install
shell-npm:
docker run --rm -it \
-w /media-search-archive \
--user $(shell id -u):$(shell id -g) \
-v $(shell pwd)/:/media-search-archive \
-v ${HOME}/.npm/:/.npm/ \
--entrypoint sh \
satisfactory-clips-archive/media-search-archive:npm-latest
update:
php app/check-yt-shorts.php
php app/app.php
npm run -s typescript
cd . && ./node_modules/.bin/ts-node ./app/title-pattern-check.ts
php app/update-q-and-a.php
php app/part-continued.php
php app/lunr-docs-preload.php
php app/statistics.php
php app/youtube-category-checker.php
cd . && ./node_modules/.bin/gulp charts 11ty-data
update-playlists-cache:
npm run -s update-playlists-html-cache
php ./app/extract-last-updated-date-for-playlists-from-html-cache.php
php ./app/cleanup-playlist-api-cache.php
build: tweets update build-post-update
tweets:
npm run -s tweets
build-post-update: topics images eleventy build-post-update--actually-build
topics:
cd . && ./node_modules/.bin/gulp topics
eleventy:
cd . \
&& ./node_modules/.bin/eleventy --config=./.eleventy.tweets.js \
&& ./node_modules/.bin/eleventy \
&& ./node_modules/.bin/eleventy --config=./.eleventy.pages.js \
&& ./node_modules/.bin/eleventy --config=./.eleventy.pages-alt-layout.js
build-post-update--actually-build:
cd . && ./node_modules/.bin/gulp build
images-prep:
docker run --rm \
-w /media-search-archive \
--user $(shell id -u):$(shell id -g) \
-v $(shell pwd)/:/media-search-archive \
-v ${HOME}/.npm/:/.npm/ \
-v $(shell pwd)/node_modules--docker/:/media-search-archive/node_modules/ \
satisfactory-clips-archive/media-search-archive:npm-latest ./node_modules/.bin/gulp \
images-svg--background--flannel \
images-svg--background--golf \
images-svg--background--vulkan \
images-svg--background--final-fantasy
images:
cd . && ./node_modules/.bin/eleventy --config=./.eleventy.images.js
cd . && ./node_modules/.bin/gulp \
images-svg