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

Lit: Initial lit2 support #14600

Merged
merged 28 commits into from May 10, 2021
Merged

Conversation

brion-fuller
Copy link

@brion-fuller brion-fuller commented Apr 14, 2021

Issue: #14455

What I did

Initial start to setting up lit framework

@gaetanmaisse gaetanmaisse self-assigned this Apr 15, 2021
@gaetanmaisse gaetanmaisse changed the title @storybook/lit Lit: Init @storybook/lit and its kitchen sink Apr 16, 2021
`babel-loader` is required in the context of `builder-webpack4` so there is no no need to have it as a dep.
@shilman
Copy link
Member

shilman commented Apr 18, 2021

@gaetanmaisse these last set of changes (addon-docs/babel-loader stuff) look good, but probably should be in their own PR!

@gaetanmaisse
Copy link
Member

Yep @shilman, I will open a PR with these and maybe some other related stuff ;)

The goal is to avoid adding dependencies related to the example in the SB codebase workpaces.
Considering this example as a stand-alone workspace make it works in a more realistic way.

Working on things in `@storybook/lit` and want to test them in lit-kitchen-sink?
Run:
 - `yarn build lit --watch` in the monorepo root folder
 - `yarn install` then `yarn storybook` in lit-kitchen-sink folder

You're good to go, both changes in the example code or in `@storybook/lit` will be reflected in the UI.
@@ -3,3 +3,5 @@
This example directory represents the application you wish to integrate storybook into.

Run `yarn install` to sync Storybook module with the source code and run `yarn storybook` to start the Storybook.

When developing things in `@storybook/lit` you can run `yarn build lit --watch` in the root folder of the monorepo and both changes in the example code or in `@storybook/lit` will be reflected in the UI.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NICE 💯

@nx-cloud
Copy link

nx-cloud bot commented May 4, 2021

Nx Cloud Report

CI ran the following commands for commit 3cc3da4. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this branch

Status Command
#000000 nx run-many --target=prepare --all --parallel --max-parallel=15

Sent with 💌 from NxCloud.

…command for now

As `lit-kitchen-sink` is not part of the monorepo it requires some extra work to make it build properly as we need to install deps first.
@brion-fuller
Copy link
Author

@gaetanmaisse Looks good to me.

@shilman shilman marked this pull request as ready for review May 10, 2021 03:09
@shilman shilman changed the title Lit: Init @storybook/lit and its kitchen sink Lit: Initial lit2 support May 10, 2021
Copy link
Member

@shilman shilman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking great @brion-fuller @gaetanmaisse 💯

@shilman shilman added the run e2e extended test suite Run the e2e extended test suite in CircleCI workflows label May 10, 2021
@shilman shilman merged commit c474618 into storybookjs:next May 10, 2021
@@ -0,0 +1,9 @@
enableGlobalCache: true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Configs are inherited from the parent recursively so you probably don't need this config

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request lit run e2e extended test suite Run the e2e extended test suite in CircleCI workflows
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants