Add Makefile

This commit is contained in:
Oliver Davies 2018-01-31 00:03:41 +00:00
parent 948caec79c
commit 730bfdbfda
2 changed files with 37 additions and 0 deletions

34
Makefile Normal file
View file

@ -0,0 +1,34 @@
ENV := dev
PORT := 8000
.PHONY: test
all: init build
clean:
rm -rf \
node_modules \
output_* \
source/assets/css \
source/assets/fonts \
vendor
init:
composer install
yarn install
generate-assets
generate-assets:
yarn run encore dev
build:
vendor/bin/sculpin generate --env=$(ENV)
serve:
vendor/bin/sculpin generate --server --env=$(ENV) --port=$(PORT)
watch:
vendor/bin/sculpin generate --server --env=$(ENV) --port=$(PORT) --watch
test:
vendor/bin/phpunit