Tuesday 26 April 2016

Lightning Locker Service Salesforce

Summer 16 pre-release notes are out from salesforce and one of the most important featuresis Lightning Locker Service for Lightning Components.

Here is a very detailed article on how this feature  works under the hood .The article Highlights the key security features that this feature will enforce on the components.

The biggest benefit from an ISV perspective will be ability to scan the component before you submit your component for the security review.

Salesforce also released a CLI tool for all partners and app developers to run scan locally on the lightning component to discover potential security issues or unused variables and enforce security best practice and code best practice.

In this blog I am gone to detail step by step instructions on how to Install the Salesforce Lightning CLI and Scan your components before submitting for appexchange or handing off your lightning component code to your client.

Step 1 - Heroku Installation

Depending on your OS version one can install the Heroku  toolbelt on your machine .The URL for the download is below

https://toolbelt.heroku.com/

Step 2 - Login via Command Line 

Once you install ,you can use your Heroku credentials to login in .If you have not signed up for heroku ,you can sign up for one online 













Step 3 -Install the Lightning CLI Plugin.

This can be installed by running following command once you login into heroku CLI

heroku plugins:install salesforce-lightning-cli

Step 4 -Navigate to your project path where you have your lightning component project on your local drive.

If you are on windows simply CD into the project path with cd /.path




Step 4 - Run the CLI command to find Issues

heroku lightning:lint .







You can get rid of unused variables and resolve bunch of errors .

Read further on this in below link

https://developer.salesforce.com/docs/atlas.en-us.202.0.lightning.meta/lightning/cli_rules.htm#cli_rules

Lets not just stop here ,there is a nice little documentation put together where you can add your own customized rules 

Here is the link to the documentation

https://developer.salesforce.com/docs/atlas.en-us.202.0.lightning.meta/lightning/cli_rules_customization.htm

Please note that Salesforce Safe Harbour Statement applies to this post and you should not make any buying decision on forward looking statements and instead make purchasing based on current offerings of the platform .

20 comments:

  1. Hi nice article on Salesforce Locker&Lightning
    easy to read and implement 
    we have a similar post about Lighting called Locker Services and Lightning Components go through this you will and find more valuble information.

    ReplyDelete
  2. Great! Awesome post, tried it worked as expected salesforce lightning training

    ReplyDelete
  3. Nice blog! the content which is mention in this blog is really understandable and informative. If you are looking best electrician please click here Emergency Electrician Bella Vista

    ReplyDelete
  4. Getting your hands on this high tech security gadgets does not cost a fortune today. With ease of installation and portability they offer a lot of features that appeal to all classes. CCTV Cameras are so beneficial in both personal and professional sectors that you will want to benefit from it right away. cctv camera

    ReplyDelete
  5. Are you looking for a great way to protect your home or place of business without having to spend a lot of money? Well, one of the best ways to do that would be using Dummy CCTV cameras. These are cameras that look real, but they are really just fakes. บริษัทรับติดตั้งกล้องวงจรปิด

    ReplyDelete

  6. Very innovative post! This post is very interesting and thanks for sharing it with us...
    Divorce in Virginia with Child
    Divorce Attorney in Fairfax

    ReplyDelete
  7. it’s very helpful thanks for your valuable information follow us
    salesforce cpq online training Hyderabad

    ReplyDelete
  8. Stretching: Passive stretching female to male massage home service near me techniques help improve flexibility and relieve muscle tension.

    ReplyDelete
  9. Explore the world of soothing massage parlour near me treatments to couples' sessions, discover the perfect massage center for you.

    ReplyDelete
  10. . The pain gate theory states that body to body spa bangalore non-harmful stimuli (massage) can block harmful stimuli (injury/inflammation) from transmitting impulses up the spinal pathway to the brain.

    ReplyDelete
  11. Thanks For Sharing this valuable information good Home Lockers

    ReplyDelete
  12. Finding the perfect massage parlour is crucial for those seeking a moment of relaxation and relief from life's stress. In this guide, we will explore the finest options available when you search for a female to male massage near me

    ReplyDelete
  13. Immerse yourself in a symphony of scents and sensations as steric massage Oil unfolds its aromatic embrace by female to male massage near me

    ReplyDelete
  14. If you are looking for relief from tension, stress or simply wish to relax with a male-female massage, the massage spa in chennai therapists are dedicated to providing a memorable experience.

    ReplyDelete
  15. In the vibrant ecosystem of YouTube in India, buying subscribers serves as a smart acceleration tactic for creators eager to carve out their niche and stand out. This strategy provides an immediate boost, propelling channels into a visible spectrum where authenticity meets opportunity. The resultant subscriber base becomes a beacon of credibility and attraction, making the channel a hub for engagement and organic growth. This approach not only fast-tracks the monetization process but also lays down a fertile ground for diverse and lucrative collaborations. Enabling creators to bypass the slow grind of organic growth, it allows them to focus on what they do best: creating compelling content. With the support of a substantial subscriber count, Indian YouTubers are better positioned to captivate the global audience, turning their creative passions into profitable careers. This method is not just about numbers; it's about establishing a solid foundation for long-term success in the digital realm.
    https://www.buyyoutubesubscribers.in/

    ReplyDelete
  16. The pressure applied in a massage may improve blood circulation. This can then transfer oxygen and nutrients to cells in a more efficient manner and improve overall well-being and health.
    b2b spa in chennai

    ReplyDelete

Introducing Lightning Base Components

Lightning Base Components are great addition to the platform and in fact revolutionary .One of the concerns around lightning component ...