Vulcan/packages/_nova-subscribe-to-posts/package.js

62 lines
1.5 KiB
JavaScript
Raw Normal View History

Package.describe({
name: "nova:subscribe-to-posts",
summary: "Subscribe to posts to be notified when they get new comments",
2015-12-30 15:47:46 +09:00
version: "0.25.7",
git: "https://github.com/TelescopeJS/telescope-subscribe-to-posts.git"
});
Package.onUse(function (api) {
api.versionsFrom("METEOR@1.0");
// --------------------------- 1. Meteor packages dependencies ---------------------------
// automatic (let the package specify where it's needed)
api.use(['nova:core@0.25.7']);
// ---------------------------------- 2. Files to include ----------------------------------
// i18n config (must come first)
api.addFiles([
'package-tap.i18n'
], ['client', 'server']);
// both
api.addFiles([
'lib/subscribe-to-posts.js',
], ['client', 'server']);
// client
api.addFiles([
'lib/client/templates/post_subscribe.html',
'lib/client/templates/post_subscribe.js',
'lib/client/templates/user_subscribed_posts.html',
2015-10-13 10:43:59 +09:00
'lib/client/templates/user_subscribed_posts.js'
], ['client']);
// server
api.addFiles([
'lib/server/publications.js'
], ['server']);
// i18n languages (must come last)
2015-09-23 10:42:41 +09:00
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([
'subscribeItem',
'unsubscribeItem'
]);
});