Skip to content

Commit 72c92f9

Browse files
Merge pull request #15 from kimchanhyung98/chore/makefile
chore(build): improved Makefile reliability and ensure all dependencies
2 parents 9cd9fcb + 9ab8b03 commit 72c92f9

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,12 @@ init: ## Setup Project environment (Docker required)
5252
echo "Copying .env.example to .env"; \
5353
cp .env.example .env; \
5454
fi; \
55-
echo "Starting Docker containers"; \
56-
docker compose up -d; \
55+
if [ -f docker-compose.yml ]; then \
56+
echo "Starting Docker containers"; \
57+
docker compose up -d; \
58+
fi; \
5759
echo "Installing npm packages"; \
58-
docker run --rm -v $$(pwd):/app -w /app node:22-alpine npm install; \
59-
echo "Running database migrations and seeders"; \
60-
docker compose exec laravel.test php artisan migrate --seed
60+
docker run --rm -v $$(pwd):/app -w /app node:22-alpine sh -c "apk add --no-cache git && npm install"; \
6161

6262
%:
6363
@:

package-lock.json

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)