![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
broccoli-salesforce-deploy
Advanced tools
A broccoli plugin to deploy files to a salesforce org using the tooling ap
A broccoli plugin to deploy files to a salesforce org using the tooling api
// Brocfile.js
//
// This setup will deploy the directory MyResource.resource
// as a static resource called MyResource.
// You can download the produced zip file from http://localhost:4200
// when broccoli is running.
//
var funnel = require('broccoli-funnel');
var zip = require('broccoli-zip-js');
var deploy = require('broccoli-salesforce-deploy');
var mergeNodes = require('broccoli-merge-trees');
deploy.setLogLevel('info');
// Give you're directory name here - the actual directory looked for will be 'MyResource.resource'
var resourceName = 'MyReource';
// zip the directory into 'MyResource.zip'
resource = zip(resourceName + '.resource', { name: resourceName + '.zip' });
// deploy the resource to salesforce
deployed = deploy(resource, {
// in general you don't want to deploy every time you start broccoli so its better to skip the first
// build unless you're building for production
skipFirstBuild: true,
file: resourceName + '.zip',
type: 'StaticResource',
loginUrl: 'https://test.salesforce.com',
username: 'MyUsername@SomeDomain.com',
password: 'somePassword',
securityToken: 'someSecurityToken'
});
module.exports = mergeNodes([ deployed ]);
You can also deploy a visualforce page like so:
var isProduction = false;
var pagesPath = './pages';
var fileName = 'MyPage.page';
var pageName = 'MyPage';
page = deploy(pickFiles(pagesPath, { include: [ fileName ] }), {
// in general you don't want to deploy every time you start broccoli so its better to skip the first
// build unless you're building for production
skipFirstBuild: !isProduction,
type: 'ApexPage',
apiVersion: '37.0',
file: fileName,
name: pageName,
username: sfCreds.username,
password: sfCreds.password,
securityToken: sfCreds.securityToken
});
var isProduction = false;
var bundlePath = './auraBundles';
var bundleName = 'MyLightningBundle';
var sfCreds = {
username: 'MyUsername@SomeDomain.com',
password: 'somePassword',
securityToken: 'someSecurityToken'
};
var deploymentDefaults = {
// in general you don't want to deploy every time you start broccoli so its better to skip the first
// build unless you're building for production
skipFirstBuild: !isProduction,
type: 'AuraDefinition',
apiVersion: '37.0',
// below are the available definition types
// defType: 'APPLICATION', 'DESIGN', 'HELPER', 'CONTROLLER', 'RENDERER', 'DOCUMENTATION', 'STYLE', 'COMPONENT', 'SVG'
name: bundleName,
username: sfCreds.username,
password: sfCreds.password,
securityToken: sfCreds.securityToken
};
var appName = 'MyApp.app';
var app = deploy(pickFiles(bundlePath, { include: [ appName ] }),
Object.assign({}, deploymentDefaults, {
file: appName,
defType: 'APPLICATION',
format: 'XML'
}));
var auradocName = 'MyComponent.auradoc';
var auradoc = deploy(pickFiles(bundlePath, { include: [ auradocName ] }),
Object.assign({}, deploymentDefaults, {
file: auradocName,
defType: 'DOCUMENTATION',
format: 'XML'
}));
var componentName = 'MyComponent.cmp'
var component = deploy(pickFiles(bundlePath, { include: [ componentName ] }),
Object.assign({}, deploymentDefaults, {
file: componentName,
defType: 'COMPONENT',
format: 'XML'
}));
var designName = 'MyComponent.design';
var design = deploy(pickFiles(bundlePath, { include: [ designName ] }),
Object.assign({}, deploymentDefaults, {
file: designName,
defType: 'DESIGN',
format: 'XML'
}));
var svgName = 'MyComponent.svg';
var svg = deploy(pickFiles(bundlePath, { include: [ svgName ] }),
Object.assign({}, deploymentDefaults, {
file: svgName,
defType: 'SVG',
format: 'SVG'
}));
var styleName = 'MyComponent.css';
var style = deploy(pickFiles(bundlePath, { include: [ styleName ] }),
Object.assign({}, deploymentDefaults, {
file: styleName,
defType: 'STYLE',
format: 'css'
}));
var controllerName = 'MyComponentController.js';
var controller = deploy(pickFiles(tool, { include: [ controllerName ] }),
Object.assign({}, deploymentDefaults, {
file: controllerName,
defType: 'CONTROLLER',
format: 'JS'
}));
var helperName = 'MyComponentHelper.js';
var helper = deploy(pickFiles(tool, { include: [ helperName ] }),
Object.assign({}, deploymentDefaults, {
file: helperName,
defType: 'HELPER',
format: 'JS'
}));
var rendererName = 'MyComponentRenderer.js';
var renderer = deploy(pickFiles(tool, { include: [ rendererName ] }),
Object.assign({}, deploymentDefaults, {
file: rendererName,
defType: 'RENDERER',
format: 'JS'
}));
FAQs
A broccoli plugin to deploy files to a salesforce org using the tooling ap
We found that broccoli-salesforce-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
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.