Migrate build system from Gulp+Handlebars to Eleventy+Nunjucks#750
Open
Migrate build system from Gulp+Handlebars to Eleventy+Nunjucks#750
Conversation
- Add eleventy.config.js with renderBlock shortcode, passthrough copy, and filters - Add src/_data/site.js and src/_data/pages.js data layer (reads existing config.json files) - Add src/_includes/base.njk layout (converted from index-template.html) - Add 21 Nunjucks block templates in src/_includes/blocks/ - Add src/pages.njk pagination template to generate all pages - Add .eleventyignore to exclude non-template source dirs - Update package.json: replace gulp/handlebars deps with @11ty/eleventy, update scripts
- Delete gulpfile.js (no longer needed with Eleventy) - Delete all 22 Handlebars templates in src/templates/ - These have been replaced by Nunjucks templates in src/_includes/
- Move all non-generated content (Demos/, Scenes/, css/, js/, playground/, sandbox/, viewer.html, etc.) from build/ to static/ at project root - Configure Eleventy passthrough copy to output static/ contents to build root - Add build/ to .gitignore (build output should not be tracked) - build/ was previously removed from git tracking via git rm --cached
…itecture # Conflicts: # build/community/index.html # build/metaverse/index.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR replaces the Gulp+Handlebars build system with Eleventy (11ty) + Nunjucks, modernizing the site generation pipeline while preserving the existing content structure and output.
Reviewer - Github is not showing the changes as this has more than 4000 changes mostly move and deletes. Please pull it if you want to check how it is working or watch the branch here - https://github.com/BabylonJS/Website/tree/update-website-architecture
Changes
New: Eleventy build system
Removed: Gulp build system
Reorganized: Static assets
Scripts
Notes