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

Add destination "directory_name" option. #49

Merged
merged 2 commits into from
Apr 28, 2016

Conversation

DanChadwick
Copy link
Contributor

@DanChadwick DanChadwick commented Apr 28, 2016

Over at ember-paper, we are using your excellent add-on to build two different branches into two different dummy apps. Having this destination option will make it easy for us to continue to use the workflow you created. Thanks for the consideration.

Note: I had some difficulty getting this to work with both Windows and Linux. Testing on mac and linux would be awesome, as I tested only on windows. It is a touch difficult since windows runs the commands with cmd.exe, not bash.

@@ -41,11 +46,15 @@ module.exports = {
}

function copy() {
return runCommand('cp -R dist/* .', execOptions);
if (options.destination === '.') {

Choose a reason for hiding this comment

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

Unmatched '{'.

}

function addAndCommit() {
return runCommand('git add . && git commit -m "' + options.message + '"', execOptions)
return runCommand('git -c core.safecrlf=false add "' + options.destination + '"' +

Choose a reason for hiding this comment

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

Line is too long.

@DanChadwick
Copy link
Contributor Author

I assume the line length style issues are okay. I shortened the lines, but not at the expense of semantic clarity. I also have no idea what if () { indentation the style is looking for.

@DanChadwick DanChadwick changed the title Add destination "directoy_name" option. Add destination "directory_name" option. Apr 28, 2016
@knownasilya knownasilya merged commit a4c46f2 into poetic:master Apr 28, 2016
@knownasilya
Copy link
Contributor

Will do testing on osx before releasing.

@DanChadwick
Copy link
Contributor Author

Thanks so much for the quick response, @knownasilya! Please post back in this issue if you find anything (so I can warn my Mac-loving co-consipirators). If/when you release, I'll update ember-paper to require the new version.

knownasilya pushed a commit that referenced this pull request Jun 8, 2016
- `destination` argument, see #49
- Documentation updates (bash-c, org/user example)
@knownasilya
Copy link
Contributor

Released as v0.1.0

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.

3 participants