Install mavensmate in sublime text with lighting support in mac

I love using sublime for as my text editor and IDE, While salesforce excites me with lightning component framework. I want to do my lightning development in my local machine.

In order to configure your Mavensmate IDE with lightning support follow these steps

  1. Install sublime text
  2. Install package control 
  3. Install Mavensmate
  4. Set Workspace
  5. Install lighting plugin
  6. Configure sublime for command line 
  7. Configure force.com cli

Install sublime text

Get your sublime text.

Place the Sublime test application in Application folder.

Install it on your local machine.


Install package control

Go to this link and copy the appropriate code for your sublime version.

Open your sublime text editor.

Go to View --> Show console.

Paste the code and click enter. It will install the package control. After the installation restart the sublime (Quit and open it).

Install Mavensmate  

Mavensmate  is nothing but an open source IDE for Force.com.

Open your sublime. Go to Sublime Text --> Preferences --> Package Control. or use the keyboard shortcut cmd + shift + p .

You will be prompted with a drop-down type install package.

Select Package Control: Install Package and press enter.

Now Search for Mavensmate , you will be prompted something like this window.

In that select Mavensmate  and press enter. Wait for the installation to complete.

Restart the sublime.

Set Workspace

Open MavensMate > Settings > User.

Enter the location of your workspace.

 

Install lighting plugin

In the same way, as you have installed Mavesmate install the lightning plugin.

Open your sublime. Go to Sublime Text --> Preferences --> Package Control. or use the keyboard shortcut cmd + shift + p .

You will be prompted with a drop-down type install package.

Select Package Control: Install Package and press enter.

Now Search for Lightning, you will be prompted something like the above window (Same window while installing mavensmate).

In that select Lightning, and press enter. Wait for the installation to complete.

Restart the sublime.

Configure sublime for command line 

Create a symbolic link for your sublime.

Open your terminal and type the following command.

sudo ln -s “/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl” /usr/local/bin/subl

Open your bash profile file.

nano ~/.bash_profile 

If file not found use

nano ~/.profile 

If .profile file is also not found , Create a new one.

nano .bash_profile 

And enter the following in to the file and save it.

export PATH=/usr/local/bin:$PATH

If the file is found add the above line in your file.

Now reload your source file using the source command.

source~/.bash_profile

Now type subl in your command line your sublime text editor will be opened.

Configure force.com cli

Get your force.com cli from this link.

All you get in your Downloads folder is a single file called "force". There is no installer, you just have to put this file someplace that makes sense. I moved it to a place where my path could see it and made sure it was executable for me.

mv ~/Downloads/force /usr/local/bin  
chmod u+x /usr/local/bin/force

Reload your source file using the following command.

source ~/.bash_profile

Restart your sublime.

You are all set to go. Enjoy your lightning development.

Happy coding !!! laugh

 

Rating: 
No votes yet