deblan.io-murph/Makefile

43 lines
829 B
Makefile
Raw Normal View History

COMPOSER ?= composer
2022-01-23 17:24:52 +01:00
PHP ?= php8.1
SSH ?= ssh
YARN ?= yarn
2022-02-21 19:51:22 +01:00
NPM_BIN ?= npm
2022-02-21 19:51:22 +01:00
all: build
asset-watch:
2022-02-21 19:51:22 +01:00
$(YARN_BIN)
$(NPM_BIN) run watch
2021-06-15 11:49:44 +02:00
asset: js-routing
2022-02-21 19:51:22 +01:00
$(YARN_BIN)
$(NPM_BIN) run build
2021-06-15 11:49:44 +02:00
2022-02-21 19:51:22 +01:00
js-routing: doctrine-migration
2021-03-29 19:40:55 +02:00
$(PHP) bin/console fos:js-routing:dump --format=json --target=public/js/fos_js_routes.json
clean:
rm -fr var/cache/dev/*
rm -fr var/cache/prod/*
doctrine-migration:
PHP=$(PHP) ./bin/doctrine-migrate
2021-03-31 21:11:25 +02:00
2022-02-21 19:51:22 +01:00
build: clean js-routing asset
2022-03-04 23:56:59 +01:00
.ONESHELL:
font:
cd assets/fonts/deblan/
svg2ttf src/deblan-icon.svg deblan-icon.ttf
ttf2woff deblan-icon.ttf deblan-icon.woff
cat deblan-icon.ttf | ttf2woff2 > deblan-icon.woff2
ttf2eot deblan-icon.ttf deblan-icon.eot
2021-03-31 21:11:25 +02:00
deploy-prod:
mage deploy prod
2022-04-20 23:39:12 +02:00
ssh webdeblanio@deblan.fr "cd blog && test -f .build && make build || true"
2022-01-27 10:10:08 +01:00
deploy-preprod:
mage deploy preprod