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

Inline Rimraf #300

Merged
merged 1 commit into from
Oct 28, 2016
Merged

Inline Rimraf #300

merged 1 commit into from
Oct 28, 2016

Conversation

RyanZim
Copy link
Collaborator

@RyanZim RyanZim commented Oct 27, 2016

We aren't using rimraf's glob support, and glob is a rather large dependency.

Changes:

  • Remove glob support from rimraf
  • Remove move()'s dependency on rimraf; use fs-extra.remove instead
  • Make rimraf a devDependency; it is used in the tests

Original comment:

@jprichardson This is my WIP of inlining rimraf. This needs rebased, do not merge.

rimraf has functionality built in to handle alternate fs modules. Currently, there is no way for the end-user to leverage that functionality. I could simplify the code by removing that, however, I don't want to have to add it back. Will we be adding custom fs module support or glob support to fs-extra first?

@jprichardson
Copy link
Owner

Will we be adding custom fs module support

This will come first.

@RyanZim
Copy link
Collaborator Author

RyanZim commented Oct 27, 2016

OK, thanks.

}

// this one won't happen if graceful-fs is used.
if (er.code === 'EMFILE' && timeout < options.emfileWait) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jprichardson This is a custom handler for EMFILE errors, only needed if you are using a custom fs. This brings up a question; when we add custom fs module support, will we add checks for EMFILE errors (where possible) across fs-extra?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will we add checks for EMFILE errors (where possible) across fs-extra?

I don't think so, at least not in the short-term.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, then I guess I'll remove these checks here.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, then I guess I'll remove these checks here.

I don't think it hurts to keep them. Whatever is the shortest path and saves you time!

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jprichardson I thought I would remove them in interests of a consistent api. If they are left here, remove will handle EMFILE errors while the rest of the api won't (when using custom fs modules).

We aren't using rimraf's glob support, and glob is a rather large
dependency.

Changes:

- Remove glob support from rimraf
- Remove move()'s dependency on rimraf; use fs-extra.remove instead
- Make rimraf a devDependency; it is used in the tests
@RyanZim
Copy link
Collaborator Author

RyanZim commented Oct 28, 2016

@jprichardson Done & rebased. Anything else?


What else needs done for v1.0.0?

@jprichardson jprichardson merged commit 0314876 into master Oct 28, 2016
@jprichardson
Copy link
Owner

Thanks!

@jprichardson Done & rebased. Anything else?

I think removing path-is-absolute as a dependency since we no longer support Node v0.10 is the last item.

@RyanZim RyanZim deleted the rimraf branch October 28, 2016 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants