Introduced 11ty
Set new version based on all changes since last version change, which was 0.4.2. Removed obsolete devDependencies, now only using 11ty and sass. Update to package.json fields - New sass version - Update to project links - Rearranged fields - New commands for 'scripts' that include changes from branch testing-npm-scripts - Added field 'private' to prevent publishing by mistake Added configuration for 11ty to reflect previous behaviour from gulp. - Moved source/templates/demo/data.json to source/screens/demo.json so it can be used - Fixed demo template so it can use the data source - Removed source/data/demo.json which was not used
This commit is contained in:
parent
e856e53114
commit
ef9d665849
6 changed files with 1267 additions and 20446 deletions
32
.eleventy.js
Normal file
32
.eleventy.js
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
module.exports = function (eleventyConfig) {
|
||||
eleventyConfig.setNunjucksEnvironmentOptions({
|
||||
// throwOnUndefined: true,
|
||||
trimBlocks: true
|
||||
});
|
||||
|
||||
eleventyConfig.addGlobalData("permalink", () => {
|
||||
return (data) => `${data.page.filePathStem}.${data.page.outputFileExtension}`;
|
||||
});
|
||||
|
||||
eleventyConfig.addPassthroughCopy({"source/art/images": "art"});
|
||||
|
||||
eleventyConfig.addPassthroughCopy({"source/art/favicons/**/*.+(ico|png|svg)": "."});
|
||||
|
||||
eleventyConfig.addPassthroughCopy({"source/code/**/*.js": "js"});
|
||||
|
||||
eleventyConfig.addPassthroughCopy({"source/data/**/*.json": "json"});
|
||||
|
||||
eleventyConfig.addPassthroughCopy("vendor");
|
||||
|
||||
return {
|
||||
dir: {
|
||||
input: "source/screens",
|
||||
output: "build",
|
||||
includes: "../templates",
|
||||
data: "../data"
|
||||
},
|
||||
markdownTemplateEngine: "njk",
|
||||
htmlTemplateEngine: "njk",
|
||||
templateFormats: ["html", "njk"]
|
||||
}
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue