mirror of
https://github.com/vale981/Vulcan
synced 2025-03-08 11:01:38 -05:00
62 lines
2 KiB
JavaScript
62 lines
2 KiB
JavaScript
Package.describe({
|
|
name: "telescope:comments",
|
|
summary: "Telescope comments package",
|
|
version: "0.25.4",
|
|
git: "https://github.com/TelescopeJS/Telescope.git"
|
|
});
|
|
|
|
Package.onUse(function (api) {
|
|
|
|
api.versionsFrom(['METEOR@1.0']);
|
|
|
|
api.use([
|
|
'telescope:lib@0.25.4',
|
|
'telescope:i18n@0.25.4',
|
|
'telescope:settings@0.25.4',
|
|
'telescope:users@0.25.4'
|
|
]);
|
|
|
|
api.addFiles([
|
|
'lib/comments.js',
|
|
'lib/methods.js',
|
|
'lib/callbacks.js',
|
|
'lib/views.js',
|
|
'lib/parameters.js',
|
|
'lib/helpers.js',
|
|
'lib/routes.js'
|
|
], ['client', 'server']);
|
|
|
|
api.addFiles([
|
|
'lib/client/templates/comment_edit.html',
|
|
'lib/client/templates/comment_edit.js',
|
|
'lib/client/templates/comment_submit.html',
|
|
'lib/client/templates/comment_submit.js',
|
|
'lib/client/templates/comment_item.html',
|
|
'lib/client/templates/comment_item.js',
|
|
'lib/client/templates/comment_list.html',
|
|
'lib/client/templates/comment_list.js',
|
|
'lib/client/templates/comment_reply.html',
|
|
'lib/client/templates/comment_reply.js',
|
|
'lib/client/templates/comments_list/comments_list.html',
|
|
'lib/client/templates/comments_list/comments_list.js',
|
|
'lib/client/templates/comments_list/comments_list_compact.html',
|
|
'lib/client/templates/comments_list/comments_list_compact.js',
|
|
'lib/client/templates/comments_list/comments_list_controller.html',
|
|
'lib/client/templates/comments_list/comments_list_controller.js',
|
|
'lib/client/templates/comment_controller/comment_controller.html',
|
|
'lib/client/templates/comment_controller/comment_controller.js'
|
|
], ['client']);
|
|
|
|
api.addFiles([
|
|
'lib/server/publications.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('Comments');
|
|
|
|
});
|