Slava / tern-meteor

Autocompletion plugin for Meteor 1.0 (extending TernJS)
https://www.youtube.com/watch?v=5cAHxpNEHTc
MIT License
283 stars 21 forks source link

TernJS plugin: Meteor

UPDATE: All definitions were update to Meteor 1.0.4. There are probably some bugs since this project moved to definitions autogeneration, if you notice any API mismatch, report in the issues.

This is a plugin for TernJS bringing support for Meteor JavaScript Framework. Tested on Vim and Sublime Text 2/3, reported to work on Emacs, potentially should work on Brackets, LightTable, Eclipse and any other CodeMirror-based editors.

Checkout my presentation on Meteor Devshop 11: Videos and Slides. The mailing thread for this project is here on meteor-talk.

Gif Demos

Types based auto-completion:

tern-vim-completion.gif

Look up documentation:

tern-vim-doc.gif

Jump to definition:

tern-vim-jump-to-def.gif

Jump to references:

tern-vim-refs.gif

Get types information (on the bottom):

tern-vim-types.gif

Supported features specific to Meteor

Todo features

Installation for Sublime Text 3

Go and install the separate package for ST3.

Installation for Vim

Demo Video of Vim

You check out my Vim setup which is already optimized for Meteor development: GitHub repo. Or you can get it to your setup:

    {
      "libs": [
        "browser",
        "jquery",
        "underscore"
      ],
      "loadEagerly": [ "*.js", "*/*.js", "*/*/*.js", "*/*/*/*.js" ],
      "dontLoad": [ ".meteor" ],
      "plugins": {
        "meteor": {}
      }
    }

Note: ignore files in .meteor folder. Load all JS if possible.