From d5fe74a08259522a025b5fb6fe1fd2128048b2b5 Mon Sep 17 00:00:00 2001 From: Breck Yunits Date: Tue, 26 Nov 2024 10:29:33 -0800 Subject: [PATCH] --- header.scroll | 7 ------- package.json | 2 +- releaseNotes.scroll | 4 ++++ wws.js | 6 +++--- 4 files changed, 8 insertions(+), 11 deletions(-) diff --git a/header.scroll b/header.scroll index 5e4c5df..96d091c 100644 --- a/header.scroll +++ b/header.scroll @@ -12,13 +12,6 @@ editButton copyButtons css html {font-family: "SF Pro", "Helvetica Neue", "Segoe UI", "Arial"; font-size: var(--base-font-size, 14px);} -iframeThumbsParser - extends iframesParser - javascript - compile () { - return this.atoms.slice(1).map(url => `
`).join("\n") - } - css iframe { width: 800px; diff --git a/package.json b/package.json index 183e18b..ebb2a2d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@breck/wws", - "version": "0.24.0", + "version": "0.25.0", "description": "The World Wide Scroll", "main": "wws.js", "engines": { diff --git a/releaseNotes.scroll b/releaseNotes.scroll index 58232e5..5f0cd8d 100644 --- a/releaseNotes.scroll +++ b/releaseNotes.scroll @@ -18,6 +18,10 @@ node_modules/scroll-cli/microlangs/changes.parsers thinColumns 1 +📦 0.25.0 11/26/2024 +🎉 much faster now (just clone a single branch) +🎉 updated scroll + 📦 0.24.0 11/26/2024 🎉 if you just type `wws [folderName]` it will run fetch diff --git a/wws.js b/wws.js index 4374e0a..fb2596f 100755 --- a/wws.js +++ b/wws.js @@ -113,7 +113,7 @@ center Your copy of the WWS is stored in \`${wwsDir}\`. ${this.fetchedFolders.length}/${this.folders.length} folders fetched. WWS version: ${WWS_VERSION}. // todo: fix root includes in scroll and remove below. -${fs.readFileSync("header.scroll")} +${fs.readFileSync(path.join(__dirname, "header.scroll"))} center table @@ -217,7 +217,7 @@ editUrl https://github.com/breck7/wws/blob/main/wws.js if (!Disk.exists(rootFolder)) { this.log(`Fetching ${folderName}`) Disk.mkdir(rootFolder) - const cloneCommand = `git clone ${gitSource} ${rootFolder}` + const cloneCommand = `git clone --single-branch ${gitSource} ${rootFolder}` console.log(cloneCommand) child_process.execSync(cloneCommand) } else { @@ -236,7 +236,7 @@ editUrl https://github.com/breck7/wws/blob/main/wws.js console.log(`Updating subfolder '${subfolderName}'`) if (!Disk.exists(subfolderPath)) { Disk.mkdir(subfolderPath) - child_process.execSync(`git ${sourceRepo} ${subfolderPath}`) + child_process.execSync(`git clone --single-branch ${sourceRepo} ${subfolderPath}`) } else child_process.execSync(`cd ${subfolderPath} && git pull origin`) }) }