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

65 lines
1.1 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({
'htmlparser2': '3.8.2',
2014-12-18 16:01:18 +09:00
'to-markdown': '0.0.2',
'he': '0.5.0'
2014-12-13 22:55:10 +08:00
});
Package.onUse(function(api) {
api.use([
'telescope-base',
'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',
'templating'
], 'client');
api.use([
'http',
'mrt:moment',
'percolatestudio:synced-cron'
], 'server');
api.add_files([
2014-12-18 16:01:18 +09:00
'lib/feeds.js'
2014-12-13 22:55:10 +08:00
], ['client', 'server']);
api.add_files([
'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.add_files([
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.add_files([
"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');
});