mirror of
https://github.com/vale981/Vulcan
synced 2025-03-08 19:11:38 -05:00
66 lines
2.2 KiB
JavaScript
66 lines
2.2 KiB
JavaScript
Package.describe({
|
|
name: "telescope:notifications",
|
|
summary: "Telescope notifications package",
|
|
version: "0.25.0",
|
|
git: "https://github.com/TelescopeJS/telescope-notifications.git"
|
|
});
|
|
|
|
Package.onUse(function (api) {
|
|
|
|
api.versionsFrom("METEOR@1.0");
|
|
|
|
api.use([
|
|
'telescope:core@0.25.0',
|
|
'kestanous:herald@1.3.0',
|
|
'kestanous:herald-email@0.5.0'
|
|
]);
|
|
|
|
api.addFiles([
|
|
'lib/herald.js',
|
|
'lib/helpers.js',
|
|
'lib/custom_fields.js',
|
|
'lib/notifications.js',
|
|
'lib/callbacks.js',
|
|
'lib/modules.js',
|
|
'lib/routes.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',
|
|
'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([
|
|
'Herald'
|
|
]);
|
|
});
|
|
|
|
// TODO: once user profile edit form is generated dynamically, add notification options from this package as well.
|