Skip to content

Commit ce6edef

Browse files
author
Fuss Florian (uid10804)
committed
docs(makefile): update command descriptions
1 parent a9db152 commit ce6edef

File tree

1 file changed

+43
-21
lines changed

1 file changed

+43
-21
lines changed

Makefile

Lines changed: 43 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
11
SHELL := /bin/bash
22
.DEFAULT_GOAL := help
33

4+
#######################
5+
# HELPER TARGETS
6+
#######################
7+
48
.PHONY: help
59
help: ## 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
917
install:
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
1931
publish-manually:
2032
ifndef 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
5870
fake-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

0 commit comments

Comments
 (0)