Lightning is an awesome (relatively) new framework to develop Salesforce applications. Started in 2012 it’s now the new standard in how to develop in Salesforce.
If you’re using Salesforce you’re using Lightning without knowing it.
Brief Introduction to Lightning
- Lightning is an Experience, a Framework and an Ecosystem
- Built on the Aura Framework
- Aura is an open-source UI framework that we use to build the Salesforce Lightning Experience UI
- Aura was built for Salesforce, but it can be used by any developer
- Aura powers Lightning Experience
- Lighting is designed to follow an app-centric model
- Lightning Components and Applications come in “Bundles” that store all of the necessary files to run Reusable, single-page applications
If you’re reading this article probably you already know about Lightning. So without further ado I’ll get to the subject of this blog. How do you setup Sublime 3 to develop Lightning applications?
Here is how you do it.
- Sublime 3 with the Package Manager installed
- The latest OSX
- Download the Force CLI executable from Heroku
- Open a terminal window, go to the downloaded file and make it executable typing
- Copy/move the executable in the folder
- Install the following plugin: Fix Mac Path and Lightning
- Restart Sublime
- Create a new folder where you want the Lightning code to reside
- Open the folder just created form the
Open Filessidebar right click on the folder. A menu will appear, chose
- Login to the Salesforce org as shown in the picture below
- You’re ready rock and roll!!
Fig.1 - Loign to Salesforce Org by right-clicking on a folder
How it works
- Access the the menu by right click on your folder of choice
Fetchand then select the component and/or app you want to modify
Addto add a controller and/or a helper
Createto create an
- Your code will be synced on save