grunt-ftp_sub_folders

0.1.11 • Public • Published

grunt-ftp_sub_folders

FTP all subfolders from your specified src to FTP. This patch creates the all the subfolders from the src to FTP.

Getting Started

This plugin requires Grunt ~0.4.5

If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

npm install grunt-ftp_sub_folders --save-dev

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

grunt.loadNpmTasks('grunt-ftp_sub_folders');

The "ftp_sub_folders" task

Overview

In your project's Gruntfile, add a section named ftp_sub_folders to the data object passed into grunt.initConfig().

// Project configuration.
  grunt.initConfig({
    // Configuration to be run (and then tested).
    ftp_sub_folders: {
       options: {
            "host": "",
            "port": ,    
            "user": "",  //user id
            "pass": ""   //password
        },
        files: [{
            expand: true,
            cwd: 'src/',
            src: ['**/*.{png,jpg,jpeg,gif}'],  //you can define file types to FTP here
            dest:'dest/'  //your FTP destination folder  

        }]
    }
  });

Release History

04/30/2106 - Slightly better readme update..

Readme

Keywords

Package Sidebar

Install

npm i grunt-ftp_sub_folders

Weekly Downloads

0

Version

0.1.11

License

none

Last publish

Collaborators

  • thedyke1