This repository was archived by the owner on Dec 16, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
72 lines (60 loc) · 1.82 KB
/
Copy pathMakefile
File metadata and controls
72 lines (60 loc) · 1.82 KB
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
b ?= master
all: install
build:
@yarn --silent lerna run build --stream
changed:
@yarn --silent lerna changed
clean: clean-lib clean-modules clean-coverage clean-buildinfo
clean-buildinfo:
@find packages/ -name tsconfig.tsbuildinfo -exec rm -rf {} +
clean-coverage:
@rm -rf coverage/
@find packages/ -name coverage -type d -exec rm -rf {} +
clean-lib:
@find packages/ -name lib -type d -exec rm -rf {} +
clean-modules:
@rm -rf node_modules/
@find packages/ -name node_modules -type d -exec rm -rf {} +
generate:
@yarn --silent genjs
install: install-root install-packages build
install-packages:
@yarn --silent lerna bootstrap
install-root:
@yarn --silent install
new:
@yarn --silent yo ./packages/generator-package 2>/dev/null
package-build:
@cd packages/$(p) && yarn --silent build
package-build-storybook:
@cd packages/$(p) && yarn --silent build-storybook
package-clear-test:
@cd packages/$(p) && yarn --silent jest --clearCache
package-generate-svg-components:
@cd packages/$(p) && yarn --silent generate-svg-components
package-install:
@yarn --silent lerna bootstrap --scope @ohoareau/$(p)
package-storybook:
@cd packages/$(p) && yarn --silent story
package-test: package-build
@cd packages/$(p) && yarn --silent test --coverage --detectOpenHandles
pr:
@hub pull-request -b $(b)
publish:
@yarn --silent lerna publish
test: build test-only
test-local:
@yarn --silent test --coverage --detectOpenHandles
test-only:
@yarn --silent test --runInBand --coverage --detectOpenHandles
.PHONY: all \
build \
changed \
clean clean-buildinfo clean-coverage clean-lib clean-modules \
generate \
install install-packages install-root \
new \
package-build package-build-storybook package-clear-test package-generate-svg-components package-install package-storybook package-test \
pr \
publish \
test test-local test-only