ftp-deploy
Advanced tools
Comparing version 1.2.1 to 1.2.2
{ | ||
"name": "ftp-deploy", | ||
"version": "1.2.1", | ||
"author": "Simon Hampton (was Rick Bergfalk)", | ||
"description": "Ftp a folder from your local disk to an ftp destination. Does not delete from destination directory. Derived from grunt-ftp-deploy", | ||
"keywords": [ | ||
"ftp", | ||
"deploy" | ||
], | ||
"license": "", | ||
"dependencies": { | ||
"jsftp": "1.x.x", | ||
"async": "2.x.x", | ||
"minimatch": "3.0.3", | ||
"read": "1.0.7" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/rickbergfalk/ftp-deploy" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/rickbergfalk/ftp-deploy/issues" | ||
}, | ||
"engines": { | ||
"node": ">=4" | ||
}, | ||
"contributors": [ | ||
{ | ||
"name": "Ondrej", | ||
"url": "https://github.com/der-On" | ||
"name": "ftp-deploy", | ||
"version": "1.2.2", | ||
"author": "Simon Hampton (was Rick Bergfalk)", | ||
"description": "Ftp a folder from your local disk to an ftp destination. Does not delete from destination directory. Derived from grunt-ftp-deploy", | ||
"keywords": [ | ||
"ftp", | ||
"deploy" | ||
], | ||
"license": "", | ||
"dependencies": { | ||
"jsftp": "2.0.x", | ||
"async": "2.x.x", | ||
"minimatch": "3.0.4", | ||
"read": "1.0.7" | ||
}, | ||
{ | ||
"name": "keyle", | ||
"url": "https://github.com/keyle" | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/simonh1000/ftp-deploy" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/simonh1000/ftp-deploy/issues" | ||
}, | ||
"engines": { | ||
"node": ">=4" | ||
}, | ||
"contributors": [{ | ||
"name": "Ondrej", | ||
"url": "https://github.com/der-On" | ||
}, | ||
{ | ||
"name": "keyle", | ||
"url": "https://github.com/keyle" | ||
} | ||
], | ||
"scripts": { | ||
"lint": "xo", | ||
"lint-fix": "xo --fix", | ||
"test": "node test/test.js" | ||
}, | ||
"main": "ftp-deploy", | ||
"devDependencies": { | ||
"xo": "^0.18.2" | ||
} | ||
], | ||
"scripts": { | ||
"lint": "xo", | ||
"lint-fix": "xo --fix", | ||
"test": "node test/test.js" | ||
}, | ||
"main": "ftp-deploy", | ||
"devDependencies": { | ||
"xo": "^0.18.1" | ||
} | ||
} | ||
} |
# ftp-deploy | ||
Ftp a folder from your local disk to a remote ftp destination. Does not delete from destination directory. | ||
A Node.js package to help with deploying code. Ftp a folder from your local disk to a remote ftp destination. Does not delete from destination directory. | ||
A Node.js package. | ||
## Installation | ||
```js | ||
npm install ftp-deploy | ||
``` | ||
(Need sftp? Check out [sftp-upload](https://github.com/pirumpi/sftp-upload)) | ||
@@ -11,6 +15,14 @@ | ||
I've taken over from Rick and will start working on the deprecation warnings, and the 'delete remote directory' requests. | ||
I've taken over from Rick in May 2017, and will start working on the deprecation warnings, and the 'delete remote directory' requests. | ||
## Usage | ||
I create a file - e.g. deploy.js - in the root of my source code and add a script to its package.json so that I can `npm run deploy`. | ||
```json | ||
"scripts": { | ||
"deploy": "node deploy" | ||
}, | ||
``` | ||
The most basic usage (stops uploading when an error occurs): | ||
@@ -67,15 +79,8 @@ | ||
``` | ||
## Testing | ||
I use proftpd to create a simple ftp server at test/remote and then run the script at `node ./test/test` | ||
## Installation | ||
```js | ||
npm install ftp-deploy | ||
``` | ||
## License | ||
MIT |
@@ -7,27 +7,27 @@ const path = require('path'); | ||
const config = { | ||
username: 'simon', | ||
password: '', // Optional, prompted if none given | ||
host: 'localhost', | ||
port: 21, | ||
localRoot: path.join(__dirname, 'test-root'), | ||
remoteRoot: path.join(__dirname, 'ftpsite'), | ||
exclude: ['.git', '.idea', 'tmp/*'] | ||
username: 'simon', | ||
password: '', // Optional, prompted if none given | ||
host: 'localhost', | ||
port: 21, | ||
localRoot: path.join(__dirname, 'local'), | ||
remoteRoot: path.join(__dirname, 'remote'), | ||
exclude: ['.git', '.idea', 'tmp/*'] | ||
}; | ||
ftpDeploy.on('uploaded', data => { | ||
console.log('uploaded:'); | ||
console.log(data); | ||
console.log('uploaded:'); | ||
console.log(data); | ||
}); | ||
ftpDeploy.on('uploading', data => { | ||
console.log('uploading'); | ||
console.log(data); | ||
console.log('uploading'); | ||
console.log(data); | ||
}); | ||
ftpDeploy.deploy(config, err => { | ||
if (err) { | ||
console.log(err); | ||
} else { | ||
console.log('finished'); | ||
} | ||
}); | ||
if (err) { | ||
console.log(err); | ||
} else { | ||
console.log('finished'); | ||
} | ||
}); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
16017
20
232
85
0
+ Addedjsftp@2.0.0(transitive)
+ Addedminimatch@3.0.4(transitive)
- Removedjsftp@1.5.5(transitive)
- Removedminimatch@3.0.3(transitive)
Updatedjsftp@2.0.x
Updatedminimatch@3.0.4