Vulcan/packages/telescope-notifications/package.js

66 lines
2.1 KiB
JavaScript
Raw Normal View History

Package.describe({
name: "telescope:notifications",
summary: "Telescope notifications package",
2015-09-03 09:33:23 +09:00
version: "0.24.0",
git: "https://github.com/TelescopeJS/telescope-notifications.git"
});
Package.onUse(function (api) {
api.versionsFrom("METEOR@1.0");
api.use([
2015-09-03 09:33:23 +09:00
'telescope:core@0.24.0',
'kestanous:herald@1.3.0',
2015-06-24 15:38:14 +09:00
'kestanous:herald-email@0.5.0'
]);
api.addFiles([
'lib/herald.js',
2015-06-24 15:38:14 +09:00
'lib/helpers.js',
'lib/custom_fields.js',
'lib/notifications.js',
'lib/callbacks.js',
2015-05-18 10:12:48 +09:00
'lib/modules.js',
'package-tap.i18n'
], ['client', 'server']);
api.addFiles([
'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.addFiles([
'lib/server/notifications-server.js',
2015-06-24 15:38:14 +09:00
'lib/server/routes.js',
'lib/server/templates/emailAccountApproved.handlebars',
'lib/server/templates/emailNewComment.handlebars',
'lib/server/templates/emailNewPost.handlebars',
'lib/server/templates/emailNewPendingPost.handlebars',
'lib/server/templates/emailPostApproved.handlebars',
'lib/server/templates/emailNewReply.handlebars',
'lib/server/templates/emailNewUser.handlebars'
], ['server']);
var languages = ["ar", "bg", "cs", "da", "de", "el", "en", "es", "et", "fr", "hu", "it", "ja", "ko", "nl", "pl", "pt-BR", "ro", "ru", "sv", "th", "tr", "vi", "zh-CN"];
var languagesPaths = languages.map(function (language) {
return "i18n/"+language+".i18n.json";
});
api.addFiles(languagesPaths, ["client", "server"]);
api.export([
2015-05-13 11:55:10 +09:00
'Herald'
]);
});
// TODO: once user profile edit form is generated dynamically, add notification options from this package as well.