-
Notifications
You must be signed in to change notification settings - Fork 42
/
Makefile
109 lines (94 loc) · 1.99 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
all: fix test audit build
# Install dependencies
#
# This does not presently include Rust (since that is uneccessary),
# but ensures install of the top level NPM workspaces,
# and Python module.
install:
make -C ts -B install
make -C node -B install
make -C python -B install
make -C web -B install
make -C vscode -B install
# Make formatting and linting fixes
fix:
make -C rust fix
make -C ts fix
make -C node fix
make -C python/stencila fix
make -C web fix
make -C vscode fix
# Run linting checks
lint:
make -C rust lint
make -C ts lint
make -C node lint
make -C python/stencila lint
make -C web lint
make -C vscode lint
# Run tests
test:
make -C rust test
make -C ts test
make -C node test
make -C python/stencila test
make -C test test
# Run tests with coverage
cover:
make -C rust cover
make -C ts test
make -C node cover
make -C python/stencila cover
# Run and collate benchmarks
bench:
make -C rust bench
make -C node bench
make -C python/stencila bench
make -C docs/develop/benchmarks update
# List outdated dependencies
outdated:
make -C rust outdated
make -C ts outdated
make -C node outdated
make -C python/stencila outdated
make -C web outdated
# Run accessibility checks
a11y:
make -C rust a11y
# Run package publishing checks
pubcheck:
make -C ts pubcheck
make -C node pubcheck
# Audit dependencies
audit:
make -C rust audit
make -C ts audit
make -C node audit
make -C python/stencila audit
make -C web audit
# Build packages
build:
make -C rust build
make -C ts build
make -C node build
make -C python/stencila build
make -C web build
make -C vscode build
# Build Docker image
docker:
docker build --tag stencila/stencila .
# Generate generated source and docs
generated:
make -C rust generated
# Generate examples in alternative formats
examples:
make -C examples
.PHONY: examples
# Clean up development artifacts
clean:
make -C rust clean
make -C ts clean
make -C node clean
make -C python/stencila clean
make -C web clean
make -C vscode clean