From d2abf1e006a8f3285328625f324b2466710807e0 Mon Sep 17 00:00:00 2001 From: Sawyer Date: Thu, 18 Apr 2024 09:49:46 -0700 Subject: [PATCH] Adjust Docker NPM install script name --- app/Makefile | 3 +-- app/README.md | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/app/Makefile b/app/Makefile index 89d4650b..b4d39202 100644 --- a/app/Makefile +++ b/app/Makefile @@ -36,7 +36,7 @@ release-build: ################################################## # Local development ################################################## -init: # Initialize the project for local development +container-npm-install: # Install NPM packages from within Docker @# Install npm packages using Docker if node_modules doesn't exist @if [ ! -d "node_modules" ]; then \ echo "Installing npm packages using Docker. This can take several minutes without output..."; \ @@ -45,7 +45,6 @@ init: # Initialize the project for local development echo "node_modules directory already exists, skipping npm install"; \ fi - dev: # Run the Next.js local dev server in Docker docker compose up --detach nextjs docker compose logs --follow nextjs diff --git a/app/README.md b/app/README.md index f404e4cc..83434017 100644 --- a/app/README.md +++ b/app/README.md @@ -64,9 +64,9 @@ Alternatively, you can run the application in a Docker container. From the `app/` directory: -1. (Optional) Install Node packages to your local `node_modules` directory so tools like VSCode can provide intellisense and type checking +1. (Optional) If your machine doesn't include Node, and you'd like tools like VS Code to provide intellisense & type checking, run the following command to install the packages locally: ```bash - make init + make container-npm-install ``` 1. Run the local development server ```bash