mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 10:01:40 -05:00
52 lines
1.2 KiB
JavaScript
52 lines
1.2 KiB
JavaScript
Package.describe({
|
|
name: "telescope:post-by-feed",
|
|
summary: "Auto post via RSS to Telescope",
|
|
version: "0.25.7",
|
|
git: "https://github.com/TelescopeJS/telescope-post-by-feed.git"
|
|
});
|
|
|
|
Npm.depends({
|
|
'feedparser': '1.0.0',
|
|
'to-markdown': '0.0.2',
|
|
'he': '0.5.0',
|
|
'iconv-lite': '0.4.7'
|
|
});
|
|
|
|
Package.onUse(function(api) {
|
|
|
|
api.versionsFrom("METEOR@1.0");
|
|
|
|
api.use(['telescope:core@0.25.7']);
|
|
|
|
api.addFiles([
|
|
'lib/feeds.js',
|
|
'lib/routes.js'
|
|
], ['client', 'server']);
|
|
|
|
api.addFiles([
|
|
'lib/client/templates/feeds.html',
|
|
'lib/client/templates/feeds.js',
|
|
'lib/client/templates/feed_item.html',
|
|
'lib/client/templates/feed_item.js',
|
|
], 'client');
|
|
|
|
api.addFiles([
|
|
'lib/server/fetch_feeds.js',
|
|
'lib/server/cron.js',
|
|
'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([
|
|
'Feeds'
|
|
]);
|
|
});
|
|
|
|
Package.onTest(function(api) {
|
|
api.use('tinytest');
|
|
});
|