alibaba/structure-view

Git required to install?

onetrev opened this issue · 1 comments

I noticed this package failed to install for me because it requires git. Since git is now included in Atom, I wonder if this can be avoided? Totally just a long shot, but it would be nice to not have to install git when I don't need to as I use Atom and GitKraken for my git clients. Thanks!!

@onetrev Sorry that git is required for the moment, one of dependencies jsctags needs it.
Esprima is the first choice for javascript file, but in the situations below would meet troubles:

  • JS script with lexical error.
  • Variant of Javascript like JSX.
  • Few cases that JS script works well but esrima emits error.

jsctags is also a popular parser which is more robust, it can handle lexical error and generate AST tree as well as it can parse JSX file.
Robustness is really important, so structure-view takes jsctags as substitution.