Vulcan/packages/nova-notifications/package.js

63 lines
1.8 KiB
JavaScript
Raw Normal View History

Package.describe({
name: "telescope:notifications",
summary: "Telescope notifications package",
2015-12-30 15:47:46 +09:00
version: "0.25.7",
git: "https://github.com/TelescopeJS/telescope-notifications.git"
});
Package.onUse(function (api) {
api.versionsFrom("METEOR@1.0");
api.use([
2015-12-30 15:47:46 +09:00
'telescope:core@0.25.7',
'telescope:email@0.25.7',
'kestanous:herald@1.3.0',
2015-06-24 15:38:14 +09:00
'kestanous:herald-email@0.5.0'
]);
api.use([
'telescope:posts@0.25.7',
'telescope:comments@0.25.7',
'telescope:settings@0.25.7',
], ['client', 'server'], {weak: true});
2015-12-14 13:13:26 +09:00
api.addAssets([
'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']);
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-09-18 16:27:59 +09:00
'lib/routes.js',
// 'package-tap.i18n'
], ['client', 'server']);
api.addFiles([
'lib/server/notifications-server.js',
2015-12-14 13:13:26 +09:00
'lib/server/templates.js',
'lib/server/routes.js'
], ['server']);
// var languages = ["ar", "bg", "cs", "da", "de", "el", "en", "es", "et", "fr", "hu", "id", "it", "ja", "kk", "ko", "nl", "pl", "pt-BR", "ro", "ru", "sl", "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.