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
32 lines
849 B
JavaScript
32 lines
849 B
JavaScript
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"]
|
|
}
|
|
};
|