-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest-setup.sh
More file actions
69 lines (61 loc) · 1.38 KB
/
test-setup.sh
File metadata and controls
69 lines (61 loc) · 1.38 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#!/bin/bash
echo "Testing LazySlide website setup..."
# Check if required files exist
files=(
"package.json"
"tsconfig.json"
"next.config.js"
"postcss.config.js"
"src/pages/_app.tsx"
"src/pages/index.tsx"
"README.md"
".gitignore"
)
missing=0
for file in "${files[@]}"; do
if [ ! -f "$file" ]; then
echo "❌ Missing file: $file"
missing=$((missing+1))
else
echo "✅ Found file: $file"
fi
done
# Check if required directories exist
directories=(
"src"
"src/pages"
"public"
"public/images"
)
for dir in "${directories[@]}"; do
if [ ! -d "$dir" ]; then
echo "❌ Missing directory: $dir"
missing=$((missing+1))
else
echo "✅ Found directory: $dir"
fi
done
# Check package.json for required dependencies
dependencies=(
"@mantine/core"
"@mantine/hooks"
"@tabler/icons-react"
"next"
"react"
"react-dom"
)
for dep in "${dependencies[@]}"; do
if ! grep -q "\"$dep\":" package.json; then
echo "❌ Missing dependency: $dep"
missing=$((missing+1))
else
echo "✅ Found dependency: $dep"
fi
done
# Summary
if [ $missing -eq 0 ]; then
echo "✅ All required files, directories, and dependencies are present."
echo "✅ Setup is complete. You can now run 'npm install' and 'npm run dev' to start the development server."
else
echo "❌ Missing $missing files, directories, or dependencies. Please check the output above."
fi