Skip to content

v0.27.0-alpha.7

Pre-release
Pre-release
Compare
Choose a tag to compare
@thescientist13 thescientist13 released this 21 Nov 19:29
· 261 commits to master since this release

Overview

This version introduces the ability to leverage Greenwood's import plugins for CSS and JSON on the server side so that they can be used with ESM / import. Assuming all goes well, this will be the last alpha release prior to making v0.27.0 generally available. See the last release notes for prior breaking changes.

In development docs here, full release blog will come out with the final release.

If using Yarn, you can can upgrade all your @greenwood packages at once

$ yarn upgrade --scope @greenwood --latest

Changelog

https://github.com/ProjectEvergreen/greenwood/issues?q=label%3Av0.27.0+label%3Aalpha.7

  1. support resource plugin based transformations for standard module formats (ex: import JSON, CSS) for SSR

Breaking Changes

None

Known Issues

N / A

Diff

$ git diff v0.27.0-alpha.6 v0.27.0-alpha.7 --stat | grep -v "www"
 .github/workflows/ci-exp.yml                       | 28 +++++++
 .github/workflows/ci-win-exp.yml                   | 25 ++++++
 .mocharc.cjs                                       |  5 +-
 .nvmrc                                             |  2 +-
 lerna.json                                         |  2 +-
 package.json                                       |  6 +-
 packages/cli/package.json                          |  2 +-
 packages/cli/src/config/rollup.config.js           |  3 +-
 packages/cli/src/lifecycles/graph.js               |  2 +-
 packages/cli/src/loader.js                         | 68 +++++++++++++++++
 packages/init/package.json                         |  2 +-
 packages/plugin-babel/package.json                 |  4 +-
 packages/plugin-google-analytics/package.json      |  4 +-
 packages/plugin-graphql/package.json               |  4 +-
 packages/plugin-import-commonjs/package.json       |  4 +-
 packages/plugin-import-css/README.md               | 51 ++++++-------
 packages/plugin-import-css/package.json            |  4 +-
 packages/plugin-import-css/src/index.js            |  5 +-
 .../exp-build.prerender.spec.js                    | 89 ++++++++++++++++++++++
 .../cases/exp-build.prerender/greenwood.config.js  |  8 ++
 .../test/cases/exp-build.prerender/package.json    |  4 +
 .../exp-build.prerender/src/components/footer.css  |  1 +
 .../exp-build.prerender/src/components/footer.js   | 25 ++++++
 .../cases/exp-build.prerender/src/pages/index.md   |  3 +
 .../exp-build.prerender/src/templates/app.html     | 12 +++
 packages/plugin-import-json/README.md              | 23 +++---
 packages/plugin-import-json/package.json           |  4 +-
 packages/plugin-import-json/src/index.js           | 10 ++-
 .../exp-build.prerender.spec.js                    | 89 ++++++++++++++++++++++
 .../cases/exp-build.prerender/greenwood.config.js  |  8 ++
 .../test/cases/exp-build.prerender/package.json    |  5 ++
 .../exp-build.prerender/src/components/footer.js   | 22 ++++++
 .../cases/exp-build.prerender/src/pages/index.md   |  3 +
 .../exp-build.prerender/src/templates/app.html     | 12 +++
 packages/plugin-include-html/package.json          |  4 +-
 packages/plugin-polyfills/package.json             |  4 +-
 packages/plugin-postcss/package.json               |  4 +-
 packages/plugin-renderer-lit/package.json          |  4 +-
 packages/plugin-renderer-puppeteer/package.json    |  4 +-
 packages/plugin-typescript/package.json            |  4 +-
 test/test-loader.js                                | 35 +++++++++
 yarn.lock                                          |  8 +-
 44 files changed, 547 insertions(+), 81 deletions(-)