Skip to content

Commit b489d10

Browse files
feat!: upgrade to Eleventy v3 and friends (#1169)
* feat: initial conversion to Sveltia CMS Signed-off-by: Ned Zimmerman <[email protected]> * feat: implement project subpages with hierarchical URLs * chore(deps): reinstall husky * fix: remove husky command * chore(deps): rebuild package-lock.json * fix: restore Husky command * fix: resolve linting error * fix: resolve recursion in build script ci: point Lighthouse workflow to Cloudflare Signed-off-by: Ned Zimmerman <[email protected]> * ci: refactor Lighthouse workflow * feat: replace youtubeEmbed shortcode with transform Signed-off-by: Ned Zimmerman <[email protected]> * feat: create funder logos CMS block feat: replace imagePositionWithText shortcode Signed-off-by: Ned Zimmerman <[email protected]> * fix: resolve linting issue * fix: address some deprecations * fix: restore legacy peer deps setting * fix: restore legacy peer deps setting * fix: remove README files * fix: reformat redirects file * fix: remove comments from redirects file * fix: reorder redirects * fix: remove redirect from resources * feat!: upgrade to Eleventy v3 and friends * feat: replace sharp with Eleventy Image plugin * feat: switch to CSS from Sass * fix: resolve linting workflow issue * fix: rebuild package-lock * fix: missing project links * ci: switch to better CF await action * fix: image bug * fix: project order --------- Signed-off-by: Ned Zimmerman <[email protected]>
1 parent aa7989b commit b489d10

Some content is hidden

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

69 files changed

+6328
-12216
lines changed

.eslintrc.cjs

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
2+
3+
module.exports = {
4+
extends: [
5+
"fluid",
6+
"plugin:markdown/recommended-legacy",
7+
"plugin:yml/standard"
8+
],
9+
ignorePatterns: ["backstop_data", "_site/", "src/_locales/messages.js", "!.*.cjs", "!.*.js", "!.github/"],
10+
env: {
11+
amd: true,
12+
browser: true,
13+
node: true,
14+
es6: true
15+
},
16+
parser: "@babel/eslint-parser",
17+
parserOptions: {
18+
ecmaVersion: 2022,
19+
sourceType: "module",
20+
requireConfigFile: false,
21+
"babelOptions": {
22+
"plugins": [
23+
"@babel/plugin-syntax-import-assertions"
24+
]
25+
}
26+
},
27+
overrides: [
28+
{
29+
files: ["**/*.md"],
30+
processor: "markdown/markdown"
31+
},
32+
{
33+
files: ["*.yaml", "*.yml"],
34+
parser: "yaml-eslint-parser"
35+
}
36+
]
37+
};

.eslintrc.js

-32
This file was deleted.

.github/workflows/lighthouse.yml

+9-12
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,16 @@ jobs:
1010
setup:
1111
runs-on: ubuntu-latest
1212
outputs:
13-
site_url: ${{ steps.cloudflare_preview_url.outputs.preview_url }}
13+
url: ${{ steps.cloudflare_preview_url.outputs.url }}
1414
steps:
1515
- uses: actions/checkout@v4
1616
- name: cloudflare-preview-url
17-
uses: zentered/cloudflare-preview-url@v1.4.2
17+
uses: walshydev/cf-pages-await@v1
1818
id: cloudflare_preview_url
19-
env:
20-
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
21-
CLOUDFLARE_ACCOUNT_EMAIL: ${{ secrets.CLOUDFLARE_ACCOUNT_EMAIL }}
22-
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
2319
with:
24-
cloudflare_project_id: idrc-ocadu-ca
25-
wait_until_ready: true
20+
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
21+
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
22+
project: idrc-ocadu-ca
2623
lhci-mobile:
2724
name: Run mobile Lighthouse CI audits
2825
runs-on: ubuntu-latest
@@ -34,10 +31,10 @@ jobs:
3431
with:
3532
runs: 3
3633
urls: |
37-
${{ needs.setup.outputs.site_url }}
34+
${{ needs.setup.outputs.url }}
3835
uploadArtifacts: false
3936
temporaryPublicStorage: true
40-
configPath: ./.lighthouserc.js
37+
configPath: ./.lighthouserc.cjs
4138
lhci-desktop:
4239
name: Run desktop Lighthouse CI audits
4340
runs-on: ubuntu-latest
@@ -49,9 +46,9 @@ jobs:
4946
with:
5047
runs: 3
5148
urls: |
52-
${{ needs.setup.outputs.site_url }}
49+
${{ needs.setup.outputs.url }}
5350
uploadArtifacts: false
5451
temporaryPublicStorage: true
55-
configPath: ./.lighthouserc.js
52+
configPath: ./.lighthouserc.cjs
5653
env:
5754
EMULATE_DEVICE: desktop

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ src/_data/assets.json
66
backstop_data/bitmaps_test
77
backstop_data/html_report
88
backstop_data/json_report
9+
.cache

.husky/commit-msg

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
npx --no -- commitlint --config commitlint.config.mjs --edit "$1"
1+
npx --no -- commitlint --edit "$1"

.lighthouserc.js .lighthouserc.cjs

File renamed without changes.

.stylelintrc.js .stylelintrc.cjs

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11

22

33
module.exports = {
4-
extends: ["stylelint-config-fluid", "stylelint-config-standard-scss"],
5-
customSyntax: "postcss-scss",
4+
extends: ["stylelint-config-fluid"],
65
plugins: ["stylelint-use-logical-spec"],
7-
ignoreFiles: ["_site/**/*.{css,scss}"],
6+
ignoreFiles: ["_site/**/*.css"],
87
rules: {
98
"no-descending-specificity": null,
109
"custom-property-pattern": null,

.zed/settings.jsonc

-7
This file was deleted.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)