initial commit

This commit is contained in:
Max Böck 2019-04-13 14:06:35 +02:00
commit d73031a214
11 changed files with 71 additions and 0 deletions

33
.eleventy.js Normal file
View file

@ -0,0 +1,33 @@
const syntaxHighlight = require('@11ty/eleventy-plugin-syntaxhighlight')
const htmlMinifier = require('html-minifier')
module.exports = function(config) {
config.addPlugin(syntaxHighlight)
config.addLayoutAlias('base', 'base.njk')
config.addTransform('htmlmin', function(content, outputPath) {
if (outputPath.endsWith('.html')) {
return htmlMinifier.minify(content, {
useShortDoctype: true,
removeComments: true,
collapseWhitespace: true
})
}
return content
})
return {
dir: {
input: 'src',
output: 'dist',
includes: 'includes',
layouts: 'layouts',
data: 'data'
},
templateFormats: ['njk', 'md'],
htmlTemplateEngine: 'njk',
markdownTemplateEngine: 'njk',
passthroughFileCopy: true
}
}

4
.gitignore vendored Normal file
View file

@ -0,0 +1,4 @@
node_modules
dist
functions
yarn-error.log

0
LICENSE Normal file
View file

0
README.md Normal file
View file

0
lambda/next.js Normal file
View file

0
lambda/prev.js Normal file
View file

0
lambda/random.js Normal file
View file

5
netlify.toml Normal file
View file

@ -0,0 +1,5 @@
[build]
command = "yarn run build"
publish = "dist"
NODE_ENV = "8.9.0"
Functions = "functions"

29
package.json Normal file
View file

@ -0,0 +1,29 @@
{
"name": "webring",
"version": "1.0.0",
"description": "A boilerplate for hosting a webring on github/netlify",
"author": "Max Böck",
"license": "MIT",
"repository": {
"type": "git",
"url": "http://github.com/maxboeck/webring"
},
"scripts": {
"start": "gulp build:dev && yarn run serve",
"serve": "eleventy serve",
"build": "gulp build && yarn run build:lambda",
"serve:lambda": "netlify-lambda serve lambda",
"build:lambda": "netlify-lambda build lambda"
},
"dependencies": {
"@11ty/eleventy": "^0.8.2",
"@11ty/eleventy-plugin-syntaxhighlight": "^2.0.0",
"browser-sync": "^2.26.3",
"del": "^3.0.0",
"gulp": "^4.0.0",
"gulp-sass": "^4.0.1",
"html-minifier": "^3.5.20",
"netlify-lambda": "^1.1.1",
"require-dir": "^1.2.0"
}
}

0
src/data/members.json Normal file
View file

0
src/index.njk Normal file
View file