Skip to content

Commit

Permalink
chore: update 11ty to 3.0 (latest) (#1010)
Browse files Browse the repository at this point in the history
Update 11ty to latest, and configure server to watch/rebuild changes
live.

---------

Co-authored-by: flochtililoch <[email protected]>
  • Loading branch information
flochtililoch and flochtililoch authored Dec 20, 2024
1 parent 6f4198a commit 9b4a89a
Show file tree
Hide file tree
Showing 3 changed files with 492 additions and 525 deletions.
3 changes: 2 additions & 1 deletion demo/.eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ const {
} = require('./.eleventy/filters.js');

module.exports = function (eleventyConfig) {
eleventyConfig.setBrowserSyncConfig({
eleventyConfig.setServerOptions({
module: "@11ty/eleventy-server-browsersync",
middleware: function (req, res, next) {
res.setHeader('Access-Control-Allow-Origin', '*');
res.setHeader('Access-Control-Allow-Methods', 'GET, OPTIONS');
Expand Down
5 changes: 3 additions & 2 deletions demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"format-njk": "./scripts/format-njk.sh",
"predeploy": "BASE_URL=https://instawork.github.io expo export:web; rm -rf hyperview; mv -f web-build/ hyperview; eleventy",
"prettify": "pretty-quick && prettier --write '**/*.md'",
"server": "eleventy --serve --port=8085",
"server": "eleventy --watch --incremental --serve --port=8085",
"test:lint": "eslint src && prettier --check '**/*.md' && yarn format-njk -c",
"test:ts": "tsc",
"test:validate-xml": "rm -rf hyperview/public; eleventy; find hyperview/public -name '*.xml' | xargs xmlschema-validate --schema schema/hyperview.xsd --version 1.1",
Expand Down Expand Up @@ -47,7 +47,8 @@
"react-native-webview": "13.2.2"
},
"devDependencies": {
"@11ty/eleventy": "^1.0.0",
"@11ty/eleventy": "^3.0.0",
"@11ty/eleventy-server-browsersync": "^1.0.2",
"@babel/core": "^7.20.0",
"@babel/eslint-parser": "7.13.4",
"@expo/webpack-config": "^19.0.0",
Expand Down
Loading

0 comments on commit 9b4a89a

Please sign in to comment.