From 36fde9530ccc35977bfe7a265f50b3076f483f20 Mon Sep 17 00:00:00 2001 From: rhenck <richard.henck@iqb.hu-berlin.de> Date: Wed, 2 Jun 2021 13:00:27 +0200 Subject: [PATCH] Add Makefile targets for package management One is for retrieving node_modules from container and copy the contents into a local directory. The other is for installing new packages into container. This will autmatically be synced to local. --- Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Makefile b/Makefile index 2f7a2692..1484ee78 100644 --- a/Makefile +++ b/Makefile @@ -22,6 +22,15 @@ test-e2e: init-dev-config: cp src/environments/environment.dev.ts src/environments/environment.ts +copy-packages: + mkdir node_modules + docker cp testcenter-frontend-dev:/app/node_modules/. node_modules + +# Use parameter packages=<package-name> to install new package +# Example: make install-package packages="leftpad babel" +install-package: + docker exec testcenter-frontend-dev npm install $(packages) + tag-major: scripts/new_version.py major -- GitLab