[x] Consolidate template-utils.js / align with standard HTML plugin and leverage a consistent templatesDir context
[x] Documentation (build + serve commands)
Need node_modules
need greenwood.config.js
need output directory
[x] clean up console logs / track TODOs
[x] Context plugins in SSR routes?
[ ] "vendor" new rollup plugins (nice to have)
json
import URL
Thoughts / Questions / Enhancements Tracking
[x] Should probably consider putting resources and other compilation related information into manifest.json and document as build output with tests. (could do this as a guide?) - https://github.com/ProjectEvergreen/greenwood/issues/1008
To the above, if we ditch workers, we might not have to do the whole generated code output like we're doing to split the page code from the worker code?
Related Issue
resolves #946
Summary of Changes
serve
command + hybrid server using graph.json and manifest.json to manage serving API routes and SSR pagesserve
command from runningbuild
andserve
(greenwood serve
now requires that agreenwood build
has been run)templateDir
to contextTODO
serve
command from bundle lifecycle and add test case in /cli/src/index.js and update specsStatic Router spec failing / conflicting (seems to be because of needing to scaffold lib/router.js)[x] Address issue with WCC and wrapping tags (related to wcc wrapping based on any definition it finds now that we are bundling) - https://github.com/ProjectEvergreen/wcc/issues/114
templatesDir
contextjsonThoughts / Questions / Enhancements Tracking
fs/promises
- https://github.com/rollup/plugins/issues/1120URL
plugin implementation (seems easy enough)