forked from YesWiki/yeswiki
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
29 lines (22 loc) · 1.15 KB
/
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
# -- Setup ——
COMPOSER = composer
GIT = git
YARN = yarn
## —— Yeswiki Makefile ——
help: ## Outputs this help screen
@grep -E '(^[a-zA-Z0-9_-]+:.*?##.*$$)|(^##)' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}{printf "\033[32m%-30s\033[0m %s\n", $$1, $$2}' | sed -e 's/\[32m##/[33m/'
## —— Project —————————————
install: composer-install yarn-install ## Install vendors
## —— Composer ————————————
composer-install: composer.lock ## Install Composer vendors according to the current composer.lock file
$(COMPOSER) install
composer-update: composer.json ## Update vendors according to the composer.json file
$(COMPOSER) update
## —— Yarn —————————————————
yarn-install: yarn.lock ## Install npm vendors according to the current yarn.lock file
$(YARN) install
## —— Docker ——————————————
## use the docker/ folder README.md to find commands to launch docker
## —— Tests ———————————————
test: ## Launch unit tests
./vendor/bin/phpunit --do-not-cache-result --stderr tests