VisiVue (Beta)
As applications built in Vue JS scale in size and complexity, developers tasked with their maintenance and management often face challenges, particularly when dealing with unanticipated side-effects caused by two-way data binding. This is where VisiVue comes in. VisiVue is a VS Code extension that aims to fulfill our mission of providing Vue developers with deeper insight into their application's structure, data flow, and state management as it scales.
With VisiVue, developers are able to:
Visualize the component hierarchy of an application
Keep track of stateful variables as they flow from parent to children
Understand what variables are one-way data bound and two-way data bound
Keep track of which components these stateful variables are drilled through
Get Started
- Head to the VS Code store and download VisiVue
- Once installed, you may need to reload your VS Code, but next open up the command pallette by pressing "cmd + shift + p" on MacOS or "ctrl + shift + p" and click the command "Show VisiVue Panel".
- Once you click the command in the command pallette, it will open up VisiVue! All you have to do is import the Vue file you want to visualize and you are set!
Open Source
How to Contribute
We are looking for developers who believe in VisiVue and want to take it to the next level! Here are some features that we are currently working on implementing. Feel free to fork this repo and take a look at the source code!
Before submitting a pull request, please open an issue on our 'Issues' section.
| Further Features to Implement | Status |
| ------- | ------ |
| Vue Router Compatiblity | ⏳ |
| Pinia Compatibility | ⏳ |
| Testing Suites | ⏳ |
| Make the tree centered and zoomed properly on mount | ⏳ |
| Icon on each node that pulls up source code for that specific node | ⏳ |
| Compatibility with Vue applications that utilize provide/inject functions | ⏳ |
How to Run in Development Mode
- Clone the dev repo.
git clone https://github.com/oslabs-beta/VisiVue.git
- Go into the VisiVue directory on your local machine and install dependencies
npm install
Once you have successfully installed dependencies, to open the developer environment for the VS Code extension, press 'ctrl + f5' if you are on Windows, or 'fn + f5' if you are on MacOS. This will open a new VS Code text editor and allow you to see a development version of the extension.
- Note that may be difficult to get console logs when working on the Vue files specifically, so use the browser version by first checking out to the dev branch on your local machine:
git checkout dev
-Then navigate into the 'visivue-browser' directory:
cd visivue-browser
-And then run:
npm run dev
-there we have a browser version of our extension set up with nodemon
Once the VS Code development version is open, open the command pallete by pressing 'cmd + shift + p' and look for the command 'Show VisiVue Panel' and now you can see the extension!
- If you are working in the VS Code developer environment, make sure to press 'cmd + r' to refresh the extension so that it compiles and runs your most recent changes.
Here are some links to documentation that you may find useful:
Known Bugs
If you select a file and a tree is rendered: subsequently selecting another file should clear the current tree and render a new tree for that new file. However, what happens is that the newly rendered tree will not have nodes, but will still persist the edges. What we suspect is happening is that Vue Flow's internal processing of our data is causing this issue. We are currently working on a fix.
Change Log
Tech Stack
VisiVue Contributors
Accelerated by OS Labs and inspired by ReacTree
Name |
GitHub |
LinkedIn |
Abe Henderson |
|
|
Christopher Park |
|
|
Kasey Nguyen |
|
|
Ulf Wong |
|
|
Yosuke Tomita |
|
|