From f2c9b615129c4842bdaa9bdc7b33f99e873b772e Mon Sep 17 00:00:00 2001 From: Bobby <30593201+luciferreeves@users.noreply.github.com> Date: Fri, 27 Feb 2026 15:27:39 +0530 Subject: feat(garden): initialize Solid.js project with basic structure and routing - Added package.json with dependencies for Solid.js and Vite. - Created main application component (App) with layout and suspense handling. - Implemented Layout component with navigation and sidebar sections. - Added NavSection and Sidebar components for structured navigation. - Configured API URL based on environment. - Created 404 error page for handling non-existent routes. - Set up global styles and theme variables for consistent design. - Established routing with lazy loading for the 404 page. - Added TypeScript configuration for Solid.js. - Configured Vite for development and production builds. - Created Makefile for building and running the Go application in the shrine directory. - Added .gitignore for ignoring build artifacts and environment files. --- scripts/deploy.sh | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'scripts') diff --git a/scripts/deploy.sh b/scripts/deploy.sh index 8269baf..04d551b 100755 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -4,6 +4,7 @@ set -euo pipefail SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" PROJECT_ROOT="$(dirname "$SCRIPT_DIR")" GARDEN_DIR="$PROJECT_ROOT/garden" +DIST_DIR="$GARDEN_DIR/dist" ENV_FILE="$PROJECT_ROOT/.env" API_BASE="https://nekoweb.org/api" @@ -36,6 +37,16 @@ fi SITE_FOLDER="/${NEKOWEB_SITE}.nekoweb.org" +log "Building garden..." +cd "$GARDEN_DIR" && npm run build +cd "$PROJECT_ROOT" + +if [ ! -d "$DIST_DIR" ]; then + error "Build failed: dist/ not found" +fi + +echo "" + api_post() { local endpoint="$1" shift @@ -100,7 +111,7 @@ upload_file() { log "Starting deployment to nekoweb..." log "Site: ${NEKOWEB_SITE}.nekoweb.org" -log "Source: $GARDEN_DIR" +log "Source: $DIST_DIR" echo "" log "Cleaning root..." @@ -125,7 +136,7 @@ declare -a dirs_to_create=() declare -a files_to_upload=() while IFS= read -r -d '' file; do - rel_path="${file#$GARDEN_DIR/}" + rel_path="${file#$DIST_DIR/}" if [[ "$rel_path" == .* ]]; then continue @@ -140,7 +151,7 @@ while IFS= read -r -d '' file; do fi files_to_upload+=("$file|$remote_dir") fi -done < <(find "$GARDEN_DIR" -mindepth 1 -print0 | sort -z) +done < <(find "$DIST_DIR" -mindepth 1 -print0 | sort -z) if [ ${#dirs_to_create[@]} -gt 0 ]; then log "Creating ${#dirs_to_create[@]} directories..." -- cgit v1.2.3