Add and set up Eleventy (11ty)

Right now this just copies over static assets; no processing done
:P
This commit is contained in:
Badri Sunderarajan 2020-04-10 15:32:57 +05:30
parent e0bad40637
commit ba1301aeaf
3 changed files with 3114 additions and 24 deletions

13
.eleventy.js Normal file
View File

@ -0,0 +1,13 @@
module.exports = function(eleventyConfig) {
eleventyConfig.addPassthroughCopy('src/*.htm')
eleventyConfig.addPassthroughCopy('src/img')
return {
dir: {
input: "src",
output: "dist",
},
passthroughFileCopy: true,
}
}

View File

@ -8,9 +8,11 @@
},
"scripts": {
"build:css": "postcss src/tailwind.css -o dist/tailwind.css",
"build:html": "eleventy",
"watch": "watch 'npm run build:css' ./src"
},
"devDependencies": {
"@11ty/eleventy": "^0.10.0",
"postcss-cli": "^7.1.0"
}
}

3123
yarn.lock

File diff suppressed because it is too large Load Diff