forked from SparkPost/heml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
88 lines (72 loc) · 2.79 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
-include .env
export
Red=\033[0;31m
Green=\033[0;32m
Yellow=\033[0;33m
Blue=\033[0;34m
Purple=\033[0;35m
Cyan=\033[0;36m
NC=\033[0m
build:
@echo "$(Green)Building$(NC)"
yarn clean && yarn build
@echo "$(Green)Building done$(NC)"
.PHONY: build
publish: build publish-heml-render publish-heml-styles publish-heml-utils publish-heml-validate publish-heml-parse publish-heml-inline publish-heml-elements publish-heml
@echo "$(Green)Publishing$(NC)"
.PHONY: publish
publish-heml-styles:
@echo "$(Green)Publishing heml-styles$(NC)"
cd packages/heml-styles && yarn npm publish --access=public
@echo "$(Green)Publishing heml-styles done$(NC)"
.PHONY: publish-heml-styles
publish-heml-render:
@echo "$(Green)Publishing heml-render$(NC)"
cd packages/heml-render && yarn npm publish --access=public
@echo "$(Green)Publishing heml-render done$(NC)"
.PHONY: publish-heml-render
publish-heml-utils:
@echo "$(Green)Publishing heml-utils$(NC)"
cd packages/heml-utils && yarn npm publish --access=public
@echo "$(Green)Publishing heml-utils done$(NC)"
.PHONY: publish-heml-utils
publish-heml-validate:
@echo "$(Green)Publishing heml-validate$(NC)"
cd packages/heml-validate && yarn npm publish --access=public
@echo "$(Green)Publishing heml-validate done$(NC)"
.PHONY: publish-heml-validate
publish-heml-parse:
@echo "$(Green)Publishing heml-parse$(NC)"
cd packages/heml-parse && yarn npm publish --access=public
@echo "$(Green)Publishing heml-parse done$(NC)"
.PHONY: publish-heml-parse
publish-heml-inline:
@echo "$(Green)Publishing heml-inline$(NC)"
cd packages/heml-inline && yarn npm publish --access=public
@echo "$(Green)Publishing heml-inline done$(NC)"
.PHONY: publish-heml-inline
publish-heml-elements:
@echo "$(Green)Publishing heml-elements$(NC)"
cd packages/heml-elements && yarn npm publish --access=public
@echo "$(Green)Publishing heml-elements done$(NC)"
.PHONY: publish-heml-elements
publish-heml:
@echo "$(Green)Publishing hems$(NC)"
cd packages/heml && yarn npm publish --access=public
@echo "$(Green)Publishing heml done$(NC)"
.PHONY: publish-heml
bump-patch:
@find ./packages -name "package.json" -not -path "*/node_modules/*" -type f -execdir npm version patch --no-git-tag-version \;
.PHONY: bump-patch
bump-minor:
@find ./packages -name "package.json" -not -path "*/node_modules/*" -type f -execdir npm version minor --no-git-tag-version \;
.PHONY: bump-minor
bump-major:
@find ./packages -name "package.json" -not -path "*/node_modules/*" -type f -execdir npm version major --no-git-tag-version \;
.PHONY: bump-major
upgrade-packages:
@find ./packages -name "package.json" -not -path "*/node_modules/*" -type f -execdir yarn upgrade-interactive \;
.PHONY: upgrade-packages
yarn-packages:
@find ./packages -name "package.json" -not -path "*/node_modules/*" -type f -execdir yarn \;
.PHONY: yarn-packages