GithubHelp home page GithubHelp logo

oslabs-beta / nexus Goto Github PK

View Code? Open in Web Editor NEW
67.0 4.0 5.0 7.79 MB

NextJS VScode extension to visualize component tree.

Home Page: https://nexus-js.com/

License: MIT License

Rich Text Format 0.55% JavaScript 70.28% CSS 4.39% TypeScript 24.79%
nextjs reactjs vscode-extension component-architecture developer-tools vercel webpack webview

nexus's Introduction


NexusLogo

Nexus

A component tree extension for NextJS

Report Bugs · Request Features

Table of Contents
  1. About The Project
  2. Installation
  3. Getting Started
  4. Usage
  5. Roadmap
  6. Steps to Contribute
  7. License
  8. The Nexus Team
  9. Contact

About The Project

Nexus is a VSCode Extension created for NextJS developers! As codebases scale in size and complexity, developers may feel overwhelmed as they keep track of tens of components and hundreds of props elements per file. Nexus aims to help developers overcome unnecessary mental strain through 3 main methods:

  1. Displaying file-specific component hierarchy in your VSCode sidebar
  2. Including component-specific state and props objects for parent and child components
  3. Differentiating between server-side rendered and static-site generated components

We at Team Nexus hope that you enjoy our extension, taking advantage of a time-tested component tree model that integrates the unique features of NextJS!

(back to top)

Built With

Installation

  1. Install Nexus

  2. A node tree icon should appear on your sidebar. You've now installed Nexus! Woot Woot! Now on to the "Getting Started" section below.

Note: If contributing, see the "Installation for Contributors" section below!

Getting Started

Congrats on installing Nexus! Now let's get it started.

Prerequisites

Nexus supports OSX, Windows, and WSL

Usage

  1. Click the node tree icon on your sidebar. An "Input File Here" button should appear on your side panel!


2. Click the button and your file explorer window will open. Select a file and press "Ok".


  1. Your side panel should now render a component tree that displays SSG or SSR status! Clicking on components will render child components if they exist and hovering over components will display their props objects. Enjoy!


Roadmap

  • Creating a webview to look deeper into structure of individual components
  • Making the parser more dynamic and flexible
  • Handling Link Components
  • Error checking in the frontend to ensure that uploaded files are either NextJS or React
  • Add status bar item for Nexus
  • Store component tree memory in VSCode

See the open issues for a full list of proposed features (and known issues).

Steps to Contribute

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork & Clone Nexus
  2. Create your Feature Branch (git checkout -b <github_username>/<YourAmazingFeature>)
  3. Make your Changes (See Making Changes below)
  4. Commit your Changes (git commit -m '<Your Commit Message>')
  5. Push to the Branch (git push origin <github_username>/<YourAmazingFeature>)
  6. Open a Pull Request

Making Changes

  1. Make your changes!
  2. Open /nexus/src/extension.ts and save any changes you made
  3. Re-compile and re-build your extension using the command line: npm run compile & npm run build
  4. Press F5. A new VSCode window should open. This is your debugging environment!
  5. Repeat step 3 and refresh your debugging environment to test further changes

License

Distributed under the MIT License. See LICENSE for more information.

The Nexus Team

Contact Us

Email: [email protected]

Twitter: @teamnexus_js

Website: https://nexus-js.com/

nexus's People

Contributors

bchiang4 avatar dplee123 avatar foxeight avatar hersler avatar mykongee avatar nicoflrs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

nexus's Issues

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.