Vulcan/packages/telescope-notifications/package.js

75 lines
1.8 KiB
JavaScript
Raw Normal View History

Package.describe({
summary: "Telescope notifications package",
version: '0.1.0',
name: "telescope-notifications"
});
Package.onUse(function (api) {
api.use([
'telescope:lib',
'telescope:users',
'telescope-base',
'telescope:settings',
2015-04-21 11:02:02 +09:00
'telescope:email',
'telescope:posts',
'iron:router',
2015-03-03 09:31:40 +01:00
'kestanous:herald@1.3.0',
2014-11-24 11:27:07 +09:00
'kestanous:herald-email',
'tap:i18n'
], ['client', 'server']);
api.use([
'jquery',
'underscore',
'templating',
'tracker'
], ['client']);
api.use([
'cmather:handlebars-server'
], ['server']);
api.add_files([
'lib/notifications.js',
2014-11-24 11:27:07 +09:00
'lib/herald.js',
'package-tap.i18n'
], ['client', 'server']);
api.add_files([
'lib/client/templates/notification_item.html',
'lib/client/templates/notification_item.js',
2015-03-22 12:27:05 +09:00
'lib/client/templates/notifications_mark_as_read.html',
'lib/client/templates/notifications_mark_as_read.js',
'lib/client/templates/notification_new_comment.html',
'lib/client/templates/notification_new_reply.html',
'lib/client/templates/notification_post_approved.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/routes.js'
], ['server']);
2015-03-28 18:30:26 +09:00
2014-11-24 11:27:07 +09:00
api.add_files([
"i18n/de.i18n.json",
"i18n/en.i18n.json",
"i18n/es.i18n.json",
"i18n/fr.i18n.json",
"i18n/it.i18n.json",
2014-11-24 11:38:57 +09:00
"i18n/zh-CN.i18n.json",
2014-11-24 11:27:07 +09:00
], ["client", "server"]);
api.export([
2014-10-02 16:42:31 -04:00
'Herald',
'buildEmailNotification',
2014-10-02 16:42:31 -04:00
'getUnsubscribeLink'
]);
});
2014-10-02 16:42:31 -04:00
// TODO: once user profile edit form is generated dynamically, add notification options from this package as well.