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

Support for changing CWD + respecting source path #7

Closed
wants to merge 2 commits into from
Closed

Support for changing CWD + respecting source path #7

wants to merge 2 commits into from

Conversation

dgieselaar
Copy link

This adds support for changing the current working directory via
options, and uses the source path (relative to the cwd) instead of just
the filename when determining the destination path.

This adds support for changing the current working directory via
options, and uses the source path (relative to the cwd) instead of just
the filename when determining the destination path.
@yoniholmes
Copy link
Owner

Hi guys, after @ebaranov's prod, I pulled down this merge request, but notice that it causes tests to fail. For some reason the grunt test --force command which was used to test the pull request on Travis (https://travis-ci.org/yoniholmes/grunt-text-replace/builds/6015643) didn't fail, but if you review the logs and test locally, you can see that a bunch of test have stopped working.

If anyone is keen for this feature, please amend until the tests work. I'll also leave a comment on the modified files on naming conventions.

Many thanks,

Jonathan

var dest = settings.dest;
var cwd = settings.cwd;
Copy link
Owner

Choose a reason for hiding this comment

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

Hi there. Thanks again for submitting your pull request. This review is coming quite late, but was spurred on by a recent request. A minor point, but for legibility reasons I'd opt for 'currentWorkingDirectory' instead of 'cwd'. As we 'previousWorkingDirectory'. Cheers & many thanks, Jonathan

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.

2 participants