-
Notifications
You must be signed in to change notification settings - Fork 278
Version control javascript libraries with NPM #3124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,6 +8,7 @@ | |
| /var/log/* | ||
| !var/log/.gitkeep | ||
| /vendor/ | ||
| /node_modules/ | ||
|
|
||
| ###> phpunit/phpunit ### | ||
| /phpunit.xml | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,6 +11,8 @@ SUBDIRS = config | |
|
|
||
| domserver: composer-dump-autoload | ||
|
|
||
| dependencies: composer-dependencies node-dependencies | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These should (all, also
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hmmm, I see that
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think I already renamed the |
||
|
|
||
| # Install PHP dependencies | ||
| composer-dependencies: | ||
| ifeq (, $(shell command -v composer 2> /dev/null)) | ||
|
|
@@ -20,6 +22,8 @@ endif | |
| # not generated yet, which is needed to run the post-install scripts. | ||
| composer $(subst 1,-q,$(QUIET)) install --prefer-dist -o -a --no-scripts --no-plugins | ||
|
|
||
| dependencies-dev: composer-dependencies-dev node-dependencies | ||
|
|
||
| composer-dependencies-dev: | ||
| composer $(subst 1,-q,$(QUIET)) install --prefer-dist --no-scripts --no-plugins | ||
|
|
||
|
|
@@ -36,6 +40,13 @@ vendor/autoload_runtime.php: | |
| composer-dump-autoload-dev: | ||
| composer $(subst 1,-q,$(QUIET)) dump-autoload | ||
|
|
||
| node-dependencies: | ||
| ifeq (, $(shell command -v yarn || command -v yarnpkg 2> /dev/null)) | ||
| $(error "neither 'yarnpkg' nor 'yarn' command found in $(PATH), install it via your package manager or https://yarnpkg.com/cli/node") | ||
| endif | ||
| @YARN_CMD=$(shell command -v yarn || command -v yarnpkg); \ | ||
| $$YARN_CMD install | ||
|
|
||
| # Run Symfony in dev mode (for maintainer-mode): | ||
| .env.local: | ||
| @echo "Creating file '$@'..." | ||
|
|
@@ -58,7 +69,7 @@ install-domserver: | |
| # This must be done first to install with the rest. | ||
| $(MAKE) copy-bundle-assets | ||
| $(INSTALL_DIR) $(DESTDIR)$(domserver_webappdir); | ||
| for d in bin config migrations public resources src templates tests vendor; do \ | ||
| for d in bin config migrations public resources src templates tests vendor node_modules; do \ | ||
| $(call install_tree,$(DESTDIR)$(domserver_webappdir),$$d) ; \ | ||
| done | ||
| # Add Symlink to Symfony console that is in the standard path | ||
|
|
@@ -78,5 +89,5 @@ maintainer-clean-l: | |
| done ; \ | ||
| done | ||
|
|
||
| .PHONY: composer-dump-autoload composer-dump-autoload-dev \ | ||
| copy-bundle-assets | ||
| .PHONY: composer-dump-autoload composer-dump-autoload-dev copy-bundle-assets \ | ||
| composer-dependencies composer-dependencies-dev node-dependencies | ||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding the phony targets here is not strictly necessary, as recursive targets are already marked phony in https://github.com/DOMjudge/domjudge/blob/main/Makefile.global#L94, but this doesn't hurt.