Vulcan/packages/telescope-post-by-feed/package.js

69 lines
1.2 KiB
JavaScript
Raw Normal View History

2014-12-13 22:55:10 +08:00
Package.describe({
summary: 'Auto post via RSS to Telescope',
version: '0.0.1',
2014-12-18 10:47:37 +09:00
name: 'telescope-post-by-feed'
2014-12-13 22:55:10 +08:00
});
Npm.depends({
'feedparser': '1.0.0',
2014-12-18 16:01:18 +09:00
'to-markdown': '0.0.2',
'he': '0.5.0',
'iconv-lite': '0.4.7'
2014-12-13 22:55:10 +08:00
});
Package.onUse(function(api) {
api.use([
'telescope-base',
2015-02-09 18:39:50 +00:00
'telescope-tags',
2014-12-13 22:55:10 +08:00
'aldeed:simple-schema',
2014-12-19 14:32:25 +09:00
'aldeed:autoform',
'tap:i18n',
'fourseven:scss',
2014-12-13 22:55:10 +08:00
], ['client', 'server']);
api.use([
'iron:router',
2015-03-27 16:24:21 +08:00
'templating',
'telescope-messages'
2014-12-13 22:55:10 +08:00
], 'client');
api.use([
'http',
'aldeed:http@0.2.2',
2015-03-26 12:00:15 +09:00
'momentjs:moment',
2014-12-13 22:55:10 +08:00
'percolatestudio:synced-cron'
], 'server');
api.addFiles([
2014-12-18 16:01:18 +09:00
'lib/feeds.js'
2014-12-13 22:55:10 +08:00
], ['client', 'server']);
api.addFiles([
2014-12-13 22:55:10 +08:00
'lib/client/routes.js',
2014-12-19 14:32:25 +09:00
'lib/client/scss/feeds.scss',
2014-12-18 16:01:18 +09:00
'lib/client/templates/feeds.js',
'lib/client/templates/feeds.html',
'lib/client/templates/feed_item.js',
'lib/client/templates/feed_item.html',
2014-12-13 22:55:10 +08:00
], 'client');
api.addFiles([
2014-12-18 16:01:18 +09:00
'lib/server/fetch_feeds.js',
2014-12-13 22:55:10 +08:00
'lib/server/cron.js',
'lib/server/publications.js'
], ['server']);
api.addFiles([
2014-12-13 22:55:10 +08:00
"i18n/en.i18n.json"
], ["client", "server"]);
2014-12-19 14:32:25 +09:00
api.export([
'Feeds'
]);
2014-12-13 22:55:10 +08:00
});
Package.onTest(function(api) {
api.use('tinytest');
});