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

Replace require 'fs' with fs.coffee exporting graceful-fs #106

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

chakrit
Copy link

@chakrit chakrit commented Oct 31, 2013

Since this module always deal with lots and lots of static files
I believe it is a good idea to add a central point where all fs
calls can be traced/inspect/modifed/patched/whatever.

In this commit I'm simply replacing all require 'fs' found in
the codebase with require require './fs.coffee' which now simply exports thegraceful-fs` module.

This is to combat the EMFILE issue: #94

Since this module always deal with lots and lots of static files
I believe it is a good idea to add a central point where all fs
calls can be traced/inspect/modifed/patched/whatever.

In this commit I'm simply replacing all `require 'fs'` found in
the codebase with require `require './fs.coffee' which now
simply exports the `graceful-fs` module.

This is to combat the EMFILE issue:
techpines#94
@chakrit
Copy link
Author

chakrit commented Oct 31, 2013

Just noticed that some tests were failing, fixing ....

EDIT: Weird, ran again and everything's all green now.

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

Successfully merging this pull request may close these issues.

1 participant