Files
Krow-workspace/Makefile

46 lines
1.7 KiB
Makefile

# KROW Workforce Project Makefile
# -------------------------------
# This Makefile provides a central place for common project commands.
# It is designed to be the main entry point for developers.
# Use .PHONY to declare targets that are not files, to avoid conflicts.
.PHONY: install dev build prepare-export help
# The default command to run if no target is specified (e.g., just 'make').
.DEFAULT_GOAL := help
# Installs all project dependencies using npm.
install:
@echo "--> Installing project dependencies..."
@npm install
# Starts the local development server.
dev:
@echo "--> Starting development server on http://localhost:5173 ..."
@npm run dev
# Builds the application for production.
build:
@echo "--> Building application for production..."
@npm run build
# Applies all necessary patches to a fresh Base44 export to run it locally.
# This is the main command for the hybrid workflow.
prepare-export:
@echo "--> Preparing fresh Base44 export for local development..."
@node scripts/prepare-export.js
@echo "--> Preparation complete. You can now run 'make dev'."
# Shows this help message.
help:
@echo "--------------------------------------------------"
@echo " KROW Workforce - Available Makefile Commands"
@echo "--------------------------------------------------"
@echo " make install - Installs project dependencies."
@echo " make dev - Starts the local development server."
@echo " make build - Builds the application for production."
@echo " make prepare-export - Prepares a fresh Base44 export for local use."
@echo " make help - Shows this help message."
@echo "--------------------------------------------------"