-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
38 lines (29 loc) · 1.2 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
30
31
32
33
34
35
36
37
38
.DEFAULT_GOAL := help
build: ## build develoment environment with laradock
if ! [ -f .env ];then cp .env.example .env;fi
docker-compose build
docker-compose run --rm php composer install
docker-compose run --rm php php artisan key:generate
docker-compose run --rm php php artisan migrate
docker-compose run --rm php php artisan db:seed
docker-compose run --rm yarn install
docker-compose run --rm yarn run dev
serve: ## Run Server
docker-compose up php
tinker: ## Run tinker
docker-compose run --rm php php artisan tinker
composer: ## Entry for Composer command
docker-compose run --rm php composer install
ide-helper: ## Make ide-helper files
docker-compose run --rm php php artisan ide-helper:generate
docker-compose run --rm php php artisan ide-helper:models -N
docker-compose run --rm php php artisan ide-helper:meta
yarn-install: ## Run yarn install
docker-compose run --rm node yarn install
yarn-dev: ## Entry for yarn command
docker-compose run --rm node yarn run dev
yarn-watch: ## Run yarn watch
docker-compose run --rm node yarn run watch
.PHONY: help
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'