Upload files to an FTP-server
Useful for uploading and deploying things.
$ npm install --save-dev grunt-ftp
require('load-grunt-tasks')(grunt); // npm install --save-dev load-grunt-tasks
grunt.initConfig({
ftp: {
options: {
host: 'website.com',
user: 'johndoe',
pass: '1234'
},
upload: {
files: [{
cwd: 'src',
src: ['**/*'],
dest: 'public_html'
}]
}
}
});
grunt.registerTask('default', ['ftp']);
Required
Type: string
Type: number
Default: 21
Type: string
Default: 'anonymous'
Type: string
Default: '@anonymous'
MIT © Sindre Sorhus