Skip to content

Commit cf8050d

Browse files
committed
modernising
- src -> source - update dependencies - simplify prettier config - reformat code - ESM only
1 parent 3acca1d commit cf8050d

134 files changed

Lines changed: 1222 additions & 2883 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- uses: actions/checkout@v4
2121
- uses: actions/setup-node@v4
2222
with:
23-
cache: 'npm'
23+
cache: "npm"
2424
- run: npm ci
2525
- run: npm run build
2626
- run: npm test

.github/workflows/pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727

2828
- uses: actions/setup-node@v4
2929
with:
30-
cache: 'npm'
30+
cache: "npm"
3131

3232
- run: npm ci
3333

.prettierrc

Lines changed: 0 additions & 5 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ Notable changes to Alembic are documented here
1111
- 11ty: support building into subdirectories with `pathPrefix`
1212
- 11ty: use new `eleventyConfig.directories`
1313

14+
**breaking**
15+
16+
- 11ty: now built as ESM
17+
1418
## 0.4.0
1519

1620
**features**

eleventy.config.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ import markdownIt from "markdown-it";
33
import markdownAnchor from "markdown-it-anchor";
44

55
import syntaxHighlight from "@11ty/eleventy-plugin-syntaxhighlight";
6-
import { eleventyAlembic } from "@openlab/alembic/11ty.cjs";
6+
import { eleventyAlembic } from "@openlab/alembic/11ty.js";
77
import slugify from "slugify";
88

99
import pkg from "./package.json" with { type: "json" };
10-
import site from "./src/_data/site.json" with { type: "json" };
10+
import site from "./source/_data/site.json" with { type: "json" };
1111

1212
// TODO: refactor this out when upgrading to eleventy@2
1313
const md = markdownIt({
@@ -60,16 +60,16 @@ export default function (eleventyConfig) {
6060
(content) => `<p class="eleventyError">${content}</p>`,
6161
);
6262

63-
// eleventyConfig.addWatchTarget('./src/**/*.css')
64-
// eleventyConfig.addWatchTarget('./src/**/*.ts')
63+
// eleventyConfig.addWatchTarget('./source/**/*.css')
64+
// eleventyConfig.addWatchTarget('./source/**/*.ts')
6565
}
6666

6767
export const config = {
6868
markdownTemplateEngine: "njk",
6969
htmlTemplateEngine: "njk",
7070
templateFormats: ["html", "md"],
7171
dir: {
72-
input: "src",
72+
input: "source",
7373
output: "dist",
7474
layouts: "_layouts",
7575
},

0 commit comments

Comments
 (0)