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 destination file rename #46

Open
wants to merge 82 commits into
base: master
Choose a base branch
from

Conversation

lmartorella
Copy link

Hi,
I've added the support for destination path in which the target filename is different from the source filename (using grunt src-dest format).
Thanks,
Luciano

Robert Winterbottom and others added 30 commits August 6, 2013 00:04
…oved username and password out of Gruntfile and into .ftpauth file
Added example targets to initConfig code, lack of a target results in error in Grunt.
Added example targets to initConfig code, lack of a target results in error in Grunt.
Updated README.md
Good catch, thanks.
Updated README.md
Good catch, thanks.
…aned up and refactored code, bug fix mentioned in Robert-W#9
Robert-W and others added 28 commits December 22, 2014 20:01
Fix issue: empty folder structure are being created.
A lot of duplicates were generated for all files in the same folder. This should speed up the process.
De-duplicate destination directories
Copy link
Collaborator

@Psykoral Psykoral left a comment

Choose a reason for hiding this comment

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

Thanks for all the work here. It's been a while, and I'm a new contributor, so sorry this took so long to get a good look at.

This needs a few adjustments, and a merge down before it can be tested again. If you're still interested in doing so, I'd be happy to look at it again after that.

Oh, also, you'll want to configure your IDE to add line endings at the end of the file:

Change your Editor settings:

Settings → Editor → General → Ensure line feed at file end on Save

@@ -1,3 +1,3 @@
node_modules
npm-debug.log
tmp
.DS_Store
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you please add .idea/ to this list, and then remove the .DS_Store and .idea/* files from your PR?

]
},

sample: {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Not entirely sure we'd need a whole sample area here just to show the new option, to be honest. Can you please add the debug and new files[] options as items in the README.md instead?

grunt.registerTask('test', ['ftp_push']);
grunt.registerTask('sample', ['ftp_push:sample']);
Copy link
Collaborator

Choose a reason for hiding this comment

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

We can remove this if we're removing the sample from above.

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.

9 participants