Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
NODE_VERSION := $(shell node -v 2>/dev/null)
REQUIRED_NODE := v18.20.8

# Check if Node.js is installed and if the version is correct. If not, exit with an error.
check-node:
@if [ -z "$(NODE_VERSION)" ]; then \
echo "Error: Node.js is not installed. Please install Node.js $(REQUIRED_NOTE)"; \
Expand All @@ -11,47 +12,60 @@ check-node:
exit 1; \
fi

# Install dependencies.
init: check-node
yarn install

# Clean the cache and public directory.
clean:
rm -rf .cache || true
rm -rf public || true
yarn run clean

# Clean the cache and public directory for development.
clean-dev: check-node
make clean || true
make dev

# Run the development server.
dev: check-node
yarn run develop

# Run the development server for the mainnet.
dev-m: check-node
yarn run develop-net

# Clean the cache and public directory for development for the mainnet.
clean-dev-m: check-node
make clean || true
make dev-m

# Format the code.
format: check-node
yarn run format

# Build the project.
build: check-node
yarn run build

# Serve the project.
serve: check-node
yarn run serve

# Serve the project for the mainnet.
serve-m: check-node
yarn run serve-net

# Build and run the project in a Docker container.
docker-buildup: check-node
docker-compose build || true
docker-compose up

# Run the project in a Docker container.
docker-up: check-node
docker-compose up

# Deploy the project to the live server.
# deploy-live:
# git pull upstream master || true
# git push origin master
2 changes: 1 addition & 1 deletion src/data/footer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
{
"Company": "Puretime Property Purchasing",
"Address": "7 Roseberry Court, Roseberry Avenue, Benfleet, United Kingdom, SS7 4HJ",
"Phone": "020 4592 7960",
"Phone": "+44 (0)770 995 4959",
"Email": "support@puretimepropertypurchasing.com"
}
]
Expand Down
Loading