Reorganize directories

This commit is contained in:
Your Name
2025-11-14 13:59:08 -04:00
parent 98b87de736
commit 05a5306f86
9 changed files with 11 additions and 11 deletions

View File

@@ -8,7 +8,7 @@
* Two-file architecture: * Two-file architecture:
* 1. Load nostr.bundle.js (official nostr-tools bundle) * 1. Load nostr.bundle.js (official nostr-tools bundle)
* 2. Load nostr-lite.js (this file - NOSTR_LOGIN_LITE library with CSS-only themes) * 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 // Verify dependencies are loaded
@@ -436,7 +436,7 @@ class Modal {
modalContent.appendChild(modalHeader); modalContent.appendChild(modalHeader);
// Add version element in bottom-right corner aligned with modal body // Add version element in bottom-right corner aligned with modal body
const versionElement = document.createElement('div'); const versionElement = document.createElement('div');
versionElement.textContent = 'v0.1.9'; versionElement.textContent = 'v0.1.10';
versionElement.style.cssText = ` versionElement.style.cssText = `
position: absolute; position: absolute;
bottom: 8px; bottom: 8px;

View File

@@ -1,3 +1,3 @@
#!/bin/bash #!/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/

View File

@@ -55,14 +55,14 @@ new_tag="v$new_version"
echo -e "${GREEN}📈 Incrementing version: $current_version$new_version${NC}" echo -e "${GREEN}📈 Incrementing version: $current_version$new_version${NC}"
# Step 2.5: Save version to lite/VERSION file # Step 2.5: Save version to src/VERSION file
echo -e "${YELLOW}💾 Saving version to lite/VERSION...${NC}" echo -e "${YELLOW}💾 Saving version to src/VERSION...${NC}"
echo "$new_version" > lite/VERSION echo "$new_version" > src/VERSION
echo -e "Version saved: ${GREEN}$new_version${NC}" echo -e "Version saved: ${GREEN}$new_version${NC}"
# Step 2.5: Run build.js # Step 2.5: Run build.js
echo -e "${YELLOW}🔧 Running build process...${NC}" echo -e "${YELLOW}🔧 Running build process...${NC}"
cd lite cd src
node build.js node build.js
cd .. cd ..
echo -e "${GREEN}✅ Build completed${NC}" echo -e "${GREEN}✅ Build completed${NC}"
@@ -100,8 +100,8 @@ git push --tags
echo -e "${GREEN}🎉 Successfully completed:${NC}" echo -e "${GREEN}🎉 Successfully completed:${NC}"
echo -e " • Version incremented to: ${GREEN}$new_version${NC}" echo -e " • Version incremented to: ${GREEN}$new_version${NC}"
echo -e " • VERSION file updated: ${GREEN}lite/VERSION${NC}" echo -e " • VERSION file updated: ${GREEN}src/VERSION${NC}"
echo -e " • Build completed: ${GREEN}lite/nostr-lite.js${NC}" echo -e " • Build completed: ${GREEN}build/nostr-lite.js${NC}"
echo -e " • Git tag created: ${GREEN}$new_tag${NC}" echo -e " • Git tag created: ${GREEN}$new_tag${NC}"
echo -e " • Changes pushed to remote${NC}" echo -e " • Changes pushed to remote${NC}"
echo -e "\n${GREEN}✨ Process complete!${NC}" echo -e "\n${GREEN}✨ Process complete!${NC}"

View File

@@ -1 +0,0 @@
0.1.9

1
src/VERSION Normal file
View File

@@ -0,0 +1 @@
0.1.10

View File

@@ -24,7 +24,7 @@ const path = require('path');
function createNostrLoginLiteBundle() { function createNostrLoginLiteBundle() {
// console.log('🔧 Creating NOSTR_LOGIN_LITE bundle for two-file architecture...'); // 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 // Remove old bundle
try { try {