Bring Isomorphic Meteor javascript to the editor with autocomplete, code snippets, color-coded grammar, syntax highlighting, and more! Code faster and with fewer mistakes!
1.0.3.1
Simply go to Atom > Preferences > Packages, search for Meteor Api
, and install the package! Then just be sure to select Javascript (Meteor)
as your grammar.
If you'd like to permanently make all javascript default to the Javascript (Meteor)
grammar, disable the language-javascript
package!
Complete List of Covered Meteor API Syntax
If you want even more Meteor integration, try installing the following packages for an integrated, isomorphic, pure-javascript development environment. (This list will be updated as new packages are added to the Atom ecosystem).
Atom LintAtom BeautifyAtom HandlebarsAtom JshintAtom PrettifyAutocompleteAutocomplete +Bracket MatcherFile TypesFiletype ColorGrammar SelectorLanguage SpacebarsMeteor ApiMeteor HelperWrap Guide
Then open your config.cson
file with Atom > Edit > Open Your Config and add the following under global
:
'file-types':'html': 'text.html.spacebars''js': 'source.js'
Linter Handlebars
and install the packageSettings
to open its settings page and click on Open in Atom
linter-handlebars/lib/linter-handlebars.cofee
and add text.html.spacebars
to the list of supported syntaxes. At the time of writing this list appears on line 7: make sure it eventually looks like:@syntax: ['text.html.handlebars', 'source.hbs', 'source.handlebars', 'text.html.spacebars']
Please be aware that you might need to repeat this editing operation everytime the package Linter Handlebars
gets updated.
If you haven't created a symlink for atom, try the following snippet to launch Atom from the command line.
# link your atom binary so it can be run from the command linesudo ln -s /Applications/Atom.app/Contents/MacOS/Atom /usr/local/bin/atom# open a filemeteor create helloworldcd helloworldatom helloworld.js
A big shoutout to ThusStyles for piecing together the original meteor-snippets atom package! And to zaku-eu for language-spacebars!
Want to make modifications? Take a look at your ~/.atom/packages
directory. You should find ~/.atom/packages/meteor-api
. Move that somewhere, and clone this repo where it used to be. (You'll want to fork it first to your own account.)
# download the meteor-api package to the correct locationcd ~/.atom/packagesmv meteor-api meteor-api-bkupgit clone http://github.com/damonmcminn/meteor-apicd meteor-api# make sure you're on a feature branchgit branchgit checkout -b syntax-highlighting# open a new atom editor in the current directory# we're using atom to hack on an atom package; spiffy recursive recursive!atom .
You'll then want to go into the meteor-api/grammars/
directory and start hacking on meteor-api-grammar-javascript.cson
and the other files there.
The hotkey command to reload the packages into Atom is Control+Option+Command+L
.
ctags -R .
for extracting method definitions; add ctags file to meteor projects
Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.