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 .

32 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. it’s very helpful thanks for your valuable information follow us
    salesforce cpq online training Hyderabad

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

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

    ReplyDelete
  9. . 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
  10. Thanks For Sharing this valuable information good Home Lockers

    ReplyDelete
  11. 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
  12. 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
  13. 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
  14. 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
  15. 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
  16. Lasik surgeons in Delhi are amongst the most esteemed professionals in the field of ophthalmology, known for their expert proficiency in performing vision correction surgeries. These surgeons, with their extensive training and experience, utilize the latest laser technologies to ensure precise and safe procedures. They work within state-of-the-art medical facilities, where patient comfort and care are prioritized above all. Each surgeon adopts a personalized approach, tailoring the Lasik procedure to match the unique needs and conditions of the patient, aiming for optimal outcomes. Their dedication to excellence is reflected in the high success rates and positive patient testimonials. The surgeons are not only committed to achieving the best possible vision correction but also to the thorough pre and post-operative care of their patients. Opting for a Lasik surgeon in Delhi means placing your trust in a professional who is part of a broader commitment to enhancing patients' life quality through improved vision.
    https://www.visualaidscentre.com/

    ReplyDelete
  17. Buying real YouTube subscribers represents a strategic investment for creators aiming to authentically grow their channel's audience. This approach involves engaging with a service that helps increase your subscriber count with actual users, as opposed to bots or inactive accounts. Real subscribers bring genuine engagement to your content, increasing likes, comments, and shares, which, in turn, boost your channel's visibility and credibility. This method not only enhances your channel's metrics in a legitimate manner but also complements YouTube's algorithm, promoting your content to a wider audience. While more costly than purchasing cheap, generic subscribers, investing in real subscribers offers long-term benefits, contributing to sustainable channel growth. It's a crucial step for creators serious about building a loyal community and achieving lasting success on YouTube.
    https://sites.google.com/view/buyytsubscribers/

    ReplyDelete
  18. Buy YouTube Views Cheap offers an affordable entry point for content creators seeking to enhance the apparent popularity and visibility of their videos without a hefty investment. This service targets budget-conscious individuals and small-scale creators, providing them with a cost-effective means to boost their video's view count. By attracting a higher number of views at a lower price, it can potentially improve the video's ranking and visibility in YouTube's algorithm, leading to increased organic growth over time. This service operates within YouTube's terms of service, ensuring that creators can safely enhance their video metrics without risking penalties. Ideal for those starting out or looking to experiment with the impact of view counts on video performance, Buy YouTube Views Cheap represents a strategic step towards greater digital visibility and audience engagement.
    https://www.buyyoutubeviewsindia.in/

    ReplyDelete
  19. Discover an unparalleled opportunity in Singapore for Indian nurses seeking to advance their careers on an international stage. Our leading healthcare institutions are now hiring for various specialties, including critical care, oncology, and community health. Successful candidates will enjoy a competitive salary, comprehensive benefits, and a multicultural workplace that prioritizes inclusivity and professional development. With access to cutting-edge medical technologies and continuous learning opportunities, you'll be at the forefront of the nursing field. Furthermore, Singapore's fusion of modern lifestyle and cultural diversity offers a unique living experience, complementing your professional growth. Join us to make a significant impact in patient care and take your nursing career to new heights in one of the world’s most vibrant cities.
    https://dynamichealthstaff.com/nursing-jobs-in-singapore-for-indian-nurses

    ReplyDelete
  20. Breast cancer oncologists in Mumbai are renowned for their specialized knowledge in the medical treatment of breast cancer, employing state-of-the-art chemotherapy, hormone therapy, and targeted therapy protocols. Their expertise extends to creating personalized treatment plans that consider the unique genetic makeup of each patient's cancer, thereby optimizing outcomes. These oncologists work within a multidisciplinary team, ensuring a cohesive approach to patient care that encompasses both cutting-edge medical treatments and psychosocial support. They are committed to advancing the field of oncology through research and the integration of new therapies that promise improved survival rates and quality of life for patients. The focus on continuous education and patient awareness drives these specialists to host regular workshops and seminars, empowering patients with knowledge about their condition. In a city known for its advanced healthcare, these oncologists stand out for their compassionate care, dedication to patient outcomes, and leadership in the battle against breast cancer.
    https://drnitanair.com/

    ReplyDelete
  21. In the vibrant city of Ahmedabad, a Pancreatic Cancer Specialist is at the forefront of battling one of the most challenging cancers with unmatched expertise and dedication. This specialist's approach to treatment is both innovative and personalized, ensuring that each patient receives cutting-edge care tailored to their specific condition. With a deep commitment to incorporating the latest research and advanced technologies into their practice, they are pioneering new ways to combat pancreatic cancer more effectively. The specialist also places a high emphasis on holistic care, offering patients comprehensive support that addresses not just the physical aspects of the disease but also the emotional and psychological challenges that come with a diagnosis. Their active involvement in global research networks allows them to bring novel therapies and hope to those in need. Esteemed for their empathy and patient-centric care, this specialist is not only changing the course of pancreatic cancer treatment in Ahmedabad but is also a source of strength and hope for patients and their families in their fight against this devastating disease.
    https://drvirajlavingia.com/

    ReplyDelete
  22. The Breast Cancer Oncologist in Gurgaon is a luminary in the treatment of breast cancer, employing a multifaceted approach that encompasses the latest in oncological research and therapy. With a steadfast commitment to excellence, this oncologist utilizes cutting-edge technology and techniques to tailor treatments specifically to the individual needs of their patients. Their expertise is matched by a profound compassion, offering not just medical treatment but emotional support, enabling patients to face their diagnosis with courage and determination. Known for their innovative strategies, they remain at the vanguard of medical science, constantly seeking out new methods to improve outcomes and enhance quality of life. This oncologist's approach is grounded in a belief in the power of a patient-centered care model, one that fosters hope, promotes healing, and supports patients every step of the way. They are not only a celebrated figure in Gurgaon's medical community but also a beacon of hope for those affected by breast cancer, dedicated to transforming the cancer treatment landscape with unparalleled care and precision.
    https://www.breastoncosurgery.com/

    ReplyDelete
  23. Our esteemed breast cancer oncologist in Pune is renowned for their exceptional expertise and compassionate patient care. Specializing in advanced oncology treatments, they offer personalized care plans that include chemotherapy, radiation therapy, and state-of-the-art targeted treatments. Collaborating closely with a multidisciplinary team, they ensure a comprehensive approach that addresses both physical and emotional well-being. Located in a cutting-edge facility equipped with the latest technology, they provide a supportive and nurturing environment for all patients. Trust our breast cancer oncologist in Pune for dedicated, expert care tailored to your unique health journey.
    https://www.drshonanagbreastcancer.in/

    ReplyDelete
  24. Australia's market for hair growth products is robust, featuring a wide variety of solutions designed to address both hair thinning and baldness. Key products include topical treatments like minoxidil, available in different formulations to cater to various levels of hair loss. Oral medications such as finasteride are also popular for their effectiveness in preventing further hair loss and stimulating growth. In addition to pharmaceuticals, numerous clinics and online retailers offer advanced therapies like Low-Level Laser Therapy (LLLT) devices and Platelet-Rich Plasma (PRP) kits. The range of options also extends to specialized shampoos, conditioners, and dietary supplements formulated with natural ingredients to nourish hair from the inside out. Tailored treatment plans provided by clinics ensure personalized care, boosting the effectiveness of these products.
    https://generichealth.com.au/minoxidil-3/

    ReplyDelete
  25. LASIK eye surgery in Delhi offers a state-of-the-art solution for individuals seeking freedom from glasses and contact lenses. The procedure involves reshaping the cornea using advanced laser technology to correct refractive errors such as myopia, hyperopia, and astigmatism. Delhi is home to numerous world-class eye care centers, staffed by experienced ophthalmologists known for their precision and expertise. Patients benefit from personalized pre-surgical assessments and comprehensive post-operative care, ensuring optimal outcomes. The city’s clinics employ cutting-edge technology to enhance safety and efficacy, making LASIK a highly reliable option. Recovery is swift, allowing patients to resume normal activities within days. The growing popularity of LASIK in Delhi underscores its efficacy and the high standard of care provided.
    https://medium.com/@pojagupta

    ReplyDelete
  26. LASIK eye surgery in Delhi is a highly advanced procedure aimed at correcting vision problems such as myopia, hyperopia, and astigmatism. Utilizing cutting-edge laser technology, the surgery precisely reshapes the cornea to enhance visual acuity. Known for its accuracy and safety, LASIK offers a rapid recovery time, often allowing patients to resume their daily activities within a couple of days. Delhi is home to numerous top-tier ophthalmology clinics equipped with the latest technology and staffed by experienced surgeons. Patients who undergo this procedure typically experience significant improvements in vision, reducing their reliance on glasses or contact lenses. The combination of innovative technology and expert care makes LASIK a popular choice for vision correction in Delhi.
    https://www.linkedin.com/today/author/romila-chaudhary-b2194626

    ReplyDelete
  27. Low-risk, high-return investments in India appeal to conservative investors who seek steady growth without the anxiety of significant market risk. One rewarding option is the Fixed Deposit (FD), which offers assured returns that often exceed those of conventional savings accounts. The Public Provident Fund (PPF) combines an attractive interest rate with tax benefits, making it an excellent long-term savings vehicle. Government securities, including bonds and treasury bills, provide reliable income while safeguarding capital. Debt mutual funds invest in fixed-income instruments, offering lower risk and stable returns. Senior Citizen Savings Schemes cater to elderly investors, ensuring competitive interest rates for those in retirement. Liquid funds serve investors looking for short-term, easily accessible investments with minimal risk. Engaging in these low-risk options can create a robust portfolio, designed for steady capital growth and resilience against economic fluctuations.
    http://perannum.money/

    ReplyDelete
  28. There are several methods for constructing pile foundations, each suited to different soil conditions and structural requirements. Here are the main methods inpile foundation in bangalore

    ReplyDelete
  29. Ray Mackay is a leading expert in online research and digital investigation, specializing in zaba free people search techniques that provide quick and accurate access to publicly available information. With years of experience utilizing advanced search tools and methods, Ray helps individuals and organizations find the data they need effortlessly. His in-depth knowledge of Zaba's free people search makes him a trusted resource for anyone looking to enhance their ability to locate personal information, perform background checks, or connect with lost contacts using free and accessible online resources.

    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 ...