Releases: ProjectEvergreen/greenwood
v0.19.2
Overview
Couple quick minor fixes to handle resolving of source maps with greenwood serve
and properly handle 404 page partial generation in MPA mode.
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%3Av0.19.2
- source maps not resolving when running
serve
- MPA mode generating malformed partial output file for 404 page
Breaking Changes
N / A
Known Issues
N / A
Diff
% git diff v0.19.1 v0.19.2 --stat | grep -v "www/"
lerna.json | 2 +-
packages/cli/package.json | 2 +-
packages/cli/src/lifecycles/serve.js | 5 ++-
.../plugins/resource/plugin-optimization-mpa.js | 2 +-
.../build.config.mode-mpa.spec.js | 10 +++++
.../test/cases/serve.default/serve.default.spec.js | 45 +++++++++++++++++++---
.../cases/serve.default/src/assets/router.js.map | 1 +
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/package.json | 4 +-
packages/plugin-import-json/package.json | 4 +-
packages/plugin-include-html/package.json | 4 +-
packages/plugin-polyfills/package.json | 4 +-
packages/plugin-postcss/package.json | 4 +-
packages/plugin-typescript/package.json | 4 +-
19 files changed, 79 insertions(+), 32 deletions(-)
v0.19.1
Overview
This fix for escape character support in plugin-import-css was meant to go out with the v0.19.0 release, so doing a fast follow to get it out
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%3Av0.19.1
Breaking Changes
N / A
Known Issues
N / A
Diff
% git diff v0.19.0 v0.19.1 --stat | grep -v "www/"
lerna.json | 2 +-
packages/cli/package.json | 2 +-
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/package.json | 4 ++--
packages/plugin-import-css/src/index.js | 2 +-
.../test/cases/develop.default/develop.default.spec.js | 7 +++++--
.../plugin-import-css/test/cases/develop.default/src/main.css | 10 ++++++++--
packages/plugin-import-json/package.json | 4 ++--
packages/plugin-include-html/package.json | 4 ++--
packages/plugin-polyfills/package.json | 4 ++--
packages/plugin-postcss/package.json | 4 ++--
packages/plugin-typescript/package.json | 4 ++--
17 files changed, 38 insertions(+), 29 deletions(-)
v0.19.0
Overview
In addition to some bug fixes, this minor releases two cool new features to Greenwood:
- A new
init
package for scaffolding out a new Greenwood project! (Thanks @hutchgrant 🙌 ) - An plugin for getting more (static) HTML from your JavaScript. HTML Imports* are back!
Check out our v0.19.0 release blog post to learn more about these new features!
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%3Av0.19.0
- Init Command and Package
- Plugin: HTML Include
- incorrect
<head>
tag assembly for app and page templates when page content also includes head "like" tags - inline optimization is leaving behind tracking markers for inline
<script>
tags
Breaking Changes
N / A
Known Issues
N / A
Diff
% git diff v0.18.0 v0.19.0 --stat | grep -v "www/"
.ls-lint.yml | 3 +-
.mocharc.js | 2 +-
greenwood.config.js | 4 +-
lerna.json | 2 +-
packages/cli/package.json | 2 +-
packages/cli/src/config/rollup.config.js | 3 +-
.../src/plugins/resource/plugin-standard-html.js | 162 +++++++++++----------
.../build.config-optimization-inline.spec.js | 2 +-
...default.workspace-template-page-and-app.spec.js | 26 +++-
.../src/templates/app.html | 4 +
packages/init/README.md | 43 ++++++
packages/init/package.json | 28 ++++
packages/init/src/copy-folder.js | 43 ++++++
packages/init/src/index.js | 150 +++++++++++++++++++
packages/init/src/template/greenwood.config.js | 3 +
packages/init/src/template/package.json | 14 ++
packages/init/src/template/src/pages/index.md | 1 +
.../test/cases/build.default/build.default.spec.js | 64 ++++++++
.../cases/develop.default/develop.default.spec.js | 146 +++++++++++++++++++
.../test/cases/init.default/init.default.spec.js | 106 ++++++++++++++
.../init/test/cases/init.yarn/init.yarn.spec.js | 67 +++++++++
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/package.json | 4 +-
packages/plugin-import-json/package.json | 4 +-
packages/plugin-include-html/README.md | 157 ++++++++++++++++++++
packages/plugin-include-html/package.json | 28 ++++
packages/plugin-include-html/src/index.js | 59 ++++++++
.../build.default.custom-element.spec.js | 81 +++++++++++
.../greenwood.config.js | 7 +
.../build.default-custom-element/package.json | 3 +
.../src/components/footer.js | 20 +++
.../src/pages/index.html | 8 +
.../build.default.link-tag.spec.js | 81 +++++++++++
.../build.default-link-tag/greenwood.config.js | 7 +
.../src/includes/header.html | 5 +
.../build.default-link-tag/src/pages/index.html | 8 +
packages/plugin-polyfills/package.json | 4 +-
packages/plugin-postcss/package.json | 4 +-
packages/plugin-typescript/package.json | 4 +-
yarn.lock | 13 ++
55 files changed, 1514 insertions(+), 168 deletions(-)
v0.19.0-alpha.3
Overview
This minor pre-release introduces some bug fixes in preparation of the final v0.19.0 release. See the previous release notes to learn more about the new Init command.
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%3Av0.19.0+label%3Aalpha.3
- Restore
stdio
as part ofinit
command - incorrect
<head>
tag assembly for app and page templates when page content also includes head "like" tags - inline optimization is leaving behind tracking markers for inline
<script>
tags
Breaking Changes
N / A
Known Issues
N / A
Diff
% git diff v0.19.0-alpha.2 v0.19.0-alpha.3 --stat | grep -v "www/"
README.md | 11 +-
lerna.json | 2 +-
packages/cli/package.json | 2 +-
packages/cli/src/config/rollup.config.js | 3 +-
.../src/plugins/resource/plugin-standard-html.js | 162 +++++++++++----------
.../build.config-optimization-inline.spec.js | 2 +-
...default.workspace-template-page-and-app.spec.js | 26 +++-
.../src/templates/app.html | 4 +
packages/init/package.json | 2 +-
packages/init/src/index.js | 14 +-
.../test/cases/build.default/build.default.spec.js | 2 +-
.../cases/develop.default/develop.default.spec.js | 2 +-
.../init/test/cases/init.yarn/init.yarn.spec.js | 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/package.json | 4 +-
packages/plugin-import-json/package.json | 4 +-
packages/plugin-polyfills/package.json | 4 +-
packages/plugin-postcss/package.json | 4 +-
packages/plugin-typescript/package.json | 4 +-
23 files changed, 160 insertions(+), 112 deletions(-)
v0.19.0-alpha.2
Overview
This minor pre-release introduces a brand new way to get started with Greenwood, through a new init
package for scaffolding out a new Greenwood project! Try it out
mkdir my-app && cd my-app
npx @greenwood/init
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%3Av0.19.0+label%3Aalpha.2
Breaking Changes
N / A
Known Issues
N / A
Diff
% git diff v0.18.0 v0.19.0-alpha.2 --stat | grep -v "www/"
.ls-lint.yml | 3 +-
.mocharc.js | 2 +-
README.md | 11 +-
lerna.json | 2 +-
packages/cli/package.json | 2 +-
packages/init/README.md | 43 ++++++
packages/init/package.json | 28 ++++
packages/init/src/copy-folder.js | 43 ++++++
packages/init/src/index.js | 138 +++++++++++++++++++
packages/init/src/template/greenwood.config.js | 3 +
packages/init/src/template/package.json | 14 ++
packages/init/src/template/src/pages/index.md | 1 +
.../test/cases/build.default/build.default.spec.js | 64 +++++++++
.../cases/develop.default/develop.default.spec.js | 146 +++++++++++++++++++++
.../test/cases/init.default/init.default.spec.js | 106 +++++++++++++++
.../init/test/cases/init.yarn/init.yarn.spec.js | 67 ++++++++++
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/package.json | 4 +-
packages/plugin-import-json/package.json | 4 +-
packages/plugin-polyfills/package.json | 4 +-
packages/plugin-postcss/package.json | 4 +-
packages/plugin-typescript/package.json | 4 +-
yarn.lock | 13 ++
31 files changed, 727 insertions(+), 37 deletions(-)
v0.18.0
Overview
This minor release introduces a Not Found (404) page mechanism with defaults and the ability to override and a HUD (head-up display) for development debugging, adds fixes and enhancements for export map handling for 3rd party dependencies, and adds implicit support for CSS files loaded as JS files in plugin-import-css.
➡️ Read our release blog post for a deep dive into a couple of these features! 🗒️
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%3Av0.18.0+label%3Aalpha.0
- Not Found (404) Page
- Add support for extension less JavaScript / CSS files (JS files "in disguise")
- HUD for local development HTML error handling
- Duplicate scoped package names in import map causing 500 errors in development
- Exports of entry points with relative paths are not getting added to the import map
Breaking Changes
N / A
Known Issues
N / A
Diff
% git diff v0.17.0 v0.18.0 --stat | grep -v "www/"
lerna.json | 2 +-
packages/cli/package.json | 3 +-
packages/cli/src/config/rollup.config.js | 4 +-
packages/cli/src/lifecycles/config.js | 9 +
packages/cli/src/lifecycles/graph.js | 40 +++-
packages/cli/src/lifecycles/prerender.js | 15 +-
.../src/plugins/resource/plugin-node-modules.js | 18 +-
.../plugins/resource/plugin-optimization-mpa.js | 30 +--
.../src/plugins/resource/plugin-standard-html.js | 237 ++++++++++++---------
packages/cli/src/templates/404.html | 18 ++
.../build.config.error-dev-server-hud.spec.js | 48 +++++
.../greenwood.config.js | 5 +
.../build.config-optimization-inline.spec.js | 2 +-
.../build.default.import-node-modules.spec.js | 6 +-
.../build.default.workspace-404-markdown.spec.js | 148 +++++++++++++
.../src/pages/404.md | 8 +
.../src/scripts/404.js | 1 +
.../src/scripts/header.js | 18 ++
.../src/styles/404.css | 3 +
.../src/styles/theme.css | 3 +
.../src/templates/app.html | 14 ++
.../build.default.workspace-404.spec.js | 148 +++++++++++++
.../build.default.workspace-404/src/pages/404.html | 16 ++
.../build.default.workspace-404/src/scripts/404.js | 1 +
.../src/scripts/header.js | 18 ++
.../build.default.workspace-404/src/styles/404.css | 3 +
.../src/styles/theme.css | 3 +
.../src/templates/app.html | 14 ++
.../build.default.workspace-nested.spec.js | 3 +-
.../test/cases/build.default/build.default.spec.js | 66 +++++-
.../develop.default.hud-disabled.spec.js | 114 ++++++++++
.../greenwood.config.js | 5 +
.../src/pages/index.html | 7 +
.../develop.default.hud.spec.js | 114 ++++++++++
.../cases/develop.default.hud/src/pages/index.html | 7 +
.../cases/develop.default/develop.default.spec.js | 191 ++++++++++++++++-
.../cli/test/cases/develop.default/package.json | 1 +
packages/plugin-babel/package.json | 4 +-
packages/plugin-google-analytics/package.json | 4 +-
packages/plugin-graphql/package.json | 4 +-
packages/plugin-graphql/src/queries/children.gql | 1 +
packages/plugin-graphql/src/queries/graph.gql | 1 +
packages/plugin-graphql/src/schema/graph.js | 3 +-
.../test/cases/query-graph/query-graph.spec.js | 3 +-
packages/plugin-import-commonjs/package.json | 4 +-
packages/plugin-import-css/README.md | 2 +-
packages/plugin-import-css/package.json | 4 +-
packages/plugin-import-css/src/index.js | 12 ++
.../test/cases/default/default.spec.js | 2 +-
.../cases/develop.default/develop.default.spec.js | 39 ++++
.../test/cases/develop.default/src/styles.css.js | 1 +
packages/plugin-import-json/package.json | 4 +-
packages/plugin-polyfills/package.json | 4 +-
packages/plugin-postcss/package.json | 4 +-
packages/plugin-typescript/package.json | 4 +-
test/smoke-test.js | 2 +-
yarn.lock | 108 ++++++++++
70 files changed, 1620 insertions(+), 175 deletions(-)
v0.18.0-alpha.0
Overview
This pre-minor release introduces a Not Found (404) page mechanism with defaults and the ability to override, provides fixes and enhancements for export map handling for 3rd party dependencies, and implicit support for CSS files loaded as JS files in plugin-import-css.
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%3Av0.18.0+label%3Aalpha.0
- Not Found (404) Page
- Add support for extension less JavaScript / CSS files (JS files "in disguise")
- Duplicate scoped package names in import map causing 500 errors in development
- Exports of entry points with relative paths are not getting added to the import map
Breaking Changes
N / A
Known Issues
N / A
Diff
% git diff v0.17.0 v0.18.0-alpha.0 --stat | grep -v "www/"
lerna.json | 2 +-
packages/cli/package.json | 3 +-
packages/cli/src/config/rollup.config.js | 4 +-
packages/cli/src/lifecycles/graph.js | 40 ++++-
packages/cli/src/lifecycles/prerender.js | 15 +-
.../src/plugins/resource/plugin-node-modules.js | 18 +-
.../plugins/resource/plugin-optimization-mpa.js | 30 ++--
.../src/plugins/resource/plugin-standard-html.js | 22 ++-
packages/cli/src/templates/404.html | 18 ++
.../build.default.workspace-404-markdown.spec.js | 148 ++++++++++++++++
.../src/pages/404.md | 8 +
.../src/scripts/404.js | 1 +
.../src/scripts/header.js | 18 ++
.../src/styles/404.css | 3 +
.../src/styles/theme.css | 3 +
.../src/templates/app.html | 14 ++
.../build.default.workspace-404.spec.js | 148 ++++++++++++++++
.../build.default.workspace-404/src/pages/404.html | 16 ++
.../build.default.workspace-404/src/scripts/404.js | 1 +
.../src/scripts/header.js | 18 ++
.../build.default.workspace-404/src/styles/404.css | 3 +
.../src/styles/theme.css | 3 +
.../src/templates/app.html | 14 ++
.../build.default.workspace-nested.spec.js | 3 +-
.../test/cases/build.default/build.default.spec.js | 66 ++++++-
.../cases/develop.default/develop.default.spec.js | 191 ++++++++++++++++++++-
.../cli/test/cases/develop.default/package.json | 1 +
packages/plugin-babel/package.json | 4 +-
packages/plugin-google-analytics/package.json | 4 +-
packages/plugin-graphql/package.json | 4 +-
packages/plugin-graphql/src/queries/children.gql | 1 +
packages/plugin-graphql/src/queries/graph.gql | 1 +
packages/plugin-graphql/src/schema/graph.js | 3 +-
.../test/cases/query-graph/query-graph.spec.js | 3 +-
packages/plugin-import-commonjs/package.json | 4 +-
packages/plugin-import-css/README.md | 2 +-
packages/plugin-import-css/package.json | 4 +-
packages/plugin-import-css/src/index.js | 12 ++
.../test/cases/default/default.spec.js | 2 +-
.../cases/develop.default/develop.default.spec.js | 39 +++++
.../test/cases/develop.default/src/styles.css.js | 1 +
packages/plugin-import-json/package.json | 4 +-
packages/plugin-polyfills/package.json | 4 +-
packages/plugin-postcss/package.json | 4 +-
packages/plugin-typescript/package.json | 4 +-
test/smoke-test.js | 2 +-
yarn.lock | 108 ++++++++++++
52 files changed, 999 insertions(+), 73 deletions(-)
v0.17.0
Overview
This minor release 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. We were also able to resolve a number of bugs. (v0.1.7.0-alpha.0
release notes)
Also a big shout to @aholtzman for a number of enhancements and copy edits to the project website, including adding this sweet Edit on GitHub button to all our documentation pages for quick access if you spot any ways to help improve them! 👀 ✌️
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%3Av0.17.0
-
plugin-postcss
extendConfig
option is broken with PostCSS error -
assets (fonts) with query strings not loading correctly with production build (
greenwood serve
) -
nested client side routing fallback index.html not working in SPA mode
-
handle no body tag and add specs for different HTML page possibilities
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
- 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 --stat | grep -v "www/"
greenwood.config.js | 2 +-
lerna.json | 2 +-
nyc.config.js | 4 +-
package.json | 5 +-
packages/cli/package.json | 16 +-
packages/cli/src/lifecycles/config.js | 8 +-
packages/cli/src/lifecycles/copy.js | 81 +++---
packages/cli/src/lifecycles/serve.js | 2 +-
.../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 | 33 ++-
.../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.default.workspace-templates-empty.spec.js | 183 +++++++++++++
.../src/pages/index.html | 17 ++
.../src/pages/no-body.html | 11 +
.../src/pages/no-head.html | 10 +
.../src/pages/shell.html | 3 +
.../src/scripts/main.js | 1 +
.../src/styles/main.css | 3 +
.../build.plugins.error-type.spec.js | 2 +-
.../cases/develop.default/develop.default.spec.js | 81 ++++--
.../cases/develop.default/import-map.snapshot.json | 274 ++++++++++++++++++
.../cli/test/cases/develop.default/package.json | 6 +-
.../cli/test/cases/develop.spa/develop.spa.spec.js | 196 +++++++++++++
.../cli/test/cases/develop.spa/greenwood.config.js | 3 +
packages/cli/test/cases/develop.spa/src/index.html | 12 +
.../test/cases/serve.default/serve.default.spec.js | 174 ++++++++++++
.../test/cases/serve.default/src/assets/data.json | 4 +
.../cases/serve.default/src/assets/favicon.ico | Bin 0 -> 1150 bytes
.../test/cases/serve.default/src/assets/logo.png | Bin 0 -> 2171 bytes
.../serve.default/src/assets/source-sans-pro.woff | Bin 0 -> 20179 bytes
.../serve.default/src/assets/webcomponents.svg | 1 +
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/README.md | 17 +-
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-postcss/src/index.js | 2 +-
packages/plugin-postcss/src/postcss.config.js | 2 +-
.../options.extend-config/greenwood.config.js | 4 +-
packages/plugin-typescript/package.json | 4 +-
.../getting-started-repo-unstyled-partial.png | Bin 0 -> 14983 bytes
yarn.lock | 185 +++++++------
115 files changed, 2466 insertions(+), 437 deletions(-)
v0.17.0-alpha.0
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
- Create a general purpose copy mechanism
- Upgrade latest Rollup Deps (CLI only)
- (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
- 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(-)
v0.16.1
Overview
This release fixes a bug with plugin-google-analytics to address an issue with duplicate calls on page load.
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%3Av0.16.1
Breaking Changes
None
Known Issues
N / A
Diff
% git diff v0.16.0 v0.16.1 --stat | grep -v "www/"
.github/workflows/ci-win.yml | 6 ++----
.github/workflows/ci.yml | 2 +-
.github/workflows/master.yml | 12 +++---------
README.md | 2 +-
lerna.json | 2 +-
packages/cli/package.json | 2 +-
.../cli/test/cases/develop.default/develop.default.spec.js | 2 +-
.../develop.plugins.context/develop.plugins.context.spec.js | 2 +-
packages/cli/test/cases/serve.default/serve.default.spec.js | 2 +-
.../cli/test/cases/theme-pack/theme-pack.develop.spec.js | 2 +-
packages/plugin-babel/package.json | 4 ++--
packages/plugin-google-analytics/README.md | 5 ++++-
packages/plugin-google-analytics/package.json | 4 ++--
packages/plugin-google-analytics/src/index.js | 1 -
.../test/cases/default/default.spec.js | 1 -
.../test/cases/option-anonymous/option-anonymous.spec.js | 1 -
packages/plugin-graphql/package.json | 4 ++--
.../test/cases/develop.default/develop.default.spec.js | 2 +-
.../test/cases/qraphql-server/graphql-server.spec.js | 2 +-
packages/plugin-import-commonjs/package.json | 4 ++--
packages/plugin-import-css/package.json | 4 ++--
.../test/cases/develop.default/develop.default.spec.js | 2 +-
packages/plugin-import-json/package.json | 4 ++--
.../test/cases/develop.default/develop.default.spec.js | 2 +-
packages/plugin-polyfills/package.json | 4 ++--
packages/plugin-postcss/package.json | 4 ++--
packages/plugin-typescript/package.json | 4 ++--
.../test/cases/develop.default/develop.default.spec.js | 2 +-
29 files changed, 41 insertions(+), 49 deletions(-)