2015-04-22 07:50:11 +09:00
|
|
|
Package.describe({
|
|
|
|
name: "telescope:posts",
|
|
|
|
summary: "Telescope posts package",
|
2015-12-30 15:47:46 +09:00
|
|
|
version: "0.25.7",
|
2015-04-22 07:50:11 +09:00
|
|
|
git: "https://github.com/TelescopeJS/telescope-posts.git"
|
|
|
|
});
|
|
|
|
|
|
|
|
Package.onUse(function (api) {
|
|
|
|
|
|
|
|
api.versionsFrom(['METEOR@1.0']);
|
|
|
|
|
|
|
|
api.use([
|
2015-12-30 15:47:46 +09:00
|
|
|
'telescope:lib@0.25.7',
|
|
|
|
'telescope:i18n@0.25.7',
|
|
|
|
'telescope:settings@0.25.7',
|
|
|
|
'telescope:users@0.25.7',
|
|
|
|
'telescope:comments@0.25.7'
|
2015-04-22 07:50:11 +09:00
|
|
|
]);
|
|
|
|
|
2015-05-01 18:22:00 +02:00
|
|
|
api.addFiles([
|
2015-05-14 11:38:01 +09:00
|
|
|
'lib/namespace.js',
|
2015-04-22 07:50:11 +09:00
|
|
|
'lib/config.js',
|
2015-05-14 11:38:01 +09:00
|
|
|
'lib/posts.js',
|
2015-05-06 17:38:19 +09:00
|
|
|
'lib/parameters.js',
|
|
|
|
'lib/views.js',
|
2015-04-22 07:50:11 +09:00
|
|
|
'lib/helpers.js',
|
2015-04-23 17:45:37 +09:00
|
|
|
'lib/modules.js',
|
2015-04-23 15:42:05 +09:00
|
|
|
'lib/callbacks.js',
|
2015-04-22 08:13:43 +09:00
|
|
|
'lib/methods.js',
|
2015-09-06 11:37:48 +09:00
|
|
|
'lib/transitions.js',
|
2015-05-18 11:39:12 +09:00
|
|
|
'lib/menus.js',
|
2015-04-22 08:13:43 +09:00
|
|
|
'lib/routes.js'
|
2015-04-22 07:50:11 +09:00
|
|
|
], ['client', 'server']);
|
|
|
|
|
2015-05-01 18:22:00 +02:00
|
|
|
api.addFiles([
|
2015-04-22 12:09:57 +09:00
|
|
|
'lib/client/templates/after_post_item.html',
|
|
|
|
'lib/client/templates/before_post_item.html',
|
|
|
|
'lib/client/templates/modules/post_actions.html',
|
|
|
|
'lib/client/templates/modules/post_actions.js',
|
|
|
|
'lib/client/templates/modules/post_admin.html',
|
|
|
|
'lib/client/templates/modules/post_admin.js',
|
|
|
|
'lib/client/templates/modules/post_author.html',
|
2015-09-21 09:59:17 +09:00
|
|
|
'lib/client/templates/modules/post_author.js',
|
2015-04-22 12:09:57 +09:00
|
|
|
'lib/client/templates/modules/post_avatars.html',
|
|
|
|
'lib/client/templates/modules/post_avatars.js',
|
|
|
|
'lib/client/templates/modules/post_comments_link.html',
|
|
|
|
'lib/client/templates/modules/post_content.html',
|
|
|
|
'lib/client/templates/modules/post_content.js',
|
|
|
|
'lib/client/templates/modules/post_discuss.html',
|
|
|
|
'lib/client/templates/modules/post_domain.html',
|
|
|
|
'lib/client/templates/modules/post_domain.js',
|
|
|
|
'lib/client/templates/modules/post_info.html',
|
|
|
|
'lib/client/templates/modules/post_info.js',
|
|
|
|
'lib/client/templates/modules/post_rank.html',
|
|
|
|
'lib/client/templates/modules/post_rank.js',
|
|
|
|
'lib/client/templates/modules/post_title.html',
|
2015-06-18 16:46:45 +09:00
|
|
|
'lib/client/templates/modules/post_vote.html',
|
|
|
|
'lib/client/templates/modules/post_vote.js',
|
2015-04-22 12:09:57 +09:00
|
|
|
'lib/client/templates/post_body.html',
|
|
|
|
'lib/client/templates/post_edit.html',
|
|
|
|
'lib/client/templates/post_edit.js',
|
|
|
|
'lib/client/templates/post_item.html',
|
|
|
|
'lib/client/templates/post_item.js',
|
|
|
|
'lib/client/templates/post_page.html',
|
|
|
|
'lib/client/templates/post_page.js',
|
|
|
|
'lib/client/templates/post_submit.html',
|
|
|
|
'lib/client/templates/post_submit.js',
|
2015-08-26 10:43:56 +09:00
|
|
|
'lib/client/templates/views_menu.html',
|
|
|
|
'lib/client/templates/views_menu.js',
|
2015-09-17 14:51:14 +09:00
|
|
|
'lib/client/templates/main_posts_list.html',
|
|
|
|
'lib/client/templates/main_posts_list.js',
|
2015-05-02 11:46:36 +09:00
|
|
|
'lib/client/templates/posts_list/posts_list.html',
|
|
|
|
'lib/client/templates/posts_list/posts_list.js',
|
2015-05-07 18:54:46 +09:00
|
|
|
'lib/client/templates/posts_list/posts_list_compact.html',
|
|
|
|
'lib/client/templates/posts_list/posts_list_compact.js',
|
2015-05-02 11:46:36 +09:00
|
|
|
'lib/client/templates/posts_list/posts_list_controller.html',
|
2015-05-02 13:44:41 +09:00
|
|
|
'lib/client/templates/posts_list/posts_list_controller.js'
|
2015-04-22 12:09:57 +09:00
|
|
|
], ['client']);
|
|
|
|
|
2015-05-01 18:22:00 +02:00
|
|
|
api.addFiles([
|
2015-07-08 16:00:27 +09:00
|
|
|
'lib/server/publications.js',
|
|
|
|
'lib/server/fastrender.js'
|
2015-04-22 07:50:11 +09:00
|
|
|
], ['server']);
|
|
|
|
|
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"];
|
2015-08-14 10:34:21 +09:00
|
|
|
var languagesPaths = languages.map(function (language) {
|
|
|
|
return "i18n/"+language+".i18n.json";
|
|
|
|
});
|
|
|
|
api.addFiles(languagesPaths, ["client", "server"]);
|
2015-06-15 19:05:42 +09:00
|
|
|
|
2015-04-22 07:50:11 +09:00
|
|
|
api.export('Posts');
|
|
|
|
|
|
|
|
});
|