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

docs(react-integration): revamp into complete guide #964

Merged
merged 20 commits into from
Feb 21, 2023

Conversation

tanner-reits
Copy link
Member

Updates the docs for the React framework wrapper to follow the same structure as the Angular docs

@vercel
Copy link

vercel bot commented Jan 4, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
stencil-docs ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Feb 21, 2023 at 7:51PM (UTC)
stencil-site ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Feb 21, 2023 at 7:51PM (UTC)

@tanner-reits tanner-reits changed the title Docs/revamp react wrapper docs docs(react-wrapper): update to match Angular docs Jan 4, 2023
src/docs/framework-integration/react.md Outdated Show resolved Hide resolved
src/docs/framework-integration/react.md Outdated Show resolved Hide resolved
src/docs/framework-integration/react.md Outdated Show resolved Hide resolved
src/docs/framework-integration/react.md Outdated Show resolved Hide resolved
src/docs/framework-integration/react.md Outdated Show resolved Hide resolved
src/docs/framework-integration/react.md Outdated Show resolved Hide resolved
src/docs/framework-integration/react.md Outdated Show resolved Hide resolved
src/docs/framework-integration/react.md Outdated Show resolved Hide resolved
src/docs/framework-integration/react.md Outdated Show resolved Hide resolved

**Type: `string`**

The title of the Stencil package where components are available for consumers (i.e. the `name` property value in your Stencil project's `package.json`).
Copy link
Member

Choose a reason for hiding this comment

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

Optional word smithing to use some of the same nomenclature as the rest of the doc:

Suggested change
The title of the Stencil package where components are available for consumers (i.e. the `name` property value in your Stencil project's `package.json`).
The name of the Stencil package where components are available for consumers (i.e. the value of the `name` property in your Stencil component library's `package.json`).

Copy link
Member Author

Choose a reason for hiding this comment

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

@rwaskiewicz I like this change, but this same thing probably needs to happen in the Angular and Vue docs as well. So, I'll hold off on making this swap until we merge all these back into one PR so then I can just change them all at once

@tanner-reits tanner-reits changed the base branch from docs/revamp-framework-wrapper-docs to main January 31, 2023 23:20
@tanner-reits tanner-reits changed the title docs(react-wrapper): update to match Angular docs docs(react-integration): revamp into complete guide Feb 1, 2023
npm link
From the `packages/` directory, run the following command to create a starter React app:

```bash
Copy link
Member

Choose a reason for hiding this comment

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

Can we convert this to an npm2yarn block?

Copy link
Member Author

Choose a reason for hiding this comment

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

First off, I decided to swap this off of create-react-app to a Vite React app instead in 4d88bc3. Did this for two reasons:

  1. The command for generating w/ create-react-app has some issues in Yarn environments
  2. create-react-app is kinda dead, so it's easy enough for us to move away from it

Even so, we can't use npm2yarn here because that plugin can't correctly convert certain syntaxes (like npm create/npm init) to yarn syntax. It tries its best but then spits out a comment in the generated yarn block along the lines of "couldn't auto-convert command". I believe it's related to this issue in the docusaurus repo. I marked a TODO comment in the docs tho for us to look into using npm2yarn if/when that is ever resolved

versioned_docs/version-v2/framework-integration/react.md Outdated Show resolved Hide resolved
versioned_docs/version-v3.0/framework-integration/react.md Outdated Show resolved Hide resolved
Copy link
Member

@rwaskiewicz rwaskiewicz left a comment

Choose a reason for hiding this comment

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

LGTM! 🚢

Copy link
Contributor

@alicewriteswrongs alicewriteswrongs left a comment

Choose a reason for hiding this comment

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

looks good to me overall, just noticed a few quick text things

versioned_docs/version-v3.0/framework-integration/react.md Outdated Show resolved Hide resolved
versioned_docs/version-v3.0/framework-integration/react.md Outdated Show resolved Hide resolved
versioned_docs/version-v3.0/framework-integration/react.md Outdated Show resolved Hide resolved
docs/framework-integration/react.md Outdated Show resolved Hide resolved
docs/framework-integration/react.md Outdated Show resolved Hide resolved
Copy link
Contributor

@alicewriteswrongs alicewriteswrongs left a comment

Choose a reason for hiding this comment

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

lgtm!

@tanner-reits tanner-reits merged commit 982982f into main Feb 21, 2023
@tanner-reits tanner-reits deleted the docs/revamp-react-wrapper-docs branch February 21, 2023 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants