Vulcan/packages/telescope-notifications/package.js

77 lines
1.9 KiB
JavaScript
Raw Normal View History

Package.describe({
name: "telescope:notifications",
summary: "Telescope notifications package",
version: "0.1.0",
git: "https://github.com/TelescopeJS/telescope-notifications.git"
});
Package.onUse(function (api) {
api.versionsFrom("METEOR@1.0");
api.use([
'telescope:lib@0.3.0',
'telescope:users@0.1.0',
'telescope:settings@0.1.0',
'telescope:email@0.1.0',
'telescope:posts@0.1.2',
'iron:router@1.0.5',
'kestanous:herald@1.3.0',
'kestanous:herald-email@0.5.0',
'tap:i18n@1.4.1'
], ['client', 'server']);
api.use([
'jquery',
'underscore',
'templating',
'tracker'
], ['client']);
api.use([
'cmather:handlebars-server@0.2.0'
], ['server']);
api.add_files([
'lib/notifications.js',
'lib/herald.js',
'package-tap.i18n'
], ['client', 'server']);
api.add_files([
'lib/client/templates/notification_item.html',
'lib/client/templates/notification_item.js',
'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']);
api.add_files([
"i18n/de.i18n.json",
"i18n/en.i18n.json",
"i18n/es.i18n.json",
"i18n/fr.i18n.json",
"i18n/it.i18n.json",
"i18n/zh-CN.i18n.json",
], ["client", "server"]);
api.export([
'Herald',
'buildEmailNotification',
'getUnsubscribeLink'
]);
});
// TODO: once user profile edit form is generated dynamically, add notification options from this package as well.