From 05a5306f86296e8ee85bfe5fc7bda69505d379e1 Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 14 Nov 2025 13:59:08 -0400 Subject: [PATCH] Reorganize directories --- {lite => build}/nostr-lite.js | 4 ++-- {lite => build}/nostr.bundle.js | 0 deploy.sh | 2 +- increment_build_push.sh | 12 ++++++------ lite/VERSION | 1 - {lite => src}/README.md | 0 src/VERSION | 1 + {lite => src}/build.js | 2 +- {lite => src}/ui/modal.js | 0 9 files changed, 11 insertions(+), 11 deletions(-) rename {lite => build}/nostr-lite.js (99%) rename {lite => build}/nostr.bundle.js (100%) delete mode 100644 lite/VERSION rename {lite => src}/README.md (100%) create mode 100644 src/VERSION rename {lite => src}/build.js (99%) rename {lite => src}/ui/modal.js (100%) diff --git a/lite/nostr-lite.js b/build/nostr-lite.js similarity index 99% rename from lite/nostr-lite.js rename to build/nostr-lite.js index 198aec0..8d986bd 100644 --- a/lite/nostr-lite.js +++ b/build/nostr-lite.js @@ -8,7 +8,7 @@ * Two-file architecture: * 1. Load nostr.bundle.js (official nostr-tools bundle) * 2. Load nostr-lite.js (this file - NOSTR_LOGIN_LITE library with CSS-only themes) - * Generated on: 2025-11-14T17:45:29.274Z + * Generated on: 2025-11-14T17:59:08.754Z */ // Verify dependencies are loaded @@ -436,7 +436,7 @@ class Modal { modalContent.appendChild(modalHeader); // Add version element in bottom-right corner aligned with modal body const versionElement = document.createElement('div'); - versionElement.textContent = 'v0.1.9'; + versionElement.textContent = 'v0.1.10'; versionElement.style.cssText = ` position: absolute; bottom: 8px; diff --git a/lite/nostr.bundle.js b/build/nostr.bundle.js similarity index 100% rename from lite/nostr.bundle.js rename to build/nostr.bundle.js diff --git a/deploy.sh b/deploy.sh index 991cdc7..8e14db6 100755 --- a/deploy.sh +++ b/deploy.sh @@ -1,3 +1,3 @@ #!/bin/bash -rsync -avz --chmod=644 --progress lite/{nostr-lite.js,nostr.bundle.js} ubuntu@laantungir.net:html/nostr-login-lite/ +rsync -avz --chmod=644 --progress build/{nostr-lite.js,nostr.bundle.js} ubuntu@laantungir.net:html/nostr-login-lite/ diff --git a/increment_build_push.sh b/increment_build_push.sh index 0bcc8b3..08c2e4b 100755 --- a/increment_build_push.sh +++ b/increment_build_push.sh @@ -55,14 +55,14 @@ new_tag="v$new_version" echo -e "${GREEN}📈 Incrementing version: $current_version → $new_version${NC}" -# Step 2.5: Save version to lite/VERSION file -echo -e "${YELLOW}💾 Saving version to lite/VERSION...${NC}" -echo "$new_version" > lite/VERSION +# Step 2.5: Save version to src/VERSION file +echo -e "${YELLOW}💾 Saving version to src/VERSION...${NC}" +echo "$new_version" > src/VERSION echo -e "Version saved: ${GREEN}$new_version${NC}" # Step 2.5: Run build.js echo -e "${YELLOW}🔧 Running build process...${NC}" -cd lite +cd src node build.js cd .. echo -e "${GREEN}✅ Build completed${NC}" @@ -100,8 +100,8 @@ git push --tags echo -e "${GREEN}🎉 Successfully completed:${NC}" echo -e " • Version incremented to: ${GREEN}$new_version${NC}" -echo -e " • VERSION file updated: ${GREEN}lite/VERSION${NC}" -echo -e " • Build completed: ${GREEN}lite/nostr-lite.js${NC}" +echo -e " • VERSION file updated: ${GREEN}src/VERSION${NC}" +echo -e " • Build completed: ${GREEN}build/nostr-lite.js${NC}" echo -e " • Git tag created: ${GREEN}$new_tag${NC}" echo -e " • Changes pushed to remote${NC}" echo -e "\n${GREEN}✨ Process complete!${NC}" \ No newline at end of file diff --git a/lite/VERSION b/lite/VERSION deleted file mode 100644 index 1a03094..0000000 --- a/lite/VERSION +++ /dev/null @@ -1 +0,0 @@ -0.1.9 diff --git a/lite/README.md b/src/README.md similarity index 100% rename from lite/README.md rename to src/README.md diff --git a/src/VERSION b/src/VERSION new file mode 100644 index 0000000..9767cc9 --- /dev/null +++ b/src/VERSION @@ -0,0 +1 @@ +0.1.10 diff --git a/lite/build.js b/src/build.js similarity index 99% rename from lite/build.js rename to src/build.js index 44afccb..4210974 100644 --- a/lite/build.js +++ b/src/build.js @@ -24,7 +24,7 @@ const path = require('path'); function createNostrLoginLiteBundle() { // console.log('🔧 Creating NOSTR_LOGIN_LITE bundle for two-file architecture...'); - const outputPath = path.join(__dirname, 'nostr-lite.js'); + const outputPath = path.join(__dirname, '../build/nostr-lite.js'); // Remove old bundle try { diff --git a/lite/ui/modal.js b/src/ui/modal.js similarity index 100% rename from lite/ui/modal.js rename to src/ui/modal.js