ProjectEvergreen / greenwood

Greenwood is your workbench for the web, embracing web standards from the ground up to empower your stack from front to back.
https://www.greenwoodjs.io
MIT License
96 stars 9 forks source link

feature/issue 1008 netlify adapter plugin #1128

Closed thescientist13 closed 1 year ago

thescientist13 commented 1 year ago

Related Issue

relates to #1008

WIP demo - https://github.com/ProjectEvergreen/greenwood-demo-adapter-netlify/pull/4

Summary of Changes

  1. Created Netlify adapter plugin package
  2. Added test cases

Had to do a temp work around for #1136

TODO

  1. [x] Add multiple API route and SSR page tests
  2. [x] Refactor out some duplicate output generation code
  3. [x] netlify.toml integration / generation needed (might be a race condition if the build output is needed when the Netlify build starts though?
  4. [x] manifest output options? - https://github.com/netlify/zip-it-and-ship-it#options - don't think it is needed
  5. [x] bespoke copying of execute route module and API assets directories? - related to output consolidation and is being tracked in #1118
  6. [x] need to handle all Request / Response properties in adapter entry point, like headers and method
  7. [x] update to plugin list in website docs
  8. [x] README
    • Netlify configuration / setup
    • features
    • caveats
  9. [x] Fix Windows specs
  10. [x] Local Netlify CLI / context integration? (or track as own issue)
  11. [x] Integrate with #1138 and update test cases
  12. [x] Caveats tracking
    • Edge runtime support (will probably break up #1008 and put Edge into its own issue)
    • Netlify CLI support (e.g. local dev with Netlify CLI?) - import.meta.url is broken 🤷‍♂️
    • How to handle context?