Meteor

and

Your Text Editor


They can like each other. Seriously.



Slava Kim

Do you use one of those?


Then this talk will be useful to you!


There is a good reason not to use vim in webdev


There is no sane support for your web stack


  • autocompletion
  • jump to definition
  • refactor a method
  • look up docs
  • what is the type?

These guys get it

But it is not an editor problem


vim actually supports completion for

  • C/C++
  • Objective-C
  • Python

Tern JS


Server written in node that analyzes your javascriptcode and integrates with your editor. Supports node.js, underscore, jquery, es5 by default. Has bindings for Angular.

From the author of ACorn and CodeMirror: ternjs.net

Now there are bindings for Meteor!


Smart autocompletion based on types!


Jump to definition


Get References


Docs lookup


Type inference


What works


  • Base features provided by TernJS
  • File scoping in Meteor projects
  • Definitions for Meteor public API
    • based on `meteor.ts.d` for TypeScript

What doesn't yet


  • Renaming refactorings
  • Docs from docs.meteor.com
  • Package scoping
  • Definitions autogen
  • Handlebars templates parsing


... but maybe it is fixable in another weekend, who knows?


Take it, use it, contribute to it



GitHub/Slava/Tern-Meteor


(includes text and video how-tos)


we can use your brain power to make it better
Made with Slides.com