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 11SHELL := /bin/bash
22.DEFAULT_GOAL := help
33
4+ # ######################
5+ # HELPER TARGETS
6+ # ######################
7+
48.PHONY : help
59help : # # help target to show available commands with information
610 @grep -E ' ^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST ) | awk ' BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
711
12+ # ######################
13+ # General
14+ # ######################
15+
816.PHONY : install
917install :
1018 npm i
@@ -15,6 +23,10 @@ download:
1523 npm i -g json-serverless
1624 jsonsls
1725
26+ # ######################
27+ # Publishing
28+ # ######################
29+
1830.PHONY : publish-manually
1931publish-manually :
2032ifndef GH_TOKEN
@@ -24,39 +36,49 @@ endif
2436 npx lerna version --include-merged-tags --force-publish --conventional-commits --create-release github
2537 npx lerna publish from-git --yes
2638
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+ # ######################
3642
37- .PHONY : start-test
38- start-test :
43+ .PHONY : start-cli
44+ start-cli :
3945 make install
4046 npx lerna run --scope json-serverless --stream start
4147
42- .PHONY : start-offline
43- start-offline :
48+ # ######################
49+ # TEMPLATE PACKAGE
50+ # ######################
51+
52+ .PHONY : start-template
53+ start-template :
4454 lerna bootstrap
4555 npx lerna run --scope json-serverless-template --stream start
4656
47- .PHONY : start
48- start :
49- npx lerna run --scope json-serverless-lib --stream start
57+ # ######################
58+ # SERVER LIB PACKAGE
59+ # ######################
5060
61+ .PHONY : start-server
62+ start-server :
63+ npx lerna run --scope json-serverless-lib --stream start
5164
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+ # ######################
5668
5769.PHONY : fake-credentials
5870fake-credentials :
5971 mkdir -p ~ /.aws
6072 touch ~ /.aws/credentials
6173 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