Do we want to generate MDX and test files for all generated files?
See original GitHub issueRight now only the Component generator creates MDX and test files along side the actual component JS file. Do we want to create them for Pages, Cells, Services, etc?
If we do create them for Services weβll probably want to start putting them in a subdirectory just like we do for components. Otherwise weβre going to have a LOT of files in that one directory.
.
βββ prisma
β βββ dev.db
β βββ migrations
β βββ schema.prisma
β βββ seeds.js
βββ src
βββ functions
β βββ graphql.js
βββ graphql
β βββ contacts.sdl.js
β βββ posts.sdl.js
βββ services
βββ contacts
β βββ contacts.js
β βββ contacts.mdx
β βββ contacts.test.js
βββ posts
βββ posts.js
βββ posts.mdx
βββ posts.test.js
Issue Analytics
- State:
- Created 4 years ago
- Comments:11 (11 by maintainers)
Top Results From Across the Web
Generated mdx file
This library encourages your applications to be more accessible and allows you to get your tests closer to using your components the way...
Read more >Tested live documentation is a thing with MDX, Docz and ...
I will place my spec files right in components folder to be next to the source code Button.jsx and its documentation Button.mdx files....
Read more >Build a MDX-powered blog with Contentlayer and Next
In this article, we'll learn how to use Next.js and Contentlayer to create a static MDX blogging site in this tutorial. We'll discuss...
Read more >Use MDX in Next.js to Dynamically Create Pages for a Blog
Learn how to source MDX content in Next.js to dynamically create pages for a blog.
Read more >How to Source MDX Content in Next.js to Dynamically ...
To learn how to add MDX to a project, we're going first source a few MDX files, using blog posts as an example,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I would add test files, but not mdx files right now. Rob is right that itβs important to get people into the βeverything in one directoryβ mindset right away, and we can put simple test stubs in there without causing any problems. I expect weβll get some proper testing methodology going soon after we launch, itβs high priority. I would also NOT produce mdx files for anything right now. When we integrate Storybook, we can add mdx in all the right places.
Created #137 to handle this. Closing this one, we can revisit MDX files in the future.