-
-
Notifications
You must be signed in to change notification settings - Fork 65
/
Makefile
115 lines (100 loc) · 2.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
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
110
111
112
113
114
version := $(shell jq -r .version packages/lib/package.json)
serve-all:
pnpm --parallel serve
serve-docs:
pnpm --filter docs dev
serve-playground:
pnpm --filter playground dev
audit:
pnpm audit
audit-fix:
pnpm audit --fix
lint:
pnpm --parallel lint
lint-lib:
pnpm --filter maz-ui lint
lint-cli:
pnpm --filter cli lint
build-all:
pnpm --parallel build
build-docs:
pnpm --filter docs build
build-lib:
pnpm --filter maz-ui build
build-cli:
pnpm --filter cli build
clean:
rm -rf node_modules
clean-lib:
rm -rf packages/lib/node_modules
clean-docs:
rm -rf packages/docs/node_modules
clean-app:
rm -rf packages/app/node_modules
clean-cli:
rm -rf packages/cli/node_modules
clean-all:
make clean clean-lib clean-docs clean-app clean-cli
install:
pnpm install
install-docs:
pnpm --filter docs install
install-cli:
pnpm --filter cli install
install-lib:
pnpm --filter maz-ui install
install-playground:
pnpm --filter playground install
reinstall-all:
make clean-all install
lint-staged: ## lint-staged
npm run pre-commit
lint-staged-lib: ## lint-staged lib
pnpm --filter maz-ui lint-staged
lint-staged-playground: ## lint-staged playground
make --directory=packages/playground lint-staged
lint-staged-cli: ## lint-staged cli
make --directory=packages/cli lint-staged
check-all-dependencies-update:
pnpm update -r --interactive --latest
check-dependencies-update-latest:
pnpm update --interactive --latest
check-docs-dependencies-update-latest:
pnpm update --filter docs --interactive --latest
check-lib-dependencies-update-latest:
pnpm update --filter maz-ui --interactive --latest
check-app-dependencies-update-latest:
pnpm update --filter app --interactive --latest
check-cli-dependencies-update-latest:
pnpm update --filter cli --interactive --latest
test-unit:
pnpm --filter maz-ui test:unit
test-unit-silent:
pnpm --filter maz-ui test:unit --silent
test-unit-watch:
pnpm --filter maz-ui test:unit:watch
test-unit-coverage:
pnpm --filter maz-ui test:unit:coverage
test-unit-coverage-watch:
pnpm --filter maz-ui test:unit:coverage:watch
test-unit-coverage-main:
pnpm --filter maz-ui test:unit:coverage:master
release:
pnpm release:bump-version $(type)
pnpm release:changelogen
print-version:
@echo "Version is: $(version)"
publish-prerelease:
pnpx lerna version prerelease --preid beta
git add -u
git commit -m "chore(release): bump version to $(shell jq -r .version packages/lib/package.json)"
git push origin HEAD
make build-lib
cd packages/lib/dist && pnpm publish --access public --tag beta --no-git-checks
# CLI
create-component-files:
pnpm --filter cli cli create-files -f $(name)
generate-components-docs:
pnpm --filter cli cli generate-components-docs
generate-components-docs-watch:
pnpm --filter cli cli generate-components-docs --watch