v0.33.0-alpha.8
Pre-releaseOverview
This release in the v0.33.0 release line introduces a breaking change by moving markdown support to be a plugin, formally removed the eject command, made a bug fix for nested SSR pages and API routes support in adapter plugins, and made a number of refinements to the TypeScript new project scaffolding output.
# 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.8
- feat(plugins): #1247 standalone markdown plugin (BREAKING)
- enhancement(cli): issue 1390 deprecate
ejectcommand (BREAKING) - bug(adapters): issue 1462 fix nested routing for all adapter plugins
- enhancement(cli): issue 1552 replace
commanderwithutil.parseArgsin@greenwood/cli(thanks @shyok21 🙌 )
Features (Early Access)
N / A
Breaking Changes
Markdown
Markdown support has been moved to a standalone plugin now, but the configuration is still the same. You'll now need to install @greenwood/plugin-markdown and add it to your Greenwood configuration file.
// before
export default {
// ...
markdown: {
plugins: [
"@mapbox/rehype-prism",
"remark-gfm",
],
},
};// after
import { greenwoodPluginMarkdown } from "@greenwood/plugin-markdown";
export default {
// ...
plugins: [
greenwoodPluginMarkdown({
plugins: [
"@mapbox/rehype-prism",
"remark-gfm",
],
}),
],
};eject command
The eject has been officially removed in this release and there is no alternative. (this was soft deprecated during the documentation website refresh)