File tree Expand file tree Collapse file tree 1 file changed +43
-21
lines changed Expand file tree Collapse file tree 1 file changed +43
-21
lines changed Original file line number Diff line number Diff line change 1
1
SHELL := /bin/bash
2
2
.DEFAULT_GOAL := help
3
3
4
+ # ######################
5
+ # HELPER TARGETS
6
+ # ######################
7
+
4
8
.PHONY : help
5
9
help : # # help target to show available commands with information
6
10
@grep -E ' ^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST ) | awk ' BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
7
11
12
+ # ######################
13
+ # General
14
+ # ######################
15
+
8
16
.PHONY : install
9
17
install :
10
18
npm i
@@ -15,6 +23,10 @@ download:
15
23
npm i -g json-serverless
16
24
jsonsls
17
25
26
+ # ######################
27
+ # Publishing
28
+ # ######################
29
+
18
30
.PHONY : publish-manually
19
31
publish-manually :
20
32
ifndef GH_TOKEN
@@ -24,39 +36,49 @@ endif
24
36
npx lerna version --include-merged-tags --force-publish --conventional-commits --create-release github
25
37
npx lerna publish from-git --yes
26
38
27
- .PHONY : publish
28
- publish :
29
- ifndef GH_TOKEN
30
- $(error GH_TOKEN is undefined)
31
- endif
32
- make install
33
- git status
34
- npx lerna version patch -m "chore(release): Travis CI update [ci skip]" --include-merged-tags --force-publish --conventional-commits --create-release github --yes --git-remote pub
35
- npx lerna publish from-git --yes
39
+ # ######################
40
+ # CLI PACKAGE
41
+ # ######################
36
42
37
- .PHONY : start-test
38
- start-test :
43
+ .PHONY : start-cli
44
+ start-cli :
39
45
make install
40
46
npx lerna run --scope json-serverless --stream start
41
47
42
- .PHONY : start-offline
43
- start-offline :
48
+ # ######################
49
+ # TEMPLATE PACKAGE
50
+ # ######################
51
+
52
+ .PHONY : start-template
53
+ start-template :
44
54
lerna bootstrap
45
55
npx lerna run --scope json-serverless-template --stream start
46
56
47
- .PHONY : start
48
- start :
49
- npx lerna run --scope json-serverless-lib --stream start
57
+ # ######################
58
+ # SERVER LIB PACKAGE
59
+ # ######################
50
60
61
+ .PHONY : start-server
62
+ start-server :
63
+ npx lerna run --scope json-serverless-lib --stream start
51
64
52
- .PHONY : deploy-test
53
- deploy-test :
54
- make install
55
- npx lerna run --scope json-serverless --stream test:create-stack
65
+ # ######################
66
+ # CICD COMMANDS
67
+ # ######################
56
68
57
69
.PHONY : fake-credentials
58
70
fake-credentials :
59
71
mkdir -p ~ /.aws
60
72
touch ~ /.aws/credentials
61
73
echo -e " [default]\naws_access_key_id=xxxx\naws_secret_access_key=xxx" > ~ /.aws/credentials
62
- echo -e " [profile default]\nregion=eu-central-1" > ~ /.aws/config
74
+ echo -e " [profile default]\nregion=eu-central-1" > ~ /.aws/config
75
+
76
+ .PHONY : publish
77
+ publish :
78
+ ifndef GH_TOKEN
79
+ $(error GH_TOKEN is undefined)
80
+ endif
81
+ make install
82
+ git status
83
+ npx lerna version patch -m "chore(release): Travis CI update [ci skip]" --include-merged-tags --force-publish --conventional-commits --create-release github --yes --git-remote pub
84
+ npx lerna publish from-git --yes
You can’t perform that action at this time.
0 commit comments