Skip to content

Commit 6d62642

Browse files
committed
Rewrite in eleventy
Signed-off-by: Mike Ralphson <[email protected]>
1 parent d0e6b8e commit 6d62642

File tree

183 files changed

+7919
-6710
lines changed

Some content is hidden

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

183 files changed

+7919
-6710
lines changed

.eleventy.js

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
const pluginSEO = require('eleventy-plugin-seo');
2+
3+
module.exports = function(eleventyConfig) {
4+
eleventyConfig.addPlugin(pluginSEO, require("./src/_data/seo.json"));
5+
6+
// You can return your Config object (optional).
7+
eleventyConfig.addPassthroughCopy("src/assets");
8+
eleventyConfig.addPassthroughCopy("src/.nojekyll");
9+
return {
10+
dir: {
11+
// ⚠️ These values are both relative to your input directory.
12+
includes: "_includes",
13+
layouts: "_layouts"
14+
}
15+
};
16+
};
17+

.eslintrc.json

+270
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,270 @@
1+
{
2+
"env": {
3+
"es6": true,
4+
"node": true,
5+
"browser": true,
6+
"jquery": true
7+
},
8+
"parserOptions": {
9+
"ecmaVersion": 2017
10+
},
11+
"extends": "eslint:recommended",
12+
"rules": {
13+
"accessor-pairs": "error",
14+
"array-bracket-spacing": [
15+
"off",
16+
"never"
17+
],
18+
"array-callback-return": "error",
19+
"arrow-body-style": "off",
20+
"arrow-parens": [
21+
"off",
22+
"as-needed"
23+
],
24+
"arrow-spacing": [
25+
"off",
26+
{
27+
"after": true,
28+
"before": true
29+
}
30+
],
31+
"block-scoped-var": "off",
32+
"block-spacing": "off",
33+
"brace-style": [
34+
"off",
35+
"stroustrup"
36+
],
37+
"callback-return": "off",
38+
"camelcase": "off",
39+
"class-methods-use-this": "error",
40+
"comma-dangle": "error",
41+
"comma-spacing": "off",
42+
"comma-style": [
43+
"error",
44+
"last"
45+
],
46+
"complexity": "off",
47+
"computed-property-spacing": [
48+
"error",
49+
"never"
50+
],
51+
"consistent-return": "off",
52+
"consistent-this": "off",
53+
"curly": "off",
54+
"default-case": "error",
55+
"dot-location": [
56+
"off",
57+
"property"
58+
],
59+
"dot-notation": [
60+
"error",
61+
{
62+
"allowKeywords": true
63+
}
64+
],
65+
"eol-last": "error",
66+
"eqeqeq": "off",
67+
"func-call-spacing": "error",
68+
"func-name-matching": "off",
69+
"func-names": "off",
70+
"func-style": [
71+
"off",
72+
"declaration"
73+
],
74+
"generator-star-spacing": "off",
75+
"global-require": "off",
76+
"guard-for-in": "off",
77+
"handle-callback-err": "off",
78+
"id-blacklist": "error",
79+
"id-length": "off",
80+
"id-match": "error",
81+
"indent": "off",
82+
"init-declarations": "off",
83+
"jsx-quotes": "error",
84+
"key-spacing": "off",
85+
"keyword-spacing": ["error", { "after": true }],
86+
"line-comment-position": "off",
87+
"linebreak-style": [
88+
"error",
89+
"unix"
90+
],
91+
"lines-around-comment": "off",
92+
"lines-around-directive": "off",
93+
"max-depth": "off",
94+
"max-len": "off",
95+
"max-lines": "off",
96+
"max-nested-callbacks": "error",
97+
"max-params": "off",
98+
"max-statements": "off",
99+
"max-statements-per-line": "off",
100+
"multiline-ternary": [
101+
"off",
102+
"never"
103+
],
104+
"new-parens": "error",
105+
"newline-after-var": "off",
106+
"newline-before-return": "off",
107+
"newline-per-chained-call": "off",
108+
"no-alert": "error",
109+
"no-array-constructor": "error",
110+
"no-bitwise": "off",
111+
"no-caller": "error",
112+
"no-catch-shadow": "off",
113+
"no-confusing-arrow": "error",
114+
"no-console": "off",
115+
"no-continue": "off",
116+
"no-div-regex": "error",
117+
"no-duplicate-imports": "error",
118+
"no-else-return": "off",
119+
"no-empty": [
120+
"warn",
121+
{
122+
"allowEmptyCatch": true
123+
}
124+
],
125+
"no-empty-function": "off",
126+
"no-eq-null": "error",
127+
"no-eval": "error",
128+
"no-extend-native": "off",
129+
"no-extra-bind": "error",
130+
"no-extra-label": "error",
131+
"no-extra-parens": "off",
132+
"no-floating-decimal": "error",
133+
"no-global-assign": "error",
134+
"no-implicit-globals": "error",
135+
"no-implied-eval": "error",
136+
"no-inline-comments": "off",
137+
"no-inner-declarations": [
138+
"error",
139+
"functions"
140+
],
141+
"no-invalid-this": "off",
142+
"no-iterator": "error",
143+
"no-label-var": "error",
144+
"no-labels": "error",
145+
"no-lone-blocks": "error",
146+
"no-lonely-if": "off",
147+
"no-loop-func": "off",
148+
"no-magic-numbers": "off",
149+
"no-mixed-operators": "error",
150+
"no-mixed-requires": "error",
151+
"no-multi-spaces": "off",
152+
"no-multi-str": "error",
153+
"no-multiple-empty-lines": "error",
154+
"no-negated-condition": "error",
155+
"no-nested-ternary": "off",
156+
"no-new": "error",
157+
"no-new-func": "error",
158+
"no-new-object": "error",
159+
"no-new-require": "error",
160+
"no-new-wrappers": "error",
161+
"no-octal-escape": "error",
162+
"no-param-reassign": "off",
163+
"no-path-concat": "error",
164+
"no-plusplus": "off",
165+
"no-process-env": "off",
166+
"no-process-exit": "off",
167+
"no-proto": "error",
168+
"no-prototype-builtins": "off",
169+
"no-restricted-globals": "error",
170+
"no-restricted-imports": "error",
171+
"no-restricted-modules": "error",
172+
"no-restricted-properties": "error",
173+
"no-restricted-syntax": "error",
174+
"no-return-assign": "off",
175+
"no-script-url": "error",
176+
"no-self-compare": "error",
177+
"no-sequences": "error",
178+
"no-shadow": "off",
179+
"no-shadow-restricted-names": "error",
180+
"no-spaced-func": "error",
181+
"no-sync": "off",
182+
"no-tabs": "off",
183+
"no-template-curly-in-string": "error",
184+
"no-ternary": "off",
185+
"no-throw-literal": "error",
186+
"no-trailing-spaces": "error",
187+
"no-undef-init": "error",
188+
"no-undefined": "warn",
189+
"no-underscore-dangle": "off",
190+
"no-unmodified-loop-condition": "error",
191+
"no-unneeded-ternary": [
192+
"error",
193+
{
194+
"defaultAssignment": true
195+
}
196+
],
197+
"no-unsafe-negation": "error",
198+
"no-unused-expressions": "error",
199+
"no-unused-vars": "off",
200+
"no-use-before-define": "off",
201+
"no-useless-call": "error",
202+
"no-useless-computed-key": "error",
203+
"no-useless-concat": "off",
204+
"no-useless-constructor": "error",
205+
"no-useless-escape": "off",
206+
"no-useless-rename": "error",
207+
"no-var": "off",
208+
"no-void": "error",
209+
"no-warning-comments": "off",
210+
"no-whitespace-before-property": "error",
211+
"no-with": "error",
212+
"object-curly-newline": "off",
213+
"object-curly-spacing": "off",
214+
"object-property-newline": [
215+
"off",
216+
{
217+
"allowMultiplePropertiesPerLine": true
218+
}
219+
],
220+
"object-shorthand": "off",
221+
"one-var": "off",
222+
"one-var-declaration-per-line": "off",
223+
"operator-assignment": "off",
224+
"operator-linebreak": "off",
225+
"padded-blocks": "off",
226+
"prefer-arrow-callback": "off",
227+
"prefer-const": "off",
228+
"prefer-numeric-literals": "error",
229+
"prefer-reflect": "off",
230+
"prefer-rest-params": "off",
231+
"prefer-spread": "error",
232+
"prefer-template": "off",
233+
"quote-props": "off",
234+
"quotes": "off",
235+
"radix": "error",
236+
"require-jsdoc": "off",
237+
"require-yield": "off",
238+
"rest-spread-spacing": "error",
239+
"semi": "off",
240+
"semi-spacing": "off",
241+
"sort-imports": "error",
242+
"sort-keys": "off",
243+
"sort-vars": "off",
244+
"space-before-blocks": "off",
245+
"space-before-function-paren": "off",
246+
"space-in-parens": [
247+
"error",
248+
"never"
249+
],
250+
"space-infix-ops": "off",
251+
"space-unary-ops": "error",
252+
"spaced-comment": "off",
253+
"strict": "error",
254+
"symbol-description": "error",
255+
"template-curly-spacing": "error",
256+
"unicode-bom": [
257+
"error",
258+
"never"
259+
],
260+
"valid-jsdoc": "off",
261+
"vars-on-top": "off",
262+
"wrap-iife": "error",
263+
"wrap-regex": "off",
264+
"yield-star-spacing": "error",
265+
"yoda": [
266+
"error",
267+
"never"
268+
]
269+
}
270+
}

.github/workflows/ci.yaml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: ci
2+
3+
# Author: @MikeRalphson
4+
# Issue : n/a
5+
# Desc : This workflow runs a build on pushes to master and prs
6+
7+
# run this on push to master
8+
on:
9+
push:
10+
branches: [master]
11+
pull_request:
12+
# The branches below must be a subset of the branches above
13+
branches: [master]
14+
15+
jobs:
16+
build:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v1 # checkout repo content
20+
- uses: actions/setup-node@v1 # setup Node.js
21+
with:
22+
node-version: '12.x'
23+
- name: Audit package-lock.json
24+
run: npx package-lock-audit ./package-lock.json
25+
- name: Install deps
26+
run: npm i
27+
- name: Run lint
28+
run: npm run lint
29+
- name: Run sass
30+
run: npm run sass
31+
- name: Run build
32+
run: npm run build

.github/workflows/deploy.yaml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: deploy
2+
3+
# Author: @MikeRalphson
4+
# Issue : n/a
5+
# Desc : This workflow runs a build and deploy to the gh-pages branch for an 11ty project
6+
7+
# run this on push to master
8+
on:
9+
push:
10+
branches: [master]
11+
12+
jobs:
13+
deploy:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v1 # checkout repo content
17+
- uses: actions/setup-node@v1 # setup Node.js
18+
with:
19+
node-version: '12.x'
20+
- name: Audit package-lock.json
21+
run: npx package-lock-audit ./package-lock.json
22+
- name: Install deps
23+
run: npm i
24+
- name: Run lint
25+
run: npm run lint
26+
- name: Run sass
27+
run: npm run sass
28+
- name: Run build
29+
run: npm run build
30+
- name: Deploy 🚀
31+
uses: JamesIves/[email protected]
32+
with:
33+
branch: gh-pages # The branch the action should deploy to.
34+
folder: _site # The folder the action should deploy.

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules/
2+
_site/
3+
src/assets/stylesheets

0 commit comments

Comments
 (0)