refactor: massive codebase folder restructuring

This commit is contained in:
melvinchia3636
2026-06-10 00:07:29 +08:00
parent bdb860853c
commit a1509bbaee
293 changed files with 266 additions and 330 deletions

View File

@@ -1,6 +1,6 @@
#!/bin/bash
# Script to loop through all modules in apps directory and commit changes
# Script to loop through all modules in modules directory and commit changes
# Usage: ./scripts/commit-all-modules.sh "Your commit message here"
set -e # Exit on any error
@@ -20,7 +20,7 @@ GREEN='\033[0;32m'
YELLOW='\033[1;33m'
NC='\033[0m' # No Color
echo -e "${YELLOW}Starting git operations for all modules in apps directory...${NC}"
echo -e "${YELLOW}Starting git operations for all modules in modules directory...${NC}"
echo -e "${YELLOW}Commit message: \"$COMMIT_MESSAGE\"${NC}"
# Get the script directory and navigate to project root
@@ -34,7 +34,7 @@ successful_modules=0
failed_modules=()
# First, count total modules (excluding non-directories)
for module_dir in apps/*/; do
for module_dir in modules/*/; do
if [ -d "$module_dir" ]; then
((total_modules++))
fi
@@ -43,8 +43,8 @@ done
echo -e "${YELLOW}Found $total_modules modules to process${NC}"
echo ""
# Loop through each directory in apps/
for module_dir in apps/*/; do
# Loop through each directory in modules/
for module_dir in modules/*/; do
if [ -d "$module_dir" ]; then
module_name=$(basename "$module_dir")

View File

@@ -1,23 +1,23 @@
#!/bin/bash
# Publish all modules in the apps/ directory
# Publish all modules in the modules/ directory
# Usage: bash scripts/publish-all-modules.sh [--official]
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
ROOT_DIR="$(dirname "$SCRIPT_DIR")"
APPS_DIR="$ROOT_DIR/apps"
MODULES_DIR="$ROOT_DIR/modules"
OFFICIAL_FLAG=""
if [[ "$1" == "--official" ]]; then
OFFICIAL_FLAG="--official"
fi
echo "📦 Publishing all modules from apps/..."
echo "📦 Publishing all modules from modules/..."
echo ""
cd "$ROOT_DIR"
for module_dir in "$APPS_DIR"/*/; do
for module_dir in "$MODULES_DIR"/*/; do
module_name=$(basename "$module_dir")
# Skip hidden directories and non-module directories