From 80ed4a20b51702f177d5766bd72d20feadfcc273 Mon Sep 17 00:00:00 2001 From: Ruben Date: Sun, 26 Oct 2025 22:44:16 -0500 Subject: [PATCH] remove gen.sh in favor of using package.json scripts --- eleventy.config.js | 2 +- gen.sh | 4 ---- package.json | 3 +++ 3 files changed, 4 insertions(+), 5 deletions(-) delete mode 100755 gen.sh diff --git a/eleventy.config.js b/eleventy.config.js index 77b02e7..2c7bdca 100644 --- a/eleventy.config.js +++ b/eleventy.config.js @@ -4,8 +4,8 @@ import eleventyNavigationPlugin from "@11ty/eleventy-navigation"; import syntaxHighlight from "@11ty/eleventy-plugin-syntaxhighlight"; export default function(eleventyConfig) { + eleventyConfig.addPassthroughCopy({ "_includes/other/custard.html": "custard.html" }); eleventyConfig.addPassthroughCopy({ "sneexy/notebook/": "~sneexy/notebook/" }); // notebook page generated by quartz seperately - see https://forged.synth.download/sneexy/notebook - eleventyConfig.addPassthroughCopy("custard.html"); eleventyConfig.addPlugin(eleventyNavigationPlugin); eleventyConfig.addPlugin(syntaxHighlight); eleventyConfig.addPassthroughCopy("assets/"); diff --git a/gen.sh b/gen.sh deleted file mode 100755 index 8773268..0000000 --- a/gen.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash -rm -rf ./_site -npx @11ty/eleventy -npx -y pagefind --site _site diff --git a/package.json b/package.json index 97c4a10..e9b1bc0 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,9 @@ "description": "synth.download's website, powered by eleventy.", "main": "index.js", "scripts": { + "build-clean": "rm -rf ./_site && npx @11ty/eleventy && npx -y pagefind --site _site", + "build": "npx @11ty/eleventy && npx -y pagefind --site _site", + "serve": "npx @11ty/eleventy --serve", "test": "echo \"Error: no test specified\" && exit 1" }, "repository": {