forked from hypothesis/client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
77 lines (63 loc) · 1.74 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
.PHONY: default
default: help
.PHONY: help
help:
@echo "make help Show this help message"
@echo "make dev Run the app in the development server"
@echo "make lint Run the code linter(s) and print any warnings"
@echo "make checkformatting Check code formatting"
@echo "make format Automatically format code"
@echo "make test Run the unit tests once"
@echo "make servetests Start the unit test server on localhost"
@echo "make sure Make sure that the formatter, linter, tests, etc all pass"
@echo "make docs Build docs website and serve it locally"
@echo "make checkdocs Crash if building the docs website fails"
@echo "make clean Delete development artefacts (cached files, "
@echo " dependencies, etc)"
.PHONY: dev
dev: build/manifest.json
node_modules/.bin/gulp watch
.PHONY: test
test: node_modules/.uptodate
ifdef FILTER
yarn test --grep $(FILTER)
else
yarn test
endif
.PHONY: servetests
servetests: node_modules/.uptodate
ifdef FILTER
node_modules/.bin/gulp test-watch --grep $(FILTER)
else
node_modules/.bin/gulp test-watch
endif
.PHONY: lint
lint: node_modules/.uptodate
yarn run lint
yarn run typecheck
.PHONY: docs
docs: python
tox -e py36-docs
.PHONY: checkdocs
checkdocs: python
tox -e py36-checkdocs
.PHONY: clean
clean:
rm -f node_modules/.uptodate
rm -rf build
.PHONY: format
format:
yarn run format
.PHONY: checkformatting
checkformatting:
yarn run checkformatting
.PHONY: sure
sure: checkformatting lint test
.PHONY: python
python:
@./bin/install-python
build/manifest.json: node_modules/.uptodate
yarn run build
node_modules/.uptodate: package.json yarn.lock
yarn install
@touch $@