Skip to content

Commit c167068

Browse files
authored
Merge pull request #18 from andrewpucci/17-migrate-to-11ty
17 migrate to 11ty
2 parents f0765d5 + 0a11630 commit c167068

File tree

98 files changed

+9599
-2433
lines changed

Some content is hidden

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

98 files changed

+9599
-2433
lines changed

.browserslistrc

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
>= 1%
2+
last 1 major version
3+
not dead
4+
Chrome >= 45
5+
Firefox >= 38
6+
Edge >= 12
7+
Explorer 11
8+
iOS >= 9
9+
Safari >= 9
10+
Android >= 4.4
11+
Opera >= 30

.eleventy.js

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
const cacheBuster = require('@mightyplow/eleventy-plugin-cache-buster');
2+
3+
module.exports = function(config) {
4+
// Layout aliases can make templates more portable
5+
config.addLayoutAlias('default', 'layouts/base.njk');
6+
7+
// Add some utility filters
8+
config.addFilter("squash", require("./src/filters/squash.js") );
9+
10+
// minify the html output
11+
config.addTransform("htmlmin", require("./src/utils/minify-html.js").default);
12+
13+
// fingerprint css and js files
14+
config.addPlugin(cacheBuster({
15+
outputDirectory: 'dist',
16+
createResourceHash(outputDirectoy, url, target) {
17+
return Date.now();
18+
}
19+
}));
20+
21+
// pass some assets right through
22+
config.addPassthroughCopy("./src/site/assets");
23+
config.addPassthroughCopy("./src/site/humans.txt");
24+
config.addPassthroughCopy("./src/site/robots.txt");
25+
26+
return {
27+
dir: {
28+
input: "src/site",
29+
output: "dist",
30+
data: '_data'
31+
},
32+
templateFormats : ["njk", "md"],
33+
htmlTemplateEngine : "njk",
34+
markdownTemplateEngine : "njk",
35+
passthroughFileCopy: true,
36+
};
37+
};

.env-sample

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
ROOT_URL='https://www.nwhl.zone/'
2+
GTMID='GTM-XXXXXXX'

.eslintrc.js

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
module.exports = {
2+
extends: [
3+
'airbnb-base',
4+
'plugin:security/recommended',
5+
],
6+
env: {
7+
browser: true,
8+
jquery: true,
9+
node: true,
10+
},
11+
plugins: [
12+
'security',
13+
],
14+
};

.gitattributes

-194
This file was deleted.

.gitignore

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
node_modules
2-
vendor
3-
_site
4-
.bundle/config
5-
.jekyll-metadata
6-
.sass-cache
2+
dist
3+
.env
4+
yarn-error.log
5+
src/site/assets/js/*
6+
src/site/assets/css/*

.nvmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
lts/carbon

0 commit comments

Comments
 (0)