Coder Social home page Coder Social logo

lukethacoder / lwc-dependency-viewer Goto Github PK

View Code? Open in Web Editor NEW
6.0 3.0 2.0 4.84 MB

๐ŸŸก Scan your LWC files to see the dependencies - displayed on a cytoscape powered graph

Home Page: https://ldv.lukesecomb.digital

License: MIT License

HTML 15.54% TypeScript 57.12% CSS 27.34%
developer-tools lightning-web-components salesforce-developers salesforce-lightning-web-components salesforce-metadata

lwc-dependency-viewer's Introduction

LWC Dependency Viewer logo

LWC Dependency Viewer


  • ๐Ÿ–ผ๏ธ Visual representation of your LWCs
  • ๐Ÿ”Ž Component Search
  • ๐Ÿ’ก Highlight linked components
  • ๐Ÿ”ฉ Indicators for LWC file types (HTML/JS/CSS)
  • ๐Ÿ“ฆ See which LWC are referencing Apex/StaticResources
  • ๐Ÿ”‘ Run locally without needing to install anything into your org

Getting Started

pnpm install

# before running, open the `scripts/walk-files.ts` script and replace the 
# FOLDER_TO_SEARCH` value with your project path.
#
# pending https://github.com/lukethacoder/lwc-dependency-viewer/issues/1
pnpm walk

# run the dev server
pnpm dev

# this should open at http://localhost:5173/ 

Default output.json has been generated from the trailheadapps/lwc-recipes repository as an example usage.

Screenshots

Hover LWC to see its neighbours

Click an LWC to open up a file view and to see any related Apex Classes and/or StaticResource references

Open up the search (keyboard shortcut /) and easily search for the LWC you're looking for.

Hide orphan LWCs that exist on their own and don't relate to other LWCs

Adjust the curve-style to your liking

Contribution

See Contributing Guide.

License

MIT.

lwc-dependency-viewer's People

Contributors

lukethacoder avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

lwc-dependency-viewer's Issues

Setup as SFDX Plugin

Setup to run as a SFDX plugin:

  • allow to be run from a sfdx project via a sfdx cli plugin sfdx ldv/sfdx lwc-dependecny-viewer
  • read paths from lwc.config.json and/or sfdx-project.json

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.