diff --git a/.eleventy.js b/.eleventy.js index 34db01b..bd53224 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -1,7 +1,10 @@ -const {EleventyHtmlBasePlugin} = require("@11ty/eleventy"); +/* jshint strict: false */ -module.exports = function (eleventyConfig) { - eleventyConfig.addPlugin(EleventyHtmlBasePlugin); +import {HtmlBasePlugin} from "@11ty/eleventy"; + +// noinspection JSUnusedGlobalSymbols +export default async function (eleventyConfig) { + eleventyConfig.addPlugin(HtmlBasePlugin); eleventyConfig.setLiquidOptions({ // greedy: false, @@ -82,4 +85,4 @@ module.exports = function (eleventyConfig) { templateFormats: ['html', 'liquid', 'njk', 'md'] // pathPrefix: './demo/' }; -}; +} diff --git a/package.json b/package.json index e863c3f..99b4954 100644 --- a/package.json +++ b/package.json @@ -1,46 +1,47 @@ { - "name": "hippie", - "version": "0.13.1", - "description": "Hippie interweaves preeminent personal interface elements", - "keywords": [ - "hippie", - "www site template" - ], - "homepage": "https://quelltext.interaktionsweise.de/interaktionsweise/hippie", - "bugs": "https://quelltext.interaktionsweise.de/interaktionsweise/hippie/issues", - "license": "MIT", - "author": "Stephan Hagedorn (https://karte.interaktionsweise.de)", - "main": "", - "repository": { - "type": "git", - "url": "https://quelltext.interaktionsweise.de/interaktionsweise/hippie.git" - }, - "scripts": { - "hello": "echo -n \"This is \" && node -p \"process.env.npm_package_name\" | tr '[:lower:]' '[:upper:]'", - "test": "echo \"Error: no test specified\" && exit 1", - "clean": "npm run clean:build & npm run clean:deploy & npm run clean:report & npm run clean:test", - "clean:build": "rm -rf build/*", - "clean:deploy": "rm -rf deploy/*", - "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, - "devDependencies": { - "normalize.css": "^8.0.1" - }, - "dependencies": { - "@11ty/eleventy": "^3.1.2", - "@11ty/eleventy-upgrade-help": "^3.0.2", - "bootstrap-icons": "^1.13.1", - "hippie-script": "git+https://quelltext.interaktionsweise.de/interaktionsweise/hippie-script.git", - "jquery": "^3.7.1", - "sass": "^1.93.0" - } + "name": "hippie", + "version": "0.13.1", + "description": "Hippie interweaves preeminent personal interface elements", + "keywords": [ + "hippie", + "www site template" + ], + "homepage": "https://quelltext.interaktionsweise.de/interaktionsweise/hippie", + "bugs": "https://quelltext.interaktionsweise.de/interaktionsweise/hippie/issues", + "license": "MIT", + "author": "Stephan Hagedorn (https://karte.interaktionsweise.de)", + "main": "", + "repository": { + "type": "git", + "url": "https://quelltext.interaktionsweise.de/interaktionsweise/hippie.git" + }, + "type": "module", + "scripts": { + "hello": "echo -n \"This is \" && node -p \"process.env.npm_package_name\" | tr '[:lower:]' '[:upper:]'", + "test": "echo \"Error: no test specified\" && exit 1", + "clean": "npm run clean:build & npm run clean:deploy & npm run clean:report & npm run clean:test", + "clean:build": "rm -rf build/*", + "clean:deploy": "rm -rf deploy/*", + "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, + "devDependencies": { + "normalize.css": "^8.0.1" + }, + "dependencies": { + "@11ty/eleventy": "^3.1.2", + "@11ty/eleventy-upgrade-help": "^3.0.2", + "bootstrap-icons": "^1.13.1", + "hippie-script": "git+https://quelltext.interaktionsweise.de/interaktionsweise/hippie-script.git", + "jquery": "^3.7.1", + "sass": "^1.93.0" + } }