feat(Makefile): add integrate-export command to automate
Base44 export integration feat(README.md): update Base44 integration workflow for clarity and automation
This commit is contained in:
18
Makefile
18
Makefile
@@ -24,6 +24,23 @@ build:
|
||||
@echo "--> Building application for production..."
|
||||
@npm run build
|
||||
|
||||
# Integrates a new Base44 export into the current project.
|
||||
# It replaces the src directory and the index.html file.
|
||||
# Prerequisite: The new export must be in a folder named '../krow-workforce-web-export-latest'.
|
||||
integrate-export:
|
||||
@echo "--> Integrating new Base44 export..."
|
||||
@if [ ! -d "../krow-workforce-web-export-latest" ]; then \
|
||||
echo "❌ Error: Export directory '../krow-workforce-web-export-latest' not found."; \
|
||||
exit 1; \
|
||||
fi
|
||||
@echo " - Removing old src directory..."
|
||||
@rm -rf src
|
||||
@echo " - Copying new src directory..."
|
||||
@cp -R ../krow-workforce-web-export-latest/src ./src
|
||||
@echo " - Copying new index.html..."
|
||||
@cp ../krow-workforce-web-export-latest/index.html ./index.html
|
||||
@echo "--> Integration complete. Next step: 'make prepare-export'."
|
||||
|
||||
# Applies all necessary patches to a fresh Base44 export to run it locally.
|
||||
# This is the main command for the hybrid workflow.
|
||||
prepare-export:
|
||||
@@ -39,6 +56,7 @@ help:
|
||||
@echo " make install - Installs project dependencies."
|
||||
@echo " make dev - Starts the local development server."
|
||||
@echo " make build - Builds the application for production."
|
||||
@echo " make integrate-export - Integrates a new Base44 export from '../krow-workforce-web-export-latest'."
|
||||
@echo " make prepare-export - Prepares a fresh Base44 export for local use."
|
||||
@echo " make help - Shows this help message."
|
||||
@echo "--------------------------------------------------"
|
||||
|
||||
Reference in New Issue
Block a user