-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·47 lines (34 loc) · 1022 Bytes
/
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
.DEFAULT_GOAL := help
.PHONY: help
help: ## show this help
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
clear:
@rm -rf node_modules
@rm -rf packages/cache/node_modules
@rm -rf packages/logger/node_modules
install:
@yarn
@yarn lerna bootstrap
test:
@yarn test
lint:
@yarn test
format:
@yarn format
check: format lint test
full-check: clear install check
test-pre-commit:
./.git/hooks/pre-commit
codeship-encrypt: ## encrypt build_args (codeship)
jet encrypt codeship/build_args codeship/build_args.encrypted
codeship-test: ## Test codeship steps
jet steps --push
docker-build:
@docker build -f codeship/docker/builder/Dockerfile \
-t adamatti-libs:latest \
--build-arg NPM_REGISTRY_URL="${NPM_REGISTRY_URL}" \
--build-arg NPM_AUTH_TOKEN="${NPM_AUTH_TOKEN}" \
--build-arg GITHUB_TOKEN="${GITHUB_TOKEN}" \
.
docker-sh: docker-build ## Build docker, sh inside it
docker run -it adamatti-libs sh