-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.sh
More file actions
executable file
·45 lines (42 loc) · 1016 Bytes
/
Copy pathrun.sh
File metadata and controls
executable file
·45 lines (42 loc) · 1016 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/bash
# run.sh - Helper script for Linux/macOS
echo "========================================"
echo " Project Helper Script (Linux/macOS) "
echo "========================================"
case "$1" in
install)
echo "Installing dependencies..."
npm install
;;
build)
echo "Building project..."
npm run build
;;
dev)
echo "Starting development server..."
npm run dev
;;
docker)
echo "Running in Docker..."
docker-compose up --build
;;
test)
echo "Running tests..."
npm run test
;;
lint)
echo "Running linter..."
npm run lint
;;
*)
echo "Usage: ./run.sh {install|build|dev|docker|test|lint}"
echo ""
echo " install - Install Node.js dependencies"
echo " build - Build the project for production"
echo " dev - Run local development server"
echo " docker - Build and run in Docker container"
echo " test - Run tests"
echo " lint - Run linter"
exit 1
;;
esac