2018-01-31 00:03:41 +00:00
|
|
|
ENV := dev
|
|
|
|
PORT := 8000
|
|
|
|
|
|
|
|
.PHONY: test
|
|
|
|
|
2018-01-31 07:12:31 +00:00
|
|
|
all: init generate-assets build
|
2018-01-31 00:03:41 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf \
|
|
|
|
node_modules \
|
|
|
|
output_* \
|
2018-02-13 18:27:31 +00:00
|
|
|
source/assets \
|
2018-01-31 00:03:41 +00:00
|
|
|
vendor
|
|
|
|
|
|
|
|
init:
|
|
|
|
composer install
|
|
|
|
yarn install
|
|
|
|
|
|
|
|
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
|