function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ken KoellnerKen Koellner 

IDE and Deployment (yeah, I know I'm getting ahead of myself.)

I know I'm getting ahead of myself but I'm already thinging about deployment and development.  The Dev Console has been good for working through the tutorial but there may be times when our developers will want to use the IDE, for one thing, just to get backup files of modules, and for another for doing quick incremental deployments between sandboxes.  I'm also thinking about our production deployments.  We use the ant meta-data tool as it provides a realiable way to extract all our source and the deploy to production from a batch (UNIX shell) environment.

I don't see anything in the 31.0 meta-data selector for Lightning components but it seems to me the IDE and metadata tools have always come a few months late.

Anyone know if/when the IDE and ant migraition tool will support retreive and deploying Lightning components?

-Ken
 
Best Answer chosen by Ken Koellner
Ken KoellnerKen Koellner
Turns out its pretty easy.  Go to the Lighting page on your org (adjust URL for your pod, i.e., you problably need to change na8) -- https://na8.salesforce.com/0Ab and it lists the bundles that have been defined.  Then compose a package.xml file like below.  Then use the R32.0 ant tool and you'll get all the files.
 
<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <types>
        <members>Expense__c</members>
        <name>CustomObject</name>
    </types>
    <types>
        <members>expenseList</members>
        <members>expenseTracker</members>
        <members>form</members>
        <name>AuraDefinitionBundle</name>
    </types>
    <version>32.0</version>
</Package>

 

All Answers

Hargobind_SinghHargobind_Singh
I dont' really have an answer to this, and am wondering the same as well. However, I did see a Lightning Metadata Type in the doc. 

https://www.salesforce.com/us/developer/docs/api_meta/Content/meta_types_list.htm
Ken KoellnerKen Koellner
I read the stuff on the Lightning metatype here -- https://www.salesforce.com/us/developer/docs/api_meta/Content/meta_auradefinitionbundle.htm

It looks like the ant tool is up to API version 32.0 so perhaps it will support Aura/Lightning.  But I believe the IDE is only up to API 29.0.

What I believe is a gap in knowledge is how to prepare an AuraDefinitionBundle.  It looks like that supposed to be some sort of bag that holds a list of files.  If the IDE supported it, I could see if there's a way to create one there (or if is implicitly created by doing Auto definitions in the Dev Console, see what one looks like.)  But without knowing if I have one yet or how to prepare one, I can't compose a package.xml to extract one.
Ken KoellnerKen Koellner
One of the other theads on this forum pointed to https://developer.salesforce.com/page/Lightning_FAQ  That clears up some of the questions about how things may be deployed in the future when Lightning is GA.
Ken KoellnerKen Koellner
Turns out its pretty easy.  Go to the Lighting page on your org (adjust URL for your pod, i.e., you problably need to change na8) -- https://na8.salesforce.com/0Ab and it lists the bundles that have been defined.  Then compose a package.xml file like below.  Then use the R32.0 ant tool and you'll get all the files.
 
<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <types>
        <members>Expense__c</members>
        <name>CustomObject</name>
    </types>
    <types>
        <members>expenseList</members>
        <members>expenseTracker</members>
        <members>form</members>
        <name>AuraDefinitionBundle</name>
    </types>
    <version>32.0</version>
</Package>

 
This was selected as the best answer