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.
- 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!
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 | ⏳ |
- 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:
- Vue.js
- Vue Flow
- VS Code Extension API
- Webview API
- Developer's Guide to Building VSCode Webview Panel with React and Messages by Michael Mike Benliyan
- TypeScript
Accelerated by OS Labs and inspired by ReacTree
Name | GitHub | |
---|---|---|
Abe Henderson | ||
Christopher Park | ||
Kasey Nguyen | ||
Ulf Wong | ||
Yosuke Tomita | ||