From fd5f3ba89fae253d609fd67f852733f8e6546641 Mon Sep 17 00:00:00 2001 From: sthag Date: Thu, 19 Feb 2026 20:43:52 +0100 Subject: [PATCH] chore: Add possibility to deploy - New npm scripts - New folder for deployment content - Currently using a fixed --pathprefix option with hippie as value - Add deploy to gitignore --- .eleventy.js | 4 +++- .gitignore | 1 + package.json | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.eleventy.js b/.eleventy.js index 5b24790..03ea12f 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -1,5 +1,7 @@ +const { EleventyHtmlBasePlugin } = require("@11ty/eleventy"); + module.exports = function (eleventyConfig) { - // eleventyConfig.addPlugin(EleventyHtmlBasePlugin); + eleventyConfig.addPlugin(EleventyHtmlBasePlugin); eleventyConfig.setLiquidOptions({ // greedy: false, diff --git a/.gitignore b/.gitignore index a4481ea..6ae690a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ # HIPPIE ################### build/** +deploy/** reports/** source/art/sprites/ source/art/images/sprite.* diff --git a/package.json b/package.json index 49351cc..8036798 100644 --- a/package.json +++ b/package.json @@ -24,9 +24,11 @@ "clean:report": "rm -rf report/*", "clean:test": "rm -rf test/*", "style:compile": "sass source/style:build/css --load-path=vendor", + "style:deploy": "sass source/style:deploy/css --load-path=vendor", "style:watch": "sass --watch source/style:build/css --load-path=vendor", "build:new": "npm run clean:build && npx @11ty/eleventy && npm run style:compile", "build": "npx @11ty/eleventy && npm run style:compile", + "deploy": "npm run clean:deploy && npx @11ty/eleventy --output=deploy --pathprefix=hippie && npm run style:deploy", "serve": "npm run style:watch & npx @11ty/eleventy --serve" }, "private": true,