https://github.com/jsforce/gulp-jsforce-deploy
Deploying Salesforce package using JSforce (no Migration Tool dependency)
https://github.com/jsforce/gulp-jsforce-deploy
Last synced: about 1 year ago
JSON representation
Deploying Salesforce package using JSforce (no Migration Tool dependency)
- Host: GitHub
- URL: https://github.com/jsforce/gulp-jsforce-deploy
- Owner: jsforce
- Created: 2015-02-20T15:51:51.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2020-01-16T15:47:53.000Z (over 6 years ago)
- Last Synced: 2025-04-19T19:36:58.782Z (about 1 year ago)
- Language: JavaScript
- Size: 8.79 KB
- Stars: 30
- Watchers: 9
- Forks: 13
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gulp-jsforce-deploy
[](https://travis-ci.org/jsforce/gulp-jsforce-deploy)
A gulp plugin for deploying Salesforce package, using JSforce's Metadata API feature.
As it is implemented purely in Node.js, you do not have to setup Force.com Migration Tool (Ant, Java) anymore.
## Setup
```
$ npm init
$ npm install gulp gulp-zip gulp-jsforce-deploy --save-dev
```
## Example
### Project Directory
```
├── gulpfile.js
├── package.json
└── pkg
├── classes
├── objects
├── package.xml
├── pages
└── staticresources
```
### gulpfile.js
```javascript
var gulp = require('gulp');
var zip = require('gulp-zip');
var forceDeploy = require('gulp-jsforce-deploy');
gulp.task('deploy', function() {
gulp.src('./pkg/**', { base: "." })
.pipe(zip('pkg.zip'))
.pipe(forceDeploy({
username: process.env.SF_USERNAME,
password: process.env.SF_PASSWORD
//, loginUrl: 'https://test.salesforce.com'
//, pollTimeout: 120*1000
//, pollInterval: 10*1000
//, version: '33.0'
}));
});
```
### Deploy
```
$ SF_USERNAME=username@example.com SF_PASSWORD=yourpassword gulp deploy
```
or if you have `foreman` installed, create `.env` file with above credential information, and execute :
```
$ foreman run gulp deploy
```