Skip to content

v0.17.0-alpha.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@thescientist13 thescientist13 released this 07 Oct 15:18
· 476 commits to master since this release

Overview

This is a pre minor release that includes (implicit) support for Lit@2 and compatibility with puppeteer pre-rendering as well as introduces a new Copy Plugin API. Rollup and some associated plugins also had their versions updated to support newer features in package.json like exports and sideEffects. For developing in the Greenwood monorepo itself, there is now full M1 support for macOS contributors.

Eventually any Lit specific code will be moved off into plugins before the 1.0 release as part of our upcoming SSR work.

Given that Node v12 is in maintenance (LTS) mode, we recommend users to start migrating to Node v14.

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%3Aalpha.0+label%3Av0.17.0

  1. Create a general purpose copy mechanism
  2. Upgrade latest Rollup Deps (CLI only)
  3. (Implicit) Lit@2 support

Breaking Changes

If you are using the Polyfills plugin, you will now need to spread the plugin function call in your greenwood.config.js.

// before
plugins: [
  pluginPolyfills(),
]
  
// after
plugins: [
  ...pluginPolyfills(),
]

Known Issues

  1. Not with Greenwood per se, but just a recommendation for Lit users to be aware of limitations and best practices for using CSS with expressions.

Diff

% git diff v0.16.1 v0.17.0-alpha.0 --stat | grep -v "www/"
 greenwood.config.js                                |   2 +-
 lerna.json                                         |   2 +-
 package.json                                       |   5 +-
 packages/cli/package.json                          |  16 +-
 packages/cli/src/lifecycles/config.js              |   8 +-
 packages/cli/src/lifecycles/copy.js                |  81 +++---
 .../cli/src/plugins/copy/plugin-copy-assets.js     |  21 ++
 .../cli/src/plugins/copy/plugin-copy-graph-json.js |  14 +
 .../plugins/resource/plugin-optimization-mpa.js    |   2 +-
 .../src/plugins/resource/plugin-standard-html.js   |  20 +-
 .../build.config.mode-mpa.spec.js                  |  31 ++-
 .../src/pages/regex-test.html                      | 305 +++++++++++++++++++++
 .../build.config.mode-spa.spec.js                  |  63 ++++-
 .../test/cases/build.config.mode-spa/package.json  |   4 +-
 .../build.config.mode-spa/src/components/footer.js |   2 +-
 .../test/cases/build.config.mode-spa/src/index.js  |   6 +-
 .../build.config.mode-spa/src/routes/about.js      |   4 +-
 .../cases/build.config.mode-spa/src/routes/home.js |   4 +-
 .../build.default.import-node-modules.spec.js      |  89 ++++--
 .../build.default.import-node-modules/package.json |   2 +-
 .../src/pages/index.html                           |   5 +-
 .../src/scripts/main.js                            |  14 +-
 .../build.plugins.error-type.spec.js               |   2 +-
 .../cases/develop.default/develop.default.spec.js  |  79 ++++--
 .../cases/develop.default/import-map.snapshot.json | 274 ++++++++++++++++++
 .../cli/test/cases/develop.default/package.json    |   6 +-
 packages/plugin-babel/package.json                 |   4 +-
 packages/plugin-google-analytics/package.json      |   4 +-
 packages/plugin-graphql/package.json               |   4 +-
 .../test/cases/query-children/package.json         |   2 +-
 .../cases/query-children/query-children.spec.js    |  66 ++++-
 .../query-children/src/components/posts-list.js    |   2 +-
 .../cases/query-custom-frontmatter/package.json    |   2 +-
 .../query-custom-frontmatter.spec.js               |  75 +++--
 .../src/components/posts-list.js                   |   2 +-
 .../test/cases/query-graph/package.json            |   2 +-
 .../test/cases/query-graph/query-graph.spec.js     |  66 ++++-
 .../query-graph/src/components/debug-output.js     |   2 +-
 .../test/cases/query-menu/package.json             |   2 +-
 .../test/cases/query-menu/query-menu.spec.js       |  66 ++++-
 .../test/cases/query-menu/src/components/header.js |   2 +-
 packages/plugin-import-commonjs/package.json       |   6 +-
 packages/plugin-import-css/package.json            |   4 +-
 packages/plugin-import-json/package.json           |   4 +-
 packages/plugin-polyfills/README.md                |   4 +-
 packages/plugin-polyfills/package.json             |   6 +-
 packages/plugin-polyfills/src/index.js             |  65 +++--
 .../test/cases/default/greenwood.config.js         |   2 +-
 .../test/cases/lit/greenwood.config.js             |   7 +
 .../plugin-polyfills/test/cases/lit/lit.spec.js    | 182 ++++++++++++
 .../plugin-polyfills/test/cases/lit/package.json   |   6 +
 packages/plugin-postcss/package.json               |   4 +-
 packages/plugin-typescript/package.json            |   4 +-
 .../getting-started-repo-unstyled-partial.png      | Bin 0 -> 14983 bytes
 yarn.lock                                          | 185 +++++++------
 79 files changed, 1596 insertions(+), 341 deletions(-)