Skip to content

Commit

Permalink
Update 11ty-v3
Browse files Browse the repository at this point in the history
  • Loading branch information
benabel committed Dec 19, 2023
2 parents 7e0be4e + 2c4cea8 commit bd73130
Show file tree
Hide file tree
Showing 5 changed files with 780 additions and 2,607 deletions.
2 changes: 1 addition & 1 deletion content/content.11tydata.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
export default {
layout: "emd.njk",
eleventyComputed: {
emdId: data => data.page.url.substr(1, data.page.url.length - 2)
Expand Down
8 changes: 2 additions & 6 deletions eleventy.config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
// need to bundle it with esbuild until 11ty supports esm
const md2HTML = require("./scripts/build/md2HTML.cjs").md2HTML;

module.exports = function (eleventyConfig) {
// needed for gh-pages
pathPrefix: "/ed-lib/"
import { md2HTML } from "@ed-components/ed-components/common.js";

export default async function (eleventyConfig) {
// Add emd as a valid extension to process
eleventyConfig.addExtension(["emd"], {
key: "html",
Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "ed-lib",
"version": "0.0.0",
"type": "module",
"description": "Easily write and share edcuational content with educational markdown aka emd!",
"scripts": {
"prestart": "concurrently -n b: npm:build:*",
"format": "prettier --write .",
"build": "concurrently -n b: npm:build:*",
"postbuild": "npx pagefind --site \"_site\"",
"build:cjs": "node scripts/buildCJSModules.mjs",
"build:css": "postcss \"11ty/_assets/style.postcss\" --verbose --config postcss.config.cjs -o \"_site/style.css\"",
"build:html": "npx @11ty/eleventy",
"test": "echo \"Error: no test specified\" && exit 1",
Expand All @@ -19,9 +19,8 @@
"author": "",
"license": "MIT",
"devDependencies": {
"@11ty/eleventy": "^2.0.1",
"@11ty/eleventy": "3.0.0-alpha.2",
"concurrently": "^8.2.2",
"esbuild": "^0.19.8",
"open-props": "^1.5.15",
"postcss": "^8.4.29",
"postcss-cli": "^10.1.0",
Expand Down
Loading

0 comments on commit bd73130

Please sign in to comment.