@@ -12,15 +12,15 @@ SUBDIRS = config
1212domserver : composer-dump-autoload
1313
1414# Install PHP dependencies
15- composer-dependencies :
15+ composer-dependencies : node-dependencies
1616ifeq (, $(shell command -v composer 2> /dev/null) )
1717 $(error "'composer' command not found in $(PATH), install it via your package manager or https://getcomposer.org/download/")
1818endif
1919# We use --no-scripts here because at this point the autoload.php file is
2020# not generated yet, which is needed to run the post-install scripts.
2121 composer $(subst 1,-q,$(QUIET)) install --prefer-dist -o -a --no-scripts --no-plugins
2222
23- composer-dependencies-dev :
23+ composer-dependencies-dev : node-dependencies
2424 composer $(subst 1,-q,$(QUIET ) ) install --prefer-dist --no-scripts --no-plugins
2525
2626# Dump autoload dependencies (including plugins)
@@ -36,6 +36,13 @@ vendor/autoload_runtime.php:
3636composer-dump-autoload-dev :
3737 composer $(subst 1,-q,$(QUIET ) ) dump-autoload
3838
39+ node-dependencies :
40+ ifeq (, $(shell command -v yarn || command -v yarnpkg 2> /dev/null) )
41+ $(error "neither 'yarnpkg' nor 'yarn' command found in $(PATH), install it via your package manager or https://yarnpkg.com/cli/node")
42+ endif
43+ @YARN_CMD=$(shell command -v yarn || command -v yarnpkg); \
44+ $$YARN_CMD install
45+
3946# Run Symfony in dev mode (for maintainer-mode):
4047.env.local :
4148 @echo " Creating file '$@ '..."
0 commit comments