Sublime 2 snippets for the Google Closure Library
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.editorconfig
README.md
closure-array-foreach.sublime-snippet
closure-class-init.sublime-snippet
closure-dispose.sublime-snippet
closure-enum.sublime-snippet
closure-events-callback.sublime-snippet
closure-events-dispatch.sublime-snippet
closure-events-listen.sublime-snippet
closure-events-setParentTarget.sublime-snippet
closure-function.sublime-snippet
closure-object-foreach.sublime-snippet
closure-provide.sublime-snippet
closure-require.sublime-snippet
closure-singleton.sublime-snippet
closure-typedef.sublime-snippet

README.md

Google Closure Library Snippets

Sublime plugin with snippets for the Google Closure Library

Install

Install with Package Control. Search for: Google Closure Library Snippets.

Getting started

Just type cl on a javascript document and work with autocomplete.

The snippets are namespaced based on functionality, at most you'll have to type 4 chars and Enter:

snippetCategoryDescription
clareach Arrays goog.array.forEach()
clevlisten Events Event listener (goog.event.listen())
clevdispatch Events Dispatch an event, verbose version
clevcb Events Callback function declaration for events, including block docs
cldispose Generic dispose internal declaration (.disposeInternal = function())
clfn Generic Default function declaration with a logger
clsingle Generic Singleton declaration (goog.addSingletonGetter())
cltypedef Generic A very verbose type definition with weird annotation cases
clenum Generic Enum declaration
clprov Generic goog.provide();
clreq Generic goog.require();
clclassev New filesNew class boilerplate with events inheritance
clobjeach Objects goog.object.forEach()

Contributing

I am using this package as a helper for my workflow with Closure Library, feel free to do the same by submitting snippets that you use in yours.

License

MIT License © Thanasis Polychronakis