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

[question] vinyl virtual adapter #69

Closed
tmcw opened this issue Oct 29, 2015 · 6 comments
Closed

[question] vinyl virtual adapter #69

tmcw opened this issue Oct 29, 2015 · 6 comments

Comments

@tmcw
Copy link

tmcw commented Oct 29, 2015

Admittedly a question: is there a module that works with vinyl that would allow piping files from a stream of vinyl objects into a virtual filesystem? I'm working on a live reloading server for which it'd be useful to never save the results of a stream to disk, but to keep them in memory so that they can be served over HTTP.

@phated
Copy link
Member

phated commented Oct 29, 2015

I think the closest thing to this would be https://www.npmjs.com/package/gulp-cached but it isn't really the same thing. I've often thought about a similar thing to what you are building so that's pretty awesome. I'm wondering if this has any tie-in to gulpjs/gulp#357

@jskrzypek
Copy link

I believe this is what mem-fs does, but I'm not 100%.

Looks like it uses a pretty old version of vinyl though...

@tmcw
Copy link
Author

tmcw commented Nov 15, 2015

So far I'm working on a very minimal server that keeps an array of files around - I'm not sure if it'll be enough, but it's working so far.

@Marak
Copy link

Marak commented Nov 15, 2015

@tmcw - You might find some useful code in https://github.com/marak/vinyl-http

@yocontra
Copy link
Member

Let me know when this is finished! This idea was actually what helped refine the concept of vinyl as a virtual file object

@tmcw
Copy link
Author

tmcw commented Mar 11, 2016

I eventually wrote a very simple memory-only server that I concat and set files on. It works very well for this usecase.

@tmcw tmcw closed this as completed Mar 11, 2016
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

5 participants