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

Add SSR Support #50

Closed
jordanjones243 opened this issue Jan 19, 2024 · 0 comments · Fixed by #53
Closed

Add SSR Support #50

jordanjones243 opened this issue Jan 19, 2024 · 0 comments · Fixed by #53
Assignees

Comments

@jordanjones243
Copy link
Contributor

Discussed in AlaskaAirlines/WC-Generator#457

Originally posted by blackfalcon January 9, 2024
As of Lit 2.0 it's been understood that LitElement web components will be supported inside common SSR environments. This discussion is for supporting the various updates needed to deliver this capability.

Scope

The scope of this issue is to update the repo with the following criteria

  1. install the auro-library as root dependency
  2. add type="module" to the ./package.json
  3. commitlint.config.js → commitlint.config.cjs
  4. delete the following local scripts
    • . /packageScripts/postinstall.(m)js
    • ./scripts/generateDocs.(m)js
    • ./scripts/postCss.(m)js
    • ./scripts/pre-commit.(m)js
  5. Update the ./package.json "scripts" references
"build:docs": "node ./node_modules/@aurodesignsystem/auro-library/scripts/build/generateDocs.mjs",
"preCommit": "node ./node_modules/@aurodesignsystem/auro-library/scripts/build/pre-commit.mjs",
"postCss:component": "node ./node_modules/@aurodesignsystem/auro-library/scripts/build/postCss.mjs",
"postinstall": "node ./node_modules/@aurodesignsystem/auro-library/scripts/build/postinstall.mjs",

Exit criteria

This issue can be closed once the local files have been deleted, the dependencies and scripts have been updated and the rebuilds successfully off of the auro-library resources.

All local dependencies should be up to date as well.

@jordanjones243 jordanjones243 mentioned this issue Jan 21, 2024
6 tasks
@jordanjones243 jordanjones243 linked a pull request Jan 21, 2024 that will close this issue
6 tasks
blackfalcon pushed a commit that referenced this issue Jan 24, 2024
# [2.0.0](v1.1.0...v2.0.0) (2024-01-24)

### Documentation

* update demo template ([1c550c7](1c550c7))

### Features

* **modernize:** rebuild component using the generator [#49](#49) ([3ce06bb](3ce06bb))
* **ssr:** add support for SSR projects [#50](#50) ([b276957](b276957))
* **tokens:** implement theming support [#51](#51) ([ebfc5e5](ebfc5e5))

### Performance Improvements

* **accordion:** update doc accordion attributes ([f8ae926](f8ae926))

### BREAKING CHANGES

* This is NOT the breaking commit, but the npm namespace
has been updated and requires a MAJOR release.

Changes to be committed:
modified:   demo/index.md
modified:   docs/partials/index.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants