Skip to content
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

Split out creating/mounting RAMDisk into a separate library #3

Closed
agilgur5 opened this issue Feb 27, 2020 · 1 comment
Closed

Split out creating/mounting RAMDisk into a separate library #3

agilgur5 opened this issue Feb 27, 2020 · 1 comment

Comments

@agilgur5
Copy link

Feature Use Case

They're aren't many Node libraries for RAMDisks out there and I assume you created your own solution because the others didn't suffice(?)

I'd like to use a RAMDisk for testing a library that outputs files, i.e. in jaredpalmer/tsdx#289 (comment) . I believe MPL should be ok to use in TSDX as a dev dependency (though in prod I'm not sure it'd be compatible with MIT, but I'm quite rusty on my license/copyright law)

Alternatives Considered

node-ramdisk appears to be a bit harder to use.
memfs just replaces the fs library, but not the actual system paths. Would be great to use memfs for this purpose, but I think that'd only be possible in a single-process testing set-up which unfortunately doesn't currently work for TSDX's test set-up at least. There might be some other gotchas there too.
If you know of anything else relevant, would be great to hear about it! I wasn't able to find much.

Feature Proposal

Create a separate RAMDisk package that's used by this plugin.

@shellscape
Copy link
Owner

Could you just import from https://github.com/shellscape/webpack-plugin-ramdisk/blob/master/lib/ramdisk.js? You're also welcome to fork the code and create a lib from just that file (hopefully crediting the author 😄 ). I don't have a daily need for a separate ramdisk package, so I'm not likely to create one, but I do appreciate you taking the time to create the issue. Sorry it took so long for me to address it.

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

No branches or pull requests

2 participants