-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpush.ps1
More file actions
84 lines (75 loc) · 2.87 KB
/
Copy pathpush.ps1
File metadata and controls
84 lines (75 loc) · 2.87 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
$ErrorActionPreference = "Stop"
git init
git add .gitignore
git commit -m "chore: initial commit and ignore setup"
$allFiles = git ls-files --others --exclude-standard
$totalFiles = $allFiles.Count
Write-Host "Found $totalFiles files to commit."
$messages = @(
"feat: initialize MERN backend structure",
"feat: setup express server and middleware",
"feat: connect to MongoDB database",
"feat: implement User model schema",
"feat: create authentication controllers",
"feat: setup JWT token generation",
"feat: build Chat model schema",
"feat: implement one-to-one chat creation",
"feat: add group chat functionality",
"feat: implement message model and schemas",
"feat: setup API routing for authentication",
"feat: add user search and management routes",
"feat: implement chat retrieval controllers",
"feat: add messaging controllers",
"feat: integrate socket.io on server",
"feat: configure socket events and presence",
"feat: initialize React frontend with Vite",
"feat: setup context API for global state",
"feat: implement Authentication context",
"feat: add Chat context provider",
"feat: setup Socket context for realtime updates",
"feat: create reusable API service wrapper",
"feat: build Auth page layout and glassmorphism",
"feat: implement Register component logic",
"feat: implement Login component logic",
"feat: setup protected routing logic",
"feat: build Chat Dashboard shell",
"feat: implement Sidebar for chats and users",
"feat: add profile management modal",
"feat: implement search drawer functionality",
"feat: build Chat Window component",
"feat: implement real-time message bubbles",
"feat: add typing indicator animations",
"feat: integrate emoji picker",
"feat: add read receipts logic",
"feat: implement user block and unblock",
"feat: add group info modal",
"feat: implement member add/remove logic",
"feat: add dark theme styling and toggle",
"feat: responsive design improvements for mobile",
"fix: resolve socket memory leaks",
"refactor: optimize message rendering",
"docs: update comprehensive README",
"chore: clean up console logs and warnings",
"chore: prepare for production deployment"
)
$chunkSize = [math]::Ceiling($totalFiles / $messages.Count)
if ($chunkSize -lt 1) { $chunkSize = 1 }
$fileIndex = 0
foreach ($msg in $messages) {
if ($fileIndex -lt $totalFiles) {
$chunk = $allFiles | Select-Object -Skip $fileIndex -First $chunkSize
foreach ($f in $chunk) {
# Add files ensuring paths with spaces are handled
git add "`"$f`""
}
git commit -m $msg
$fileIndex += $chunkSize
} else {
git commit --allow-empty -m $msg
}
}
git add .
git commit -m "chore: final project synchronization"
git branch -M main
git remote add origin https://github.com/muhammadumarafzaal/chatverse-realtime-chat.git
git push -u origin main