v0.33.0-alpha.5
Pre-releaseOverview
This release in the v0.33.0 release line continues some ongoing refactoring around layouts by removing default page and layouts, enhancements and optimizations for SSR page generation, and misc TypeScript related enhancements and fixes.
# npm
$ npm i -D @greenwood/cli@alpha
# Yarn 1.x (classic)
$ yarn upgrade @greenwood/cli@alpha --dev
# pnpm
$ pnpm i -D @greenwood/cli@alphaChangelog
https://github.com/ProjectEvergreen/greenwood/issues?q=label%3Av0.33.0%20label%3Aalpha.5
- update types for Resource plugin serve lifecycles)
- support TypeScript-based plugin configuration files
- add type checking script to init TypeScript template scaffolding
- add recommended lib compiler setting to init template TypeScript scaffolding
- shared CSS import attribute paths across layouts and SSR pages are linked as
/undefinedin production builds - remove default content (pages / layouts) from Greenwood
- eliminate unnecessary SSR page instantiation during graph lifecycle
Features (Early Access)
N / A
Breaking Changes
Default Pages and Layouts
With this release, Greenwood removed its built-in default layouts and pages content, specifically:
- app.html
- page.html
- 404.html
If you find any unexpected missing content, you will likely need to provide your own content for these pages going forward. For reference, here were the default contents of these files for your reference
<!-- app.html -->
<!doctype html>
<html lang="en" prefix="og:http://ogp.me/ns#">
<head>
<title>My App</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
</head>
<body>
<page-outlet></page-outlet>
</body>
</html><!-- page.html -->
<html>
<head>
<body>
<content-outlet></content-outlet>
</body>
</head>
</html><!-- 404.html -->
<!doctype html>
<html lang="en" prefix="og:http://ogp.me/ns#">
<head>
<title>Page Not Found</title>
<style>
h1 {
text-align: center;
}
</style>
</head>
<body>
<h1>Sorry, unfortunately the page could not be found.</h1>
</body>
</html>Keep this in mind in conjunction with a recent breaking change around layouts merging behavior in a previous release - https://github.com/ProjectEvergreen/greenwood/releases/tag/v0.33.0-alpha.2
Known Issues
- comment markers missing from generated HTML (breaks Lit SSR)
- shared CSS import attribute paths not actually fixed it seems
- errant console log