From b362703d195a151d31b271142db0cf3d9306908b Mon Sep 17 00:00:00 2001 From: dom111 Date: Sat, 18 May 2024 20:43:27 +0100 Subject: [PATCH] Add missing `npm install` step. --- Makefile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 6324613..1358832 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,11 @@ SHELL = /bin/bash .PHONY: build -build: docker-compose.override.yml +build: docker-compose.override.yml node_modules docker-compose run --rm web npm run build .PHONY: test -test: docker-compose.override.yml +test: docker-compose.override.yml node_modules docker-compose run --rm test npm run test docker-compose.override.yml: @@ -15,5 +15,8 @@ docker-compose.override.yml: @echo " web:" >> docker-compose.override.yml @echo " user: `id -u`:`id -g`" >> docker-compose.override.yml -dist/js/app.js: -dist/js/app.js: build \ No newline at end of file +dist/js/app.js: node_modules +dist/js/app.js: build + +node_modules: + docker-compose run --rm web npm install