Update Makefile to use pnpm for dependency management

- Replaced npm commands with pnpm for installing dependencies and running development scripts, enhancing consistency and performance.
- Adjusted the android-build and frontend-build targets to utilize pnpm for synchronization and building processes.
This commit is contained in:
2025-12-27 12:25:23 -06:00
parent 53d1fdbd21
commit d6bd993abd

View File

@@ -10,18 +10,18 @@ help:
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf " %-15s %s\n", $$1, $$2}' $(MAKEFILE_LIST)
android-build: build
npx cap sync android
pnpm cap sync android
cd android && ./gradlew assembleDebug
mkdir -p $(BUILD_DIR)/android
cp android/app/build/outputs/apk/debug/app-debug.apk $(BUILD_DIR)/android/web-news-debug.apk
dev:
npm install
(command -v air > /dev/null && air || go run main.go & npm run dev)
pnpm install
(command -v air > /dev/null && air || go run main.go & pnpm run dev)
frontend-build:
npm install
npm run build
pnpm install
pnpm run build
build: frontend-build
mkdir -p $(BUILD_DIR)