ContributaryCommunity / www.contributary.community

Fronted UI repo for www.contributary.community
https://www.contributary.community
3 stars 3 forks source link

upgrade greenwood v0.15.0 #94

Closed thescientist13 closed 3 years ago

thescientist13 commented 3 years ago

Related Issue

N / A

Summary of Changes

  1. Upgrade latest version of Greenwood v0.15.0
  2. Made upgrade to pass explicit ?type=css to all CSS via ESM import calls

Looks like something broke with develop with the importMap :/ Screen Shot 2021-08-06 at 12 03 30 PM

Works fine with serve, though Rollup does emit this warning

% yarn build
yarn run v1.22.5
$ greenwood build
-------------------------------------------------------
Welcome to Greenwood (v0.15.0) ♻️
-------------------------------------------------------
Running Greenwood with the build command.
Initializing project config
Initializing project workspace contexts
Generating graph of workspace files...
pages to generate
 /Users/owenbuckley/Workspace/analogstudios.net/repo/www.analogstudios.net/src/index.html
success, done generating all pages!
The 'this' keyword is equivalent to 'undefined' at the top level of an ES module, and has been rewritten
The 'this' keyword is equivalent to 'undefined' at the top level of an ES module, and has been rewritten

Same issue as in another SPA, but not an SSG / MPA 🤔

Both of those projects are using Lit@2 I believe, which is still in RC, fwiw

TODO

  1. [x] Fix specs - fixed by handling .css files and trimming query string
  2. [x] Get SPA issue fixed - https://github.com/ProjectEvergreen/greenwood/issues/686
  3. [x] Get fix for node_modules handling / URL forwarding - https://github.com/ProjectEvergreen/greenwood/pull/692