Last Updated: February 25, 2016
·
2.283K
· joramhoefs

Complete (?) IntelliJ Meteor Autocompletion Setup

File paths may differ. I use meteor on Mac OS X 10.8.4

This tip should work for IntelliJ / WebStorm / PHPStorm / *Storm

Developing a default meteor application (adds default packages only)

Add packages

Add the default meteor packages to your javascript
libraries:

  1. Go to Project settings -> Javascript -> Librarires
  2. Add meteor packages and attach

~/.meteor/packages

Apply and your autocompletion setup is ready.

Developing a meteor(rite) package (adds internal api packages)

Add packages

Add the default meteor packages as described above, and after
that add the private api package and bundler package to your javascript
libraries:

  1. Go to Project settings -> Javascript -> Librarires
  2. Add meteor internal package api and attach the following two files:

~/.meteor/tools/latest/tools/bundler.js

~/.meteor/tools/latest/tools/package.js

Apply and your autocompletion setup is ready, but JSLint will annoy you…

Surpress JSLint "Package was used before it was defined" warning

  1. Go to Project settings -> Javascript -> Code Quality Tools
  2. Add Package to the Predefined (, separated) list

Have some fun with meteor

:)