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
This commit is contained in:
sthag 2026-02-19 20:43:52 +01:00
parent d04e0e3174
commit fd5f3ba89f
3 changed files with 6 additions and 1 deletions

View file

@ -1,5 +1,7 @@
const { EleventyHtmlBasePlugin } = require("@11ty/eleventy");
module.exports = function (eleventyConfig) { module.exports = function (eleventyConfig) {
// eleventyConfig.addPlugin(EleventyHtmlBasePlugin); eleventyConfig.addPlugin(EleventyHtmlBasePlugin);
eleventyConfig.setLiquidOptions({ eleventyConfig.setLiquidOptions({
// greedy: false, // greedy: false,

1
.gitignore vendored
View file

@ -1,6 +1,7 @@
# HIPPIE # HIPPIE
################### ###################
build/** build/**
deploy/**
reports/** reports/**
source/art/sprites/ source/art/sprites/
source/art/images/sprite.* source/art/images/sprite.*

View file

@ -24,9 +24,11 @@
"clean:report": "rm -rf report/*", "clean:report": "rm -rf report/*",
"clean:test": "rm -rf test/*", "clean:test": "rm -rf test/*",
"style:compile": "sass source/style:build/css --load-path=vendor", "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", "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:new": "npm run clean:build && npx @11ty/eleventy && npm run style:compile",
"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" "serve": "npm run style:watch & npx @11ty/eleventy --serve"
}, },
"private": true, "private": true,