gatsby-remark-embedded-codesandbox icon indicating copy to clipboard operation
gatsby-remark-embedded-codesandbox copied to clipboard

fix(getFilesList) recursively search for files to include

Open mattrosno opened this issue 6 years ago • 16 comments
trafficstars

Before, this plugin only worked with flat project directories, e.g.

examples
├── hello-world-example
│   ├── package.json
│   ├── index.html
│   └── index.js

Now, it works with subdirectories in projects, e.g.

examples
├── hello-world-example
│   ├── package.json
│   ├── public
│   │   └── index.html
│   ├── src
│   │   ├── index.js
│   │   └── styles.css

Did this to get a React app to work.

mattrosno avatar Jan 22 '19 18:01 mattrosno

Hi @elboman, have you had a chance to check out this fix? Please let me know if you have any questions. Thanks!

mattrosno avatar Jan 31 '19 16:01 mattrosno

@elboman would you be open to reviewing and merging this? It looks like a very useful feature to have.

karlhorky avatar Aug 05 '19 12:08 karlhorky

@mattrosno I guess your fork is available now (as per https://github.com/carbon-design-system/carbon-website/pull/1074) and in order to use it in the meantime, users just need to edit their package.json as follows, is that correct?

-    "gatsby-remark-embedded-codesandbox": "^1.2.0",
+    "gatsby-remark-embedded-codesandbox": "github:mattrosno/gatsby-remark-embedded-codesandbox#release",

karlhorky avatar Aug 05 '19 12:08 karlhorky

Looks good in general, I think we can make getFiles return the array instead of mutating the argument. I can suggest a few changes later in the day!

elboman avatar Aug 05 '19 12:08 elboman

Friendly ping @elboman :)

karlhorky avatar Aug 15 '19 10:08 karlhorky

Hey @elboman, just circling back around to this one now.

Could you suggest those changes so this can be merged?

karlhorky avatar Jan 09 '20 16:01 karlhorky

This would be really help for a project I'm working on. @mattrosno Are you still working on this?

mAAdhaTTah avatar Mar 23 '20 01:03 mAAdhaTTah

@elboman thanks for the review! I'm not able to make these changes right now. Feel free to close if you want to do this in a separate PR, or if @mAAdhaTTah wants to see this through - all you!

mattrosno avatar Mar 26 '20 14:03 mattrosno

@mattrosno probably still no bandwidth to work on these changes, right?

And I guess @mAAdhaTTah, I suppose you're not able to take over here.

@elboman Maybe time to try to find someone to bring this home.

karlhorky avatar Jun 26 '20 09:06 karlhorky

@karlhorky Yeah, I ended up just working around it by flattening my directory structure.

mAAdhaTTah avatar Jun 27 '20 14:06 mAAdhaTTah

Looks like this remark plugin allows for an arbitrarily deep directory structure, switching to this one:

https://github.com/kevin940726/remark-codesandbox

karlhorky avatar Sep 01 '20 16:09 karlhorky

@elboman for those who still want to use this plugin, would you consider merging this one?

karlhorky avatar Jan 04 '21 15:01 karlhorky

Hey guys, forked this plugin and made it recursive if anyone else wants it https://www.npmjs.com/package/@guyathomas/gatsby-remark-embedded-codesandbox

guyathomas avatar Mar 21 '21 21:03 guyathomas

Thanks @guyathomas !! I guess this is the repo: https://github.com/guyathomas/gatsby-remark-embedded-codesandbox

Are you planning on providing some simple support over there? If so, maybe you could open up the Issues tab?

Or - maybe even better - @elboman could give you maintainer rights here...

karlhorky avatar Mar 22 '21 06:03 karlhorky

Hi! Yeah, that's the repo! Yeah, a word of caution I don't plan on officially maintaining that going forward - ideally, the changes would be merged into this repo - I have this open PR. https://github.com/elboman/gatsby-remark-embedded-codesandbox/pull/27

if @elboman is willing to do that, I'd happily maintain / support it from here :)

guyathomas avatar Mar 22 '21 14:03 guyathomas

Right yeah, it would be great to get an active maintainer here!

@elboman what do you think of adding Guy as a maintainer?

karlhorky avatar Mar 22 '21 14:03 karlhorky