Top-level examples directory #404
Replies: 3 comments 4 replies
-
I like this.
This was because I wanted to leverage monorepos. I hadn't considered moving it to a better location and using e.g. Note that this will require us to update our cc @vixdug @morganmccunn need to be intentional about where we place examples and whether we continue to use https://github.com/Shopify/hydrogen-examples |
Beta Was this translation helpful? Give feedback.
-
Update: I spoke to @tarynmusgrave today, and the DevRel team is seeking a basic "examples" folder to start populating "how-to" examples. These aren't full Hydrogen sites, and thus don't belong in Shopify/hydrogen-examples. What I propose is that they also leverage this
Any concerns about the above approach? |
Beta Was this translation helpful? Give feedback.
-
I like this! Would be cool to get something up quickly that does this. |
Beta Was this translation helpful? Give feedback.
-
As we move into the release of the hydrogen CLI package for project creation, I've been thinking on the side about the
dev
package. I'd like to introduce some minor changes that will help distinguish packages from example code as well as support more examples within the repo. These examples would be for folks to inspect or start from using thecli
, npx, on StackBlitz. etc... (Note: It might make sense that absorb our examples repo, but we don't have to make that decision now.)I suggest we create a new folder at the root of the repo,
/examples
, that will be where these examples live. This is similar to other frameworks, and will increasingly be standard as tools like turborepo push for this approach. It also just makes sense to split these up (though I don't know all the history/context of why we started with thedev
package that isn't really a package to begin with).Does anyone hate or see potential issues with:
examples/default-starter
dev
to that foldercc @jplhomer
Beta Was this translation helpful? Give feedback.
All reactions