Skip to content

Instantly share code, notes, and snippets.

@DDaelman
Created February 25, 2015 13:33
Show Gist options
  • Save DDaelman/96aaa5155473069c33b4 to your computer and use it in GitHub Desktop.
Save DDaelman/96aaa5155473069c33b4 to your computer and use it in GitHub Desktop.
antdeploy: {
options: {
root: 'deploy/', //Temporary deploy staging area
},
dev1: {
options: { //SF credentials need to be set as Environment Variables
user: process.env.DEVNAME,
pass: process.env.DEVPASS,
token: process.env.DEVTOKEN,
serverurl: 'https://test.salesforce.com'
},
pkg: {
staticresource: ['*']
}
}
},
//Zip the my_script_resources folder and move it to the deploy/ folder
zip_directories: {
my_script_resources: {
files: [{
filter: 'isDirectory',
expand: true,
cwd: './resource-bundles/my_script_resources.resource',
src: ['my_script_resources'],
dest: './deploy/staticresources'
}]
}
},
copy: {
//Copy the my_script_resources metadata file
my_script_resources_meta: {
src: 'src/staticresources/my_script_resources.resource-meta.xml',
dest: 'deploy/staticresources/my_script_resources.resource-meta.xml'
},
//Copy the zipped my_script_resources file to remove the .zip extension
my_script_resources_rename:{
src: 'deploy/staticresources/my_script_resources.zip',
dest: 'deploy/staticresources/my_script_resources.resource'
}
},
clean: ["deploy"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment