[ternJS](http://ternjs.net/) have several. JSON files [defs](https://github.com/marijnh/tern/tree/master/defs) which contains the definition of librarys. Can someone explain to me how I can best generate my own to my javascript libraries / or only definition objects?

I can not see that there is no common procedure for this?