
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
gulp-jsforce-deploy
Advanced tools
Deploying Salesforce package using JSforce (no Migration Tool dependency)
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.
$ npm init
$ npm install gulp gulp-zip gulp-jsforce-deploy --save-dev
├── gulpfile.js
├── package.json
└── pkg
├── classes
├── objects
├── package.xml
├── pages
└── staticresources
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'
}));
});
$ 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
FAQs
Deploying Salesforce package using JSforce (no Migration Tool dependency)
The npm package gulp-jsforce-deploy receives a total of 442 weekly downloads. As such, gulp-jsforce-deploy popularity was classified as not popular.
We found that gulp-jsforce-deploy demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.