-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
75 lines (65 loc) · 1.95 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
export PATH := node_modules/.bin/:$(PATH)
build:
@turbo run build
dev:
@turbo run dev
start: start-support
@node server.js
start-nodemon: start-support
@nodemon -L server.js
start-workspace-host: start-support kill-running-workspaces
@node workspace_host/interface.js
kill-running-workspaces:
@docker/kill_running_workspaces.sh
start-support: start-postgres start-redis start-s3rver
start-postgres:
@docker/start_postgres.sh
start-redis:
@docker/start_redis.sh
start-s3rver:
@docker/start_s3rver.sh
test: test-js test-python
test-js: test-prairielearn test-prairielib test-grader-host test-packages
test-prairielearn: start-support
@nyc --reporter=lcov mocha --full-trace tests/index.js
test-prairielib:
@jest prairielib/
test-grader-host:
@jest grader_host/
test-nocoverage: start-support
@mocha tests/index.js
test-packages:
@turbo run test
test-python:
# `pl_unit_test.py` has an unfortunate file name - it matches the pattern that
# pytest uses to discover tests, but it isn't actually a test file itself. We
# explicitly exclude it here.
@python3 -m pytest --ignore graders/python/python_autograder/pl_unit_test.py
lint: lint-js lint-python lint-html lint-links
lint-js:
@eslint --ext js "**/*.js"
@prettier --check "**/*.{js,ts,md}"
lint-python:
@python3 -m flake8 ./
lint-html:
@htmlhint "testCourse/**/question.html" "exampleCourse/**/question.html"
lint-links:
@node tools/validate-links.mjs
format: format-js
format-js:
@eslint --ext js --fix "**/*.js"
@prettier --write "**/*.{js,ts,md}"
typecheck: typecheck-js typecheck-python
typecheck-js:
@tsc
typecheck-python:
@pyright
depcheck:
-depcheck --ignore-patterns=public/**
@echo WARNING:
@echo WARNING: Before removing an unused package, also check that it is not used
@echo WARNING: by client-side code. Do this by running '"git grep <packagename>"'
@echo WARNING:
@echo WARNING: Note that many devDependencies will show up as unused. This is not
@echo WARNING: a problem.
@echo WARNING: