swyxio / ssg

Svelte Site Generator. why try this? because sapper has a lot of setup, and isn't great at pipelining data:
https://www.swyx.io/writing/bad-ways-to-get-data/
MIT License
163 stars 7 forks source link

[v1] notes for ssg rewrite #22

Open swyxio opened 4 years ago

swyxio commented 4 years ago

The primary way ssg will work:

  1. ReadConfig
    • Read in all plugins and markdown and site global info
    • Create plan to create indexes
  2. Refresh
    • Pull indexes, run thru all plugins, create desired manifest
    • Pull existing files/create old Manifest (skipped in DEV)
  3. Plan (skipped in DEV)
    • Diff desired vs old manifest
    • generate list of pages (and other files) to generate
  4. Build (in DEV - only build on demand)
    • Pull data slices
    • Generate HTML, JS, CSS and JSON
  5. PostBuild (n/a in DEV)
    • FullData => RSS
    • Serverside Redirects?

Concepts:

Features to design for:

nonfeatures

===

https://github.com/sw-yx/ssg-prototype

swyxio commented 4 years ago

Other attempts at a Svelte Site Generator

swyxio commented 4 years ago

https://twitter.com/addyosmani/status/1261183257762164736?s=20

swyxio commented 4 years ago

add remark autolink headings https://github.com/sw-yx/swyxdotio/pull/35#issuecomment-632162753