Package "JS" generator (generates in Javascript)


#1

Hello,

I created an equivalent of “package generator”, it generates a new sample package in Javascript (instead of coffeeScript).

Package: https://atom.io/packages/package-js-generator
GitHub: https://github.com/Nicolab/atom-package-js-generator

I hope it will help the “vanilla JS” developers to create their packages :smiley:


Also, I created a Node module (atom-helpers) for the specifics cases like class MyView extends View of CoffeeScript.

So far I have only met the case of extends which poses a recurrent constraint for the Atom package development in Javascript. If I meet other cases requiring a solution, I’ll add it in atom-helpers.

PS: sorry for my bad english


#2

Your English is absolutely fine.

Sounds like a very useful package, too. I’ll try it out sometime.
Thanks for that!


#3

helpers.extends(MyView, View);

Sould not use inherits instead?


#4

@batjko Thank you for confirming that I did not a blunder in English, I had a stroke of luck in this case.


#5

@piranna the behavior of inherits is not the same that the compiled JS of extends (CS).

More details: