-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathqrepo.json
81 lines (81 loc) · 3.7 KB
/
qrepo.json
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
{
"name": "QLBase",
"author": "nathannestein",
"git": "https://github.com/nthnn/QLBase.git",
"version": "1.0.0",
"description": "Decentralizable, scalable, and reliable backend solution alternative to traditional NoSQL, SaaS, and cloud-based services.",
"scripts": {
"build-backend": [
"echo \"\\033[92m[+]\\033[0m Building backend apps...\"",
"cd backend/auth && ./build.sh && cd ../..",
"cd backend/data_analytics && ./build.sh && cd ../..",
"cd backend/database && ./build.sh && cd ../..",
"cd backend/forgetpass && ./build.sh && cd ../..",
"cd backend/logger && ./build.sh && cd ../..",
"cd backend/notifier && ./build.sh && cd ../..",
"cd backend/storage && ./build.sh && cd ../..",
"cd backend/sms && ./build.sh && cd ../..",
"cd backend/traffic && ./build.sh && cd ../..",
"echo \"\\033[92m[+]\\033[0m Done building backend apps!\"",
"chmod +x bin/* && chmod 644 bin/*.html"
],
"windows:build-backend": [
"echo [+] Building backend apps...",
"cd backend/auth && go build -ldflags=-w -ldflags=-s -o auth.exe && mv ./auth.exe ../../bin/auth.exe && cd ../..",
"cd backend/data_analytics && go build -ldflags=-w -ldflags=-s -o data_analytics.exe && mv ./data_analytics.exe ../../bin/data_analytics.exe && cd ../..",
"cd backend/database && go build -ldflags=-w -ldflags=-s -o database.exe && mv ./database.exe ../../bin/database.exe && cd ../..",
"cd backend/forgetpass && go build -ldflags=-w -ldflags=-s -o forgetpass.exe && mv ./forgetpass.exe ../../bin/forgetpass.exe && cd ../..",
"cd backend/logger && go build -ldflags=-w -ldflags=-s -o logger.exe && mv ./logger.exe ../../bin/logger.exe && cd ../..",
"cd backend/notifier && go build -ldflags=-w -ldflags=-s -o notifier.exe && mv ./notifier.exe ../../bin/notifier.exe && cd ../..",
"cd backend/storage && go build -ldflags=-w -ldflags=-s -o storage.exe && mv ./storage.exe ../../bin/storage.exe && cd ../..",
"cd backend/sms && go build -ldflags=-w -ldflags=-s -o sms.exe && mv ./sms.exe ../../bin/sms.exe && cd ../..",
"cd backend/traffic && go build -ldflags=-w -ldflags=-s -o traffic.exe && mv ./traffic.exe ../../bin/traffic.exe && cd ../..",
"echo [+] Done building backend apps!"
],
"build-docs": [
"cd documentations",
"npm install",
"npm audit fix --force",
"npm run build-local",
"cd .."
],
"clean-up": [
"rm -rf docs/"
],
"deploy": [
"qrepo run build-backend",
"qrepo run build-docs",
"qrepo run zip-up",
"qrepo run clean-up",
"echo \"\\033[92m[+]\\033[0m Deployment-ready successfully generated!\""
],
"windows:start": [
"C:\\xampp\\xampp_start.exe"
],
"darwin:start": [
"cd /Applications/XAMPP/xamppfiles",
"sudo ./xampp start"
],
"linux:start": [
"/opt/lampp/xampp start"
],
"windows:stop": [
"C:\\xampp\\xampp_stop.exe"
],
"darwin:stop": [
"cd /Applications/XAMPP/xamppfiles",
"sudo ./xampp stop"
],
"linux:stop": [
"/opt/lampp/xampp stop"
],
"linux:zip-up": [
"echo \"\\033[92m[+]\\033[0m Zipping deployment entity...\"",
"zip -q -r qlbase.zip api assets bin components controller docs drive scripts side styles views favicon.ico .htaccess 404.html index.php sandbox.php"
],
"windows:zip-up": [
"echo \"\\033[92m[+]\\033[0m Zipping deployment entity...\"",
"powershell -Command \"Compress-Archive -Path @( 'api', 'assets', 'bin', 'components', 'controller', 'docs', 'drive', 'scripts', 'side', 'styles', 'views', 'favicon.ico', '.htaccess', '404.html', 'index.php', 'sandbox.php' ) -DestinationPath qlbase.zip -Force\""
]
}
}