update makefile rules: using npm binary instead of webpack binary
This commit is contained in:
parent
f660f12825
commit
901f5ba25e
19
Makefile
19
Makefile
|
@ -1,25 +1,20 @@
|
|||
COMPOSER_BIN ?= composer
|
||||
PHP_BIN ?= php8.1
|
||||
SSH_BIN ?= ssh
|
||||
WEBPACK_BIN ?= webpack
|
||||
YARN_BIN ?= yarn
|
||||
NPM_BIN ?= npm
|
||||
|
||||
all: dep asset clean
|
||||
|
||||
.ONESHELL:
|
||||
dep:
|
||||
$(COMPOSER_BIN) update --ignore-platform-reqs
|
||||
$(COMPOSER_BIN) install --ignore-platform-reqs
|
||||
$(YARN_BIN)
|
||||
all: build
|
||||
|
||||
asset-watch:
|
||||
$(WEBPACK_BIN) -w
|
||||
$(YARN_BIN)
|
||||
$(NPM_BIN) run watch
|
||||
|
||||
asset: js-routing
|
||||
$(YARN_BIN)
|
||||
$(WEBPACK_BIN)
|
||||
$(NPM_BIN) run build
|
||||
|
||||
js-routing:
|
||||
js-routing: doctrine-migration
|
||||
$(PHP_BIN) bin/console fos:js-routing:dump --format=json --target=public/js/fos_js_routes.json
|
||||
|
||||
clean:
|
||||
|
@ -28,3 +23,5 @@ clean:
|
|||
|
||||
doctrine-migration:
|
||||
PHP=$(PHP_BIN) ./bin/doctrine-migrate
|
||||
|
||||
build: js-routing asset
|
||||
|
|
Loading…
Reference in a new issue