Table of Contents generated with DocToc
The Lightning Inspector allows users to view and navigate the component tree, inspect attributes of components, and investigate the performance of component life cycles.
The Lightning Inspector lives in the aura public open source repo so it must be Aura specific; no Salesforce-specific entries. To allow you to also debug Salesforce-specific features we've added the Sfdc Inspector extension to the Lightning Inspector. It adds panels for Salesforce-specific features such as Aura Data Service (ADS and RLB tabs). You do not need to install the Sfdc Inspector but it's suggested.
- Download or clone the Lightning Inspector code from Github and unzip the file.
- Set up the Environment
1. nvm install --lts
2. npm install yarn -g
- Set up
yarn install
yarn build
- Development
yarn watch
- Open up a browser like Google Chrome and type in chrome://extensions/
- Click the Developer Mode checkbox in the top right
- Click the "Load unpacked Extensions" button on the left
- Select the directory for the aura-inspector
- On a website you wish to use the inspector, right click on page and click on 'inspect' (ctrl/cmd + option + i).
- From there, navigate on the top bar with tabs to access the Lightning Inspector tool
The google sites page and public documentation are still great resources.
https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/inspector_use.htm
- When making changes to the Lightning Inspector code, there are a set of requirements that must pass before sending a PR.
- First, fork the repository on Github.
- If you wrote a unit test for the changes, your test and the current unit tests in the code base should all pass. You can do this by running yarn test on the terminal.
- The inspector should build without any errors. You can do this by running ‘yarn build’ on the terminal.
- The inspector should also pass with manual testing.
- Go to the chrome extension page, chrome://extensions/, and press the reload button for the Lightning Inspector extension.
- The inspector should work with a complex application like the Lightning Experience, Lightning Out, and non aura pages should still show a message. Go through all the tabs under the Lightning Inspector, and if you see an error, verify against master. If there is still an error, file an issue to the repo and you may proceed with your PR.
- Test the inspection panel on the elements detail section and make sure there are no errors that occur.
- Lastly, when all the previous steps pass, make sure the code passes with Circle CI when you push to Github. If the build fails, you should debug the error, and push the code again to see if it builds successfully.
- Code coverage must be increased or stay the same.
- Please add Kris Gray as the reviewer for the PR