-
Notifications
You must be signed in to change notification settings - Fork 178
/
Makefile
51 lines (38 loc) · 1 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
# opentrons component library makefile
# dev server port
port ?= 6060
# These variables can be overriden when make is invoked to customize the
# behavior of jest
tests ?= src
cov_opts ?= --coverage=true
test_opts ?=
# standard targets
#####################################################################
.PHONY: all
all: clean dist
.PHONY: clean
clean:
cd .. && yarn shx rm -rf storybook-static
# artifacts
#####################################################################
.PHONY: dist
dist:
cd .. && yarn sb build
.PHONY: lib
lib: export NODE_ENV := production
lib:
yarn vite build
.PHONY: build-ts
build-ts:
yarn tsc --build --emitDeclarationOnly
# development
#####################################################################
.PHONY: dev
dev:
cd .. && yarn sb dev --port $(port)
.PHONY: test
test:
$(MAKE) -C .. test-js-components tests="$(tests)" test_opts="$(test_opts)"
.PHONY: test-cov
test-cov:
make -C .. test-js-components tests=$(tests) test_opts="$(test_opts)" cov_opts="$(cov_opts)"