2015-01-20 11:59:12 +09:00
|
|
|
Package.describe({
|
|
|
|
summary: 'Subscribe to posts to be notified when they get new comments',
|
|
|
|
version: '0.1.0',
|
|
|
|
name: 'telescope-subscribe-to-posts'
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
Package.onUse(function (api) {
|
|
|
|
|
|
|
|
// --------------------------- 1. Meteor packages dependencies ---------------------------
|
|
|
|
|
|
|
|
// automatic (let the package specify where it's needed)
|
|
|
|
|
|
|
|
api.use([
|
|
|
|
'tap:i18n',
|
|
|
|
'iron:router',
|
|
|
|
'telescope-base',
|
2015-04-20 14:58:48 +09:00
|
|
|
'telescope:lib',
|
2015-04-20 15:20:10 +09:00
|
|
|
'telescope:i18n',
|
2015-01-20 11:59:12 +09:00
|
|
|
'fourseven:scss',
|
2015-04-20 13:57:37 +09:00
|
|
|
'telescope-notifications',
|
2015-04-20 14:58:48 +09:00
|
|
|
'telescope:posts'
|
2015-01-20 11:59:12 +09:00
|
|
|
]);
|
|
|
|
|
|
|
|
// client
|
|
|
|
|
|
|
|
api.use([
|
|
|
|
'jquery', // useful for DOM interactions
|
|
|
|
'underscore', // JavaScript swiss army knife library
|
2015-03-27 16:24:21 +08:00
|
|
|
'templating', // required for client-side templates
|
2015-04-21 11:02:02 +09:00
|
|
|
'telescope:messages'
|
2015-01-20 11:59:12 +09:00
|
|
|
], ['client']);
|
|
|
|
|
|
|
|
// ---------------------------------- 2. Files to include ----------------------------------
|
|
|
|
|
|
|
|
// i18n config (must come first)
|
|
|
|
|
2015-01-21 10:38:59 +09:00
|
|
|
api.addFiles([
|
2015-01-20 11:59:12 +09:00
|
|
|
'package-tap.i18n'
|
|
|
|
], ['client', 'server']);
|
|
|
|
|
|
|
|
// both
|
|
|
|
|
2015-01-21 10:38:59 +09:00
|
|
|
api.addFiles([
|
2015-01-20 11:59:12 +09:00
|
|
|
'lib/subscribe-to-posts.js',
|
|
|
|
], ['client', 'server']);
|
|
|
|
|
|
|
|
// client
|
|
|
|
|
2015-01-21 10:38:59 +09:00
|
|
|
api.addFiles([
|
2015-01-20 11:59:12 +09:00
|
|
|
'lib/client/templates/post_subscribe.html',
|
|
|
|
'lib/client/templates/post_subscribe.js',
|
|
|
|
'lib/client/templates/user_subscribed_posts.html',
|
|
|
|
'lib/client/templates/user_subscribed_posts.js',
|
|
|
|
'lib/client/stylesheets/subscribe-to-posts.scss'
|
|
|
|
], ['client']);
|
|
|
|
|
|
|
|
// server
|
|
|
|
|
2015-01-21 10:38:59 +09:00
|
|
|
api.addFiles([
|
2015-01-20 11:59:12 +09:00
|
|
|
'lib/server/publications.js'
|
2015-03-27 16:24:21 +08:00
|
|
|
], ['server']);
|
2015-01-20 11:59:12 +09:00
|
|
|
|
|
|
|
// i18n languages (must come last)
|
|
|
|
|
2015-01-21 10:38:59 +09:00
|
|
|
api.addFiles([
|
2015-01-20 11:59:12 +09:00
|
|
|
'i18n/en.i18n.json',
|
|
|
|
], ['client', 'server']);
|
|
|
|
|
2015-01-21 10:38:59 +09:00
|
|
|
api.export([
|
2015-03-27 16:24:21 +08:00
|
|
|
'subscribeItem',
|
2015-01-21 10:38:59 +09:00
|
|
|
'unsubscribeItem'
|
|
|
|
]);
|
|
|
|
|
2015-03-27 16:24:21 +08:00
|
|
|
});
|