Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support ES6 syntax #630

Open
Meaglin opened this issue Nov 6, 2015 · 15 comments
Open

Support ES6 syntax #630

Meaglin opened this issue Nov 6, 2015 · 15 comments

Comments

@Meaglin
Copy link

Meaglin commented Nov 6, 2015

More and more browsers and javascript runtimes(nodejs) start supporting ES6 and the spec is also finalized.
Maybe this must be handled by rkelly?

Currently jsduck is broken when new syntax is used.

@fengmk2
Copy link

fengmk2 commented Nov 12, 2015

If jsduck will support es2015?

jsduck lib/ --output docs --builtin-classes
Error: Error while parsing someclass.js: Invalid JavaScript syntax: Unexpected 'class' on line 27

@Meaglin
Copy link
Author

Meaglin commented Feb 8, 2016

Any update on this? Did sencha drop jsduck development ?

I see no actual code changes since june 2015

@nene
Copy link
Member

nene commented Feb 8, 2016 via email

@Meaglin
Copy link
Author

Meaglin commented Feb 8, 2016

Is there any chance someone else of sencha can pick this up ?

@nene
Copy link
Member

nene commented Feb 8, 2016

So far nobody has really shown enough interest in this.

@Asuza
Copy link

Asuza commented Feb 8, 2016

I just installed JSDuck specifically to have documentation pages for my ES2015/ES6 NodeJS application. I was a bit surprised when I got an error.

I attempted to run JSDuck on the code after translating it with babel, but the way it organized my classes made it incompatible for reading into JSDuck.

@Asuza
Copy link

Asuza commented Feb 8, 2016

@nene, do you mean that nobody at Sencha has shown interest, or that there is not enough interest from the internet in general it to merit someone at Sencha working on it?

@nene
Copy link
Member

nene commented Feb 8, 2016

Both really. Since Sencha stopped supporting the development of it, there's been zero contact from Sencha regarding anything about JSDuck.

They're still using the last stable 5.3.4 release for their latest API docs. They have stopped using several of the additional features that were built explicitly for their needs: separate tutorials pages, version number detection & user-posted comments.

It feels kind'a similar to the situation before JSDuck, when an old ext-doc tool was practically abandoned, but Sencha was still using it for their docs.

Appcelerator is also still using JSDuck, but they forked their own version a long ago (which is also standing still now). I guess there are also several other larger projects making use of it, but nobody has really shown strong interest in taking JSDuck further.

@Asuza
Copy link

Asuza commented Feb 8, 2016

That's disappointing. JSDuck is the best JavaScript documentation parser/viewer available (as far as I'm aware). I'd probably attempt to get it working for ES6 if it were written in a language I had some experience with.

@nene
Copy link
Member

nene commented Feb 8, 2016 via email

@remss
Copy link

remss commented May 11, 2016

Tip to use jsduck on project using ES6: use babel to transpile to es5 then run jsduck after.

@michaelkantor
Copy link

  1. There are cases where babel is moving my /** @Class */ definition to the bottom of the file, so now I have a grunt task for moving it back to the top of the file.
  2. The source code linked to from the JSDuck documentation that is generated is the compiled code not the source code. Thats not the code I prefer people to read.

It would be nice to be able to run jsduck on source code.

@silentbalanceyh
Copy link

Are there any updates on this issue ? I prefer the style of Jsduck api document, but it could not support React/ES6 syntax, it's bad for current front-end development.

@remss
Copy link

remss commented Apr 28, 2018

Consider this project as dead. No commit since 2 years.

@Meaglin
Copy link
Author

Meaglin commented Apr 28, 2018

I don't think the maintainer works at Sencha anymore. And unless someone else wants to pick it up it's dead. Although Sencha has a new version of this but only internally, dunno why.

wiese added a commit to wmde/wikibase-termbox that referenced this issue Oct 31, 2018
ES6 syntax is not supported[0] which is causing problems when building the
entire project and so far it is not clear what we want to go into the
documentation anyhow.
[0] senchalabs/jsduck#630

Bug: T208226
jakobw pushed a commit to wmde/wikibase-termbox that referenced this issue Oct 31, 2018
ES6 syntax is not supported[0] which is causing problems when building the
entire project and so far it is not clear what we want to go into the
documentation anyhow.
[0] senchalabs/jsduck#630

Bug: T208226
wmfgerrit pushed a commit to wikimedia/mediawiki-extensions-Wikibase that referenced this issue Nov 1, 2018
termbox is implemented in ES6[0] which is causing problems when building the
entire project and so far it is not clear what we want to go into the
documentation anyhow.

[0] senchalabs/jsduck#630

Bug: T208226
Change-Id: I9bb72f00cbb05ccb006d0f2953ae9b71c2f17e6f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants