You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the wiki section, the documentation is clear and exhaustive, but all the examples are done with yarn.
It would be great to add examples using npm as well, and give the reader a way to switch between the two: for many snippets, simply replacing yarn with npm is not enough, as it's clear from the init command that using npm becomes npm exec init-test-app.
Alternatives
I don't know all the possibilities offered by the GitHub wiki, but the ideal solution would be a snippet widget with tabs to switch between yarn and npm, like the react-native docs.
An alternative would be to just present the two snippets one after the other.
Implementation Details
This requires a change to the wiki docs, unfortunately I cannot do a PR 🥲.
Additional Context
(PS: it would also be great to have an additional template for GH issues for the docs or general feedback!)
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
I had a look around and it doesn't look like GitHub supports tabs today. It has been requested though (see [1][2]). For now, I've added npm instructions right after the Yarn ones.
Really appreciate that you took the time to file this. Let us know if you find other issues. ❤️
Proposal
In the wiki section, the documentation is clear and exhaustive, but all the examples are done with
yarn
.It would be great to add examples using
npm
as well, and give the reader a way to switch between the two: for many snippets, simply replacingyarn
withnpm
is not enough, as it's clear from the init command that using npm becomesnpm exec init-test-app
.Alternatives
I don't know all the possibilities offered by the GitHub wiki, but the ideal solution would be a snippet widget with tabs to switch between yarn and npm, like the react-native docs.
An alternative would be to just present the two snippets one after the other.
Implementation Details
This requires a change to the wiki docs, unfortunately I cannot do a PR 🥲.
Additional Context
(PS: it would also be great to have an additional template for GH issues for the docs or general feedback!)
Code of Conduct
The text was updated successfully, but these errors were encountered: