How birteliu/morgengruen_tw works
Project type and purpose
• This is a static front-end website (“山山綠”) built with a simple static-site generator/workflow.
• It uses npm+Gulp to compile SCSS, process HTML templates, bundle JS and copy assets into a deployable dist/ folder.
File structure
• Top-level
– src/ – all authoring artifacts: HTML pages, Nunjucks‐style templates & macros, SCSS, JS, images, fonts
– dist/ – the output of your build (mirrors src/ structure but with compiled CSS, processed HTML, bundled JS, maps, etc.)
– gulpfile.js – defines dev/watch/build tasks
– package.json – Node dependencies (gulp, plugins, bootstrap)
– readme.md – build instructions and third-party libs
• Patterns
– Templates + macros → HTML pages
– SCSS partials/components → compiled CSS + sourcemaps
– JS sources (jQuery + main.js) → concatenated/bundled JS
– Static assets (fonts/images) → copied
README for additional insights
• Build commands:
• npm install
• gulp dev – compile once
• gulp watch – live‐reload watch
• Third-party:
• Bootstrap v5.2.0
• Custom fonts from FakePearl repo
Detail
• Break out each src/ subfolder as its own node.
• Individual Gulp tasks (sass, templates, js, assets, watch).
• Live‐reload dev server as a distinct component.
• Final dist/ structure so viewers see exactly what’s deployed.