+ Start a Discussion
Pablo GarciaPablo Garcia 

Lightning components deployment


Does anybody know if it is possible to get the code of lightning components in a local file system?
We have to work in a project where the developers have to share their developments using an external source control repository. It is possible?

I am not able to see how to work with ligthning component in Force.com IDE...

Thanks!
Best Answer chosen by Pablo Garcia
Rupali PophaliyaRupali Pophaliya
You can manually create package.xml in IDE and fetch Lightning components: 
 
<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
   <types>
         <members>*</members>
	     <name>AuraDefinitionBundle</name>
    </types>
    <version>32.0</version>
</Package>

Refer below links for more details:

https://developer.salesforce.com/forums/#!/feedtype=SINGLE_QUESTION_DETAIL&dc=Lightning&criteria=OPENQUESTIONS&id=906F0000000AoXfIAK

https://developer.salesforce.com/forums/?id=906F0000000Aox9IAC





 

All Answers

Rupali PophaliyaRupali Pophaliya
You can develop Lightning Components in a sandbox or Developer Edition org and then deploy them to any organization that supports Apex using managed packages. 
Pablo GarciaPablo Garcia
Hi Rupali,

Thanks for your quick answer, but what we need is to get the code of the lightning components in order to store it in an external source repostory, as we do now with the apex classes and visualforce pages (in this case using Force.com IDE)
Rupali PophaliyaRupali Pophaliya
You can manually create package.xml in IDE and fetch Lightning components: 
 
<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
   <types>
         <members>*</members>
	     <name>AuraDefinitionBundle</name>
    </types>
    <version>32.0</version>
</Package>

Refer below links for more details:

https://developer.salesforce.com/forums/#!/feedtype=SINGLE_QUESTION_DETAIL&dc=Lightning&criteria=OPENQUESTIONS&id=906F0000000AoXfIAK

https://developer.salesforce.com/forums/?id=906F0000000Aox9IAC





 
This was selected as the best answer
Pablo GarciaPablo Garcia
Thanks again. Your answer has been very helpful.