Skip to content

Better way of developing SWR with examples/ locally #1427

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

Closed
huozhi opened this issue Sep 3, 2021 · 3 comments · Fixed by #1508
Closed

Better way of developing SWR with examples/ locally #1427

huozhi opened this issue Sep 3, 2021 · 3 comments · Fixed by #1508
Labels
good first issue Good for newcomers

Comments

@huozhi
Copy link
Member

huozhi commented Sep 3, 2021

Currently use scripts to install node_modules and next inside examples, and run them with require hooks to debug with local swr assets. It's not deal since it's too complicated and not scalable.

Goal

  • Find a better way to debug with example / test case with local swr
  • Less dependencies and easy setup
@huozhi huozhi added the good first issue Good for newcomers label Sep 3, 2021
@anirudh1713
Copy link
Contributor

What do you think about yarn workspaces or lerna? Though I think there might be a reason why we're not already using it.

@huozhi
Copy link
Member Author

huozhi commented Sep 13, 2021

@anirudh1713 The installed modules might go to node_modules of root workspace directory, and the dependency are shared among each workspace, I guess for example we don't have to do that.

@shuding shuding changed the title Better way of debugging with local swr assets Better way of developing SWR with examples/ locally Sep 21, 2021
@shuding
Copy link
Member

shuding commented Sep 21, 2021

https://github.com/wclr/yalc might be something worth trying.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants