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

Document dev setup #14931

Merged
merged 5 commits into from
May 25, 2021
Merged

Document dev setup #14931

merged 5 commits into from
May 25, 2021

Conversation

shilman
Copy link
Member

@shilman shilman commented May 14, 2021

Issue: N/A

What I did

Started a new section of the official docs for development setup.

This is a rework of CONTRIBUTING.md, which contains a lot of dense information. The concept of this document is to capture everything you need to get started in an easy walkthrough. We can have sub-sections for more advanced concepts like e2e testing, etc.

How to test

N/A

@nx-cloud
Copy link

nx-cloud bot commented May 14, 2021

Nx Cloud Report

CI ran the following commands for commit 6778fd1. 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.

yarn bootstrap --core
```

> **_Note:_** On Windows, you may need to run `yarn` before `yarn bootstrap`!
Copy link
Contributor

Choose a reason for hiding this comment

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

Interesting, it should be the same across all operating systems 🤔

Copy link
Member Author

Choose a reason for hiding this comment

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

I haven't verified this, just copied it from CONTRIBUTING.md

Copy link
Contributor

Choose a reason for hiding this comment

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

@shilman - @merceyz is right. I PR'd this recently here: #14707 . Not sure where that code went.


Since May 2021 we're strongly encouraging users to create reproductions for their issues. Just like it's possible to [interactively develop](#interactive-development) against example projects in the storybook monorepo, it's also possible to interactively develop against a reproduction repo.

To do so, run the following command in the root of the Storybook monorepo:
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
To do so, run the following command in the root of the Storybook monorepo:
To do so, run the following command in the root of the Storybook monorepo as pass the link of the reproduction repo as argument:


`next` is where all active development happens and corresponds to the latest prerelease of Storybook (e.g. `6.3.0-alpha.25`).

If you are contributing a bugfix and you want it patched back to the `master` branch, which is where the latest stable version lives (e.g. `6.2.9`), mention that in your PR. We'll try to get it in if the fix looks non-disruptive and corresponds to a critical bug.
Copy link
Member

@yannbf yannbf May 14, 2021

Choose a reason for hiding this comment

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

Suggested change
If you are contributing a bugfix and you want it patched back to the `master` branch, which is where the latest stable version lives (e.g. `6.2.9`), mention that in your PR. We'll try to get it in if the fix looks non-disruptive and corresponds to a critical bug.
If you are contributing a bugfix and you want it patched back to the `master` branch, which is where the latest stable version lives (e.g. `6.2.9`), mention that in your PR. We'll try to get it in if the fix looks non-disruptive and corresponds to a critical bug.
## Troubleshooting and feedback
Storybook has a [Discord community](https://discord.gg/storybook) and is open for everyone. There is a dedicated channel for contributors called `#contributing`, so make sure to check it out for feedback or support in the contribution process. The community is the easiest way to reach for maintainers and contributors!

Copy link
Member

Choose a reason for hiding this comment

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

I think it's important to add a section for communication. What do you think?
I made sure the generated link has no invite limit and no expiration.

Copy link
Member Author

@shilman shilman May 14, 2021

Choose a reason for hiding this comment

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

Yes, that's great. The official link is https://discord.gg/storybook. Let's use that!

@shilman shilman added documentation patch:yes Bugfix & documentation PR that need to be picked to main branch labels May 14, 2021
@yannbf
Copy link
Member

yannbf commented May 14, 2021

@apapadopoulou you've recently gone through the contribution docs. Care to give some feedback here? Thanks!

To do so, run the following command in the root of the Storybook monorepo:

```sh
npx sb@next link https://github.com/<some-user>/<some-project>.git
Copy link
Contributor

Choose a reason for hiding this comment

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

@shilman does sb@next link also take a directory as a parameter? I.e, if you want to run the development Storybook against one of your own local Storybooks?

Copy link
Member

Choose a reason for hiding this comment

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

Great question, currently it expects the input to be a repository url. I think the effort is not really big to add this feature though! It would be quite handy.

Copy link
Member Author

Choose a reason for hiding this comment

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

I'll add it @zol

Copy link
Contributor

Choose a reason for hiding this comment

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

Brilliant, ty @shilman

Copy link
Member Author

@shilman shilman May 16, 2021

Choose a reason for hiding this comment

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

@jonniebigodes jonniebigodes requested a review from yannbf May 21, 2021 20:03
@jonniebigodes
Copy link
Contributor

With the latest commit, I polished and restructured the documentation in an effort to provide a smoother experience for contributors.

What was done:

  • Updated the toc to split the documentation into their own areas (code and docs).
  • Renamed the dev-setup.md file and polished it.
  • Created documentation on how to contribute to the documentation and code snippets for the frameworks.

@shilman, @domyen, @winkerVSbecks, @zol, @yannbf if you could take a look at it and leave some feedback on this I would greatly appreciate it and hopefully we get this merged soon.

docs/contribute/code.md Outdated Show resolved Hide resolved
@shilman shilman merged commit d6d1ece into next May 25, 2021
@shilman shilman deleted the docs-dev-setup branch May 25, 2021 01:22
@shilman shilman added the patch:done Patch/release PRs already cherry-picked to main/release branch label May 25, 2021
shilman added a commit that referenced this pull request May 25, 2021
If you already have a reproduction on your local machine, you can similarly link it to your monorepo dev setup with the `--local` flag:

```sh
npx sb@next link /path/to/local-repro-directory
Copy link
Member

Choose a reason for hiding this comment

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

Should this use the --local flag somewhere?

Copy link
Member Author

@shilman shilman May 26, 2021

Choose a reason for hiding this comment

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

Oops typo 🤦 thanks! fixing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation patch:done Patch/release PRs already cherry-picked to main/release branch patch:yes Bugfix & documentation PR that need to be picked to main branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants