diff --git a/Makefile b/Makefile index 6324613..6f66681 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: +node_modules: docker-compose run --rm web npm install \ No newline at end of file