Skip to content

Commit 25711b8

Browse files
committed
ci(make): added include makefile from meshery/meshery and updated Makefile
Signed-off-by: shinigami-777 <chattopadhyaytamaghna@gmail.com>
1 parent 45ddb67 commit 25711b8

2 files changed

Lines changed: 22 additions & 8 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.DEFAULT_GOAL := show-help
2+
# See <https://gist.github.com/klmr/575726c7e05d8780505a> for explanation.
3+
.PHONY: show-help
4+
show-help:
5+
@echo "$$(tput bold)Please specify a build target. The choices are:$$(tput sgr0)";echo;sed -ne"/^## /{h;s/.*//;:d" -e"H;n;s/^## //;td" -e"s/:.*//;G;s/\\n## /---/;s/\\n/ /g;p;}" ${MAKEFILE_LIST}|LC_ALL='C' sort -f|awk -F --- -v n=$$(tput cols) -v i=19 -v a="$$(tput setaf 6)" -v z="$$(tput sgr0)" '{printf"%s%*s%s ",a,-i,$$1,z;m=split($$2,w," ");l=n-i;for(j=1;j<=m;j++){l-=length(w[j])+1;if(l<= 0){l=n-i-length(w[j])-1;printf"\n%*s ",-i," ";}printf"%s ",w[j];}printf"\n";}'|more $(shell test $(shell uname) == Darwin && echo '-Xr')

Makefile

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,31 @@
1-
.PHONY: setup build format-check format-fix
1+
include .github/build/Makefile.show-help.mk
22

3-
## Install Sistent dependencies your local machine.
4-
package-setup:
3+
.PHONY: setup build format-check format-fix lint
4+
5+
## Install Sistent dependencies on your local machine.
6+
setup:
57
npm install
68

79
## Build Sistent components and packages on your local machine.
8-
package-build: setup
10+
build:
911
npm run build
1012

11-
package-build-watch: setup
13+
## Buid Sistent in watch mode.
14+
build-watch:
1215
npm run build:watch
1316

14-
package-format-check:
17+
## Check code formatting
18+
format-check:
1519
npm run format:check
1620

17-
package-format-fix:
21+
## Fix code formatting
22+
format-fix:
1823
npm run format:write
1924

25+
## Run Eslint on your local machine.
26+
lint:
27+
npm run lint
28+
2029
.PHONY: version-patch version-minor version-major
2130

2231
# Create a patch version of packages
@@ -27,6 +36,6 @@ version-patch:
2736
version-minor:
2837
npm run versionup:minor
2938

30-
# Create a major versio of packages
39+
# Create a major version of packages
3140
version-major:
3241
npm run versionup:major

0 commit comments

Comments
 (0)