-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from welt/develop
Develop
- Loading branch information
Showing
13 changed files
with
5,213 additions
and
10,863 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,31 @@ | ||
# Eleventy Static Site Starter Project | ||
|
||
+ tested on Node 14 & Node 16 | ||
11ty v3 + ESM + Rollup + PostCSS + ESLint v9 | ||
|
||
+ tested in Node 20, should work in Node 18 | ||
|
||
+ builds to `_site` folder | ||
|
||
+ uses `tokens.json` for global variables | ||
|
||
+ uses `rollup.config.js` for JS bundling, including iife and esm formats | ||
|
||
## Quick start | ||
|
||
+ copy `.env.example` to `.env` (.env.CANONICAL is usually the URL of the deployment environment) | ||
|
||
+ edit `tokens.json` | ||
|
||
+ npm install | ||
|
||
+ npm start | ||
|
||
or | ||
|
||
+ npm run build | ||
|
||
## Eleventy docs | ||
|
||
[https://www.11ty.dev/docs/](https://www.11ty.dev/docs/) | ||
|
||
+ Thanks to Bryce Wray for publishing these articles on cache-busting in Eleventy [https://www.brycewray.com/posts/2020/12/hashing-out-cache-busting-fix-eleventy/](https://www.brycewray.com/posts/2020/12/hashing-out-cache-busting-fix-eleventy/) | ||
|
||
+ VSCode Nunjucks syntax highlighting extension :) | ||
|
||
[https://marketplace.visualstudio.com/items?itemName=ronnidc.nunjucks](https://marketplace.visualstudio.com/items?itemName=ronnidc.nunjucks) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
# TO DO | ||
|
||
+ refactor for 11ty v3 & ESM | ||
+ add testing in Jest | ||
+ fix ESLint v9 compatibility | ||
+ update outdated NodeJS modules | ||
+ remove deprecated NodeJS modules | ||
+ automate release tagging | ||
+ improve Deno compatibility | ||
|
||
[x] refactor for 11ty v3 & ESM | ||
[ ] add testing in Jest | ||
[x] fix ESLint v9 compatibility | ||
[x] update outdated NodeJS modules | ||
[ ] remove deprecated NodeJS modules | ||
[ ] automate release tagging | ||
[ ] improve Deno compatibility |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import dotenv from "dotenv"; | ||
dotenv.config(); | ||
|
||
export default async function (eleventyConfig) { | ||
eleventyConfig.addPassthroughCopy("./src/fonts/**/*.*"); | ||
eleventyConfig.addPassthroughCopy("./src/images/**/*.{png,jpg,webp}"); | ||
eleventyConfig.addPassthroughCopy("./src/favicon.ico"); | ||
eleventyConfig.addWatchTarget("./src/js/"); | ||
eleventyConfig.addWatchTarget("./src/scss/"); | ||
|
||
return { | ||
dir: { | ||
input: "src", | ||
includes: "_includes", | ||
layouts: "_layouts", | ||
}, | ||
templateFormats: ["html", "hbs", "njk", "md", "11ty.js"], | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import globals from "globals"; | ||
import pluginJs from "@eslint/js"; | ||
|
||
export default [ | ||
{ | ||
languageOptions: { | ||
globals: { | ||
...globals.browser, | ||
...globals.node, | ||
}, | ||
|
||
ecmaVersion: 12, | ||
}, | ||
}, | ||
pluginJs.configs.recommended, | ||
]; |
Oops, something went wrong.