Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enhancement/general improvements and fixes for custom resource plugin integrations #1234

Merged

Conversation

thescientist13
Copy link
Member

@thescientist13 thescientist13 commented May 25, 2024

Related Issue

In support of #1233 , and based on testing in ProjectEvergreen/www.greenwoodjs.dev#11, found some general improvements and fixes for custom resource plugin integrations into Greenwood around making plugins better able to play nicely together.

This a pre-cursor to #1233 to validate the core changes first outside of the plugin PR.

Summary of Changes

  1. Enable resolve lifecycle into custom loaders
  2. Enable resolve lifecycle into rollup configuration
  3. Remove break statement from serve command, since it would "bail" after an initial match

TODO

Make sure to sanity test these against the greenwoodjs.dev website

  1. Try and restore / understand resource-utils.js changes
  2. See if the 'js` check in rollup.config.js can be removed - we shouldn't and it will break, just Rollup deal with JS files
  3. Clean up resolve filters in loaders.js
  4. clean up console logs / commented code

@thescientist13 thescientist13 added enhancement Improve something existing (e.g. no docs, new APIs, etc) P0 Critical issue that should get addressed ASAP v0.3.0 Plugins Greenwood Plugins alpha.3 labels May 25, 2024
@thescientist13 thescientist13 added this to the 1.0 milestone May 25, 2024
@thescientist13 thescientist13 self-assigned this May 25, 2024
@thescientist13 thescientist13 force-pushed the enhancement/custom-resource-plugin-integrations branch from 9807044 to 610c425 Compare June 2, 2024 17:57
@thescientist13 thescientist13 marked this pull request as ready for review June 3, 2024 17:28
* isolation mode for SSR pages and API routes for greenwood serve

* documentation for isolation mode option and global config test case

* misc refactoring

* set isolation mode to true for Lit renderer plugin

* set isolation mode to true for Lit renderer plugin
* intial draft of import attributes support for CSS and JSON

* all test cases passing

* need patch package

* wcc patches for import attributes and CSSStylesheet shim

* bump min NodeJS version for exp specs

* temp disable ESLint

* develop based import assertion specs

* serve based import attributes specs

* add preIntercept resource plugin lifecycle and refactor PostCSS to use it

* all test cases passing for import attributes support

* refactor built in CSS and JSON intercepting

* demo code

* raw plugin docs and package.json updates

* update latest documentation for custom loaders support in NodeJS

* update custom import docs

* upgrade wcc v0.13.0

* only need Node 18 for github actions

* css imports and raw plugin interop with test cases

* lit renderer import attribute test cases and documentation

* refactor matchers support for raw plugin instead of patching and add test cases

* disable describe.only

* update usage for custom resource plugins to showcase usage of import attributes

* document preIntercept lifecycle and convert Babel to use it

* restore ESLint

* enable debug logging for failing specs

* refactor theme pack specs

* fix linting

* remove CSS and JSON packages from being publishable

* clean up console logs and comments

* rename exp test cases to loadersnaming prefix

* fix command in github actions

* remove plugin-import-css callout from plugin-postcss README

* remove demo code from website

* refine PostCSS plugin intercepting
@thescientist13 thescientist13 force-pushed the enhancement/custom-resource-plugin-integrations branch from 9c4d903 to c996d9a Compare June 22, 2024 16:51
@thescientist13 thescientist13 mentioned this pull request Jun 22, 2024
39 tasks
@thescientist13 thescientist13 merged commit c08cd27 into release/0.30.0 Jun 22, 2024
8 checks passed
@thescientist13 thescientist13 deleted the enhancement/custom-resource-plugin-integrations branch June 22, 2024 17:07
thescientist13 added a commit that referenced this pull request Nov 2, 2024
… integrations (#1234)

* feature/discussion 1117 Isolation Mode (v1) (#1206)

* isolation mode for SSR pages and API routes for greenwood serve

* documentation for isolation mode option and global config test case

* misc refactoring

* set isolation mode to true for Lit renderer plugin

* set isolation mode to true for Lit renderer plugin

* v0.30.0-alpha.0

* v0.30.0-alpha.1

* feature/issue 923 native import attributes for CSS and JSON (#1215)

* intial draft of import attributes support for CSS and JSON

* all test cases passing

* need patch package

* wcc patches for import attributes and CSSStylesheet shim

* bump min NodeJS version for exp specs

* temp disable ESLint

* develop based import assertion specs

* serve based import attributes specs

* add preIntercept resource plugin lifecycle and refactor PostCSS to use it

* all test cases passing for import attributes support

* refactor built in CSS and JSON intercepting

* demo code

* raw plugin docs and package.json updates

* update latest documentation for custom loaders support in NodeJS

* update custom import docs

* upgrade wcc v0.13.0

* only need Node 18 for github actions

* css imports and raw plugin interop with test cases

* lit renderer import attribute test cases and documentation

* refactor matchers support for raw plugin instead of patching and add test cases

* disable describe.only

* update usage for custom resource plugins to showcase usage of import attributes

* document preIntercept lifecycle and convert Babel to use it

* restore ESLint

* enable debug logging for failing specs

* refactor theme pack specs

* fix linting

* remove CSS and JSON packages from being publishable

* clean up console logs and comments

* rename exp test cases to loadersnaming prefix

* fix command in github actions

* remove plugin-import-css callout from plugin-postcss README

* remove demo code from website

* refine PostCSS plugin intercepting

* general enhancements and fixes for custom resource plugin integrations

* misc clean up validation testing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
alpha.3 enhancement Improve something existing (e.g. no docs, new APIs, etc) P0 Critical issue that should get addressed ASAP Plugins Greenwood Plugins v0.30.0
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

CSS Modules ™️ plugin
1 participant