Skip to content

Enable execution in a particular context directory.#16

Open
nathanhammond wants to merge 1 commit intobroccolijs:masterfrom
nathanhammond:pass-cwd
Open

Enable execution in a particular context directory.#16
nathanhammond wants to merge 1 commit intobroccolijs:masterfrom
nathanhammond:pass-cwd

Conversation

@nathanhammond
Copy link

We use this library inside of Ember CLI's testing story, but we need a way to be able to execute in a particular directory. The current pattern for doing that looks like this:

process.chdir(...);
quickTemp.makeOrRemake(...);
process.chdir(...)

That's far less than ideal. This PR enables this invocation pattern:
quickTemp.makeOrRemake({}, 'property', 'className', directory);

Thoughts?

@joliss
Copy link
Member

joliss commented Feb 14, 2017

I don't really want to maintain this package anymore. I don't think ending up with tmp directories in CWD or other random places is a terribly great pattern, so it would probably be better to write something more sensible, either from scratch or based on this package. In any case, I don't want to be the one maintaining 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

Successfully merging this pull request may close these issues.

2 participants