Add Makefile
This commit is contained in:
parent
948caec79c
commit
730bfdbfda
|
@ -5,3 +5,6 @@ end_of_line = lf
|
||||||
indent_style = space
|
indent_style = space
|
||||||
indent_size = 4
|
indent_size = 4
|
||||||
insert_final_newline = true
|
insert_final_newline = true
|
||||||
|
|
||||||
|
[Makefile]
|
||||||
|
indent_style = tab
|
||||||
|
|
34
Makefile
Normal file
34
Makefile
Normal 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
|
Reference in a new issue