Skip to content

Allow for multiple install calls #96

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

Merged
merged 1 commit into from
Nov 30, 2015
Merged

Conversation

kpdecker
Copy link
Contributor

This allows for multiple libraries to utilize this without stepping on each other’s toes.

This makes the retrieve helpers additive, giving priority to the last retrieve method registered. In the event of a miss, the next method is called up to and including the default behavior. The overrideRetriveFile and overrideRetrieveSourceMap flags are added if this behavior is not desired but this is something that most libraries should avoid to be good citizens.

Flagged behaviors will now be on if any of the install calls dictate that they would be.

Fix for #91

@kpdecker
Copy link
Contributor Author

Looks like the build failure is due to an iojs string matching issue vs. these changes in particular.

@kpdecker
Copy link
Contributor Author

kpdecker commented Sep 5, 2015

Any chance on feedback here? I also have a patch that adds support map support for runtime transpiled files that have inline source maps attached but it depends on many of the things here.

@LinusU
Copy link
Collaborator

LinusU commented Oct 30, 2015

@kpdecker Sorry for the silence, would you mind rebasing on master?

@kpdecker
Copy link
Contributor Author

Rebased

This allows for multiple libraries to utilize this without stepping on each other’s toes.

This makes the retrieve helpers additive, giving priority to the last retrieve method registered. In the event of a miss, the next method is called up to and including the default behavior. The `overrideRetriveFile` and `overrideRetrieveSourceMap` flags are added if this behavior is not desired but this is something that most libraries should avoid to be good citizens.

Flagged behaviors will now be on if any of the install calls dictate that they would be.

Fix for evanw#91
@LinusU
Copy link
Collaborator

LinusU commented Oct 31, 2015

I think this looks good 👍

I'll give the other maintainers a few days to look at this, if there are no problems we'll merge it.

@julien-f Feel free to merge if you think it looks good 👍

@kpdecker
Copy link
Contributor Author

Any thoughts on this?

@LinusU
Copy link
Collaborator

LinusU commented Nov 30, 2015

Merging 👍

LinusU added a commit that referenced this pull request Nov 30, 2015
Allow for multiple install calls
@LinusU LinusU merged commit 553e2da into evanw:master Nov 30, 2015
@LinusU
Copy link
Collaborator

LinusU commented Nov 30, 2015

Released as 0.4.0

@kpdecker kpdecker deleted the chained-retrieve branch December 3, 2015 18:08
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.

2 participants