Vulcan/packages/telescope-notifications/package.js
2014-09-20 09:57:09 +09:00

58 lines
No EOL
1.4 KiB
JavaScript

Package.describe({
summary: "Telescope notifications package",
version: '0.1.0',
name: "telescope-notifications"
});
Package.onUse(function (api) {
api.use([
'telescope-lib',
'telescope-base',
'aldeed:simple-schema'
], ['client', 'server']);
api.use([
'jquery',
'underscore',
'iron:router',
'templating',
'tracker'
], 'client');
api.use([
'cmather:handlebars-server'
], ['server']);
api.add_files([
'lib/notifications.js',
], ['client', 'server']);
api.add_files([
'lib/client/notifications-client.js',
'lib/client/templates/notification_item.html',
'lib/client/templates/notification_item.js',
'lib/client/templates/notification_new_comment.html',
'lib/client/templates/notification_new_reply.html',
'lib/client/templates/notifications_menu.html',
'lib/client/templates/notifications_menu.js',
'lib/client/templates/unsubscribe.html',
'lib/client/templates/unsubscribe.js',
], ['client']);
api.add_files([
'lib/server/notifications-server.js',
'lib/server/publication.js'
], ['server']);
api.export([
'createNotification',
'buildSiteNotification',
'newPostNotification',
'buildEmailNotification',
'getUnsubscribeLink',
'postSubmitMethodCallbacks'
]);
});
// TODO: once user profile edit form is generated dynamically, add notification options from this package as well.