Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

grunt-jsforce-deploy

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-jsforce-deploy

A grunt task for deploying Salesforce package using JSforce (no Migration Tool dependency)

  • 1.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
9
increased by200%
Maintainers
1
Weekly downloads
 
Created
Source

grunt-jsforce-deploy

Build Status

A grunt task 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 grunt grunt-jsforce-deploy --save-dev

Example

Project Directory

├── Gruntfile.js
├── package.json
└── pkg
    ├── classes
    ├── objects
    ├── package.xml
    ├── pages
    └── staticresources

Gruntfile.js

module.exports = function(grunt) {
  grunt.loadNpmTasks("grunt-jsforce-deploy");

  grunt.initConfig({
    jsforce_deploy: {
      pkg: {
        expand: true,
        cwd: ".",
        src: [ "pkg/**" ]
      },
      options: {
        username: process.env.SF_USERNAME,
        password: process.env.SF_PASSWORD,
//        loginUrl: "https://test.salesforce.com",
//        pollTimeout: 120*1000,  // set polling timeout to 120sec (default is 60sec)
//        pollInterval: 10*1000,  // set polling interval to 10sec (default is 5sec)
      }
    }
  });

  grunt.registerTask("deploy", [ "jsforce_deploy" ]);
};

Deploy

$ SF_USERNAME=username@example.com SF_PASSWORD=yourpassword grunt deploy

or if you have foreman installed, create .env file with above credential information, and execute :

$ foreman run grunt deploy

Keywords

FAQs

Package last updated on 19 Aug 2015

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc