Skip to content

Instantly share code, notes, and snippets.

@yeehaa123
Created October 13, 2013 08:29
Show Gist options
  • Save yeehaa123/6959833 to your computer and use it in GitHub Desktop.
Save yeehaa123/6959833 to your computer and use it in GitHub Desktop.
Package.describe
summary: "A pattern to display application errors to the user"
Package.on (api, where) ->
api.use(['minimongo', 'mongo-livedata', 'templating'], 'client')
api.add_files(['errors.coffee', 'errors_list.html', 'errors_list.coffee'], 'client')
if (api.export)
api.export('Errors')
Package.on_test (api) ->
api.use('errors', 'client')
api.use(['tinytest', 'test-helpers'], 'client')
api.add_files('errors_test.coffee', 'client')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment