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: Added a How To guide for working with ShadCN #10459

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

ahaywood
Copy link
Contributor

Recently, someone within the Discord forums asked how to get ShadCN working with Redwood. Since Redwood uses yarn workspaces the installation process isn't as straightforward as simply following ShadCN's documentation. However, since it's all React, it's mostly a matter mapping files and folders so ShadCN knows where to place its files.

@ahaywood ahaywood added topic/docs release:docs This PR only updates docs labels Apr 15, 2024
@ahaywood ahaywood added this to the next-release-patch milestone Apr 15, 2024
Copy link
Collaborator

@Josh-Walker-GM Josh-Walker-GM left a comment

Choose a reason for hiding this comment

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

Nice! One minor comment but otherwise awesome. I walked through the instructions and it was clear and went smoothly for me.

Comment on lines +58 to +64
```js
import tsconfigPaths from 'vite-tsconfig-paths';

export default {
plugins: [tsconfigPaths()],
}
```
Copy link
Collaborator

Choose a reason for hiding this comment

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

We omit the default contents of the vite.config.js here. I think it's obvious enough that this plugin should be in addition to the existing redwood one. Do you think it would be more or less confusing to alter this code block to include the default contents?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good question! ... I can add the default contents

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release:docs This PR only updates docs topic/docs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants