2014-09-20 09:57:09 +09:00
|
|
|
Package.describe({
|
|
|
|
summary: "Telescope notifications package",
|
|
|
|
version: '0.1.0',
|
|
|
|
name: "telescope-notifications"
|
|
|
|
});
|
|
|
|
|
|
|
|
Package.onUse(function (api) {
|
|
|
|
|
|
|
|
api.use([
|
|
|
|
'telescope-lib',
|
2014-09-24 15:12:33 +09:00
|
|
|
'telescope-base',
|
|
|
|
'telescope-email',
|
2014-11-19 15:14:54 +09:00
|
|
|
'iron:router',
|
2014-11-18 11:00:38 +09:00
|
|
|
'kestanous:herald@1.1.3',
|
2014-11-24 11:27:07 +09:00
|
|
|
'kestanous:herald-email',
|
|
|
|
'tap:i18n'
|
2014-09-20 09:57:09 +09:00
|
|
|
], ['client', 'server']);
|
|
|
|
|
|
|
|
api.use([
|
|
|
|
'jquery',
|
|
|
|
'underscore',
|
|
|
|
'templating',
|
|
|
|
'tracker'
|
2014-11-19 15:14:54 +09:00
|
|
|
], ['client']);
|
2014-09-20 09:57:09 +09:00
|
|
|
|
|
|
|
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'
|
2014-09-20 09:57:09 +09:00
|
|
|
], ['client', 'server']);
|
|
|
|
|
|
|
|
api.add_files([
|
|
|
|
'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([
|
2014-11-19 15:14:54 +09:00
|
|
|
'lib/server/notifications-server.js',
|
|
|
|
'lib/server/routes.js'
|
2014-09-20 09:57:09 +09:00
|
|
|
], ['server']);
|
|
|
|
|
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"]);
|
|
|
|
|
2014-09-20 09:57:09 +09:00
|
|
|
api.export([
|
2014-10-02 16:42:31 -04:00
|
|
|
'Herald',
|
2014-09-20 09:57:09 +09:00
|
|
|
'buildEmailNotification',
|
2014-10-02 16:42:31 -04:00
|
|
|
'getUnsubscribeLink'
|
2014-09-20 09:57:09 +09:00
|
|
|
]);
|
|
|
|
});
|
|
|
|
|
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.
|