Socket
Book a DemoInstallSign in
Socket

@masatomakino/gulptask-deploy-ftp

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@masatomakino/gulptask-deploy-ftp

Thin ftp-deploy wrapper for gulp.js

0.1.1
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

gulptask-deploy-ftp

Thin ftp-deploy wrapper for gulp.js

MIT License Build

Getting Started

Install

npm install --save-dev gulp

and

npm install --save-dev https://github.com/MasatoMakino/gulptask-deploy-ftp.git

Run in gulpfile.js

The first step is to create an auth.json file.

{
  "user": "user_name",
  "password": "password",
  "host": "host.name.example",
  "remoteRoot": "/dir/to/public_html",
  "port": 21
}

This file contains the FTP authentication information. In this example, this file is stored in ~/.ftp_auth/auth.json.

The next step is to write gulpfile.js.

const os = require("os");
const path = require("path");

const { deploy } = require("gulptask-deploy-ftp").generateTasks({
  authFilePath: path.resolve(os.homedir(), ".ftp_auth", "auth.json"),
});

exports.deploy = deploy;

path.resolve(os.homedir(), ".ftp_auth", "auth.json") points to ~/.ftp_auth/auth.json

License

MIT licensed.

FAQs

Package last updated on 22 Jan 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.