-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
53 lines (36 loc) · 1.03 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
CODE_FOLDERS = bin/ src/ tests/
DIST_FOLDER = dist
autossegredos: dist
npx ts-node ./bin/autossegredos.ts > $(DIST_FOLDER)/autossegredos.xml
build: autossegredos liquipedia teamspeak
cp 404.html $(DIST_FOLDER)/
check:
npx prettier --check $(CODE_FOLDERS)
check-updates:
npx npm-check-updates -u -t minor
clean:
rm -rf $(DIST_FOLDER)/
deploy:
./deploy.sh
dist:
mkdir -p $(DIST_FOLDER)
lint:
DEBUG=eslint:cli-engine npx eslint $(CODE_FOLDERS)
liquipedia: dist
npx ts-node ./bin/liquipedia.ts > $(DIST_FOLDER)/liquipedia.xml
oldnewthing: dist
npx ts-node ./bin/oldnewthing.ts > $(DIST_FOLDER)/oldnewthing.xml
prettier:
npx prettier --write $(CODE_FOLDERS)
serve:
BROWSER=none npx wrangler pages dev $(DIST_FOLDER)/
sourcegraph: dist
npx ts-node ./bin/sourcegraph.ts > $(DIST_FOLDER)/sourcegraph.xml
teamspeak: dist
npx ts-node ./bin/teamspeak.ts > $(DIST_FOLDER)/teamspeak.xml
test:
npx mocha -r ts-node/register src/**/*.test.ts
test-integration:
npx mocha -r ts-node/register tests/integration.test.ts
tsc:
npx tsc --noEmit