2015-04-22 08:47:23 +09:00
|
|
|
Package.describe({
|
|
|
|
name: "telescope:core",
|
|
|
|
summary: "Telescope core package",
|
2015-10-16 20:04:44 +09:00
|
|
|
version: "0.25.3",
|
2015-04-22 08:47:23 +09:00
|
|
|
git: "https://github.com/TelescopeJS/Telescope.git"
|
|
|
|
});
|
|
|
|
|
|
|
|
Package.onUse(function(api) {
|
|
|
|
|
|
|
|
api.versionsFrom("METEOR@1.0");
|
|
|
|
|
2015-05-16 12:05:53 +09:00
|
|
|
var packages = [
|
2015-10-16 20:04:44 +09:00
|
|
|
'telescope:lib@0.25.3', // no dependencies
|
|
|
|
'telescope:messages@0.25.3', // lib
|
|
|
|
'telescope:i18n@0.25.3', // lib
|
|
|
|
'telescope:events@0.25.3', // lib, i18n
|
|
|
|
'telescope:settings@0.25.3', // lib, i18n
|
|
|
|
'telescope:users@0.25.3', // lib, i18n, settings
|
|
|
|
'telescope:comments@0.25.3', // lib, i18n, settings, users
|
|
|
|
'telescope:posts@0.25.3' // lib, i18n, settings, users, comments
|
2015-05-16 12:05:53 +09:00
|
|
|
];
|
|
|
|
|
|
|
|
api.use(packages);
|
2015-04-22 15:49:46 +09:00
|
|
|
|
2015-05-16 12:05:53 +09:00
|
|
|
api.imply(packages);
|
2015-04-22 08:47:23 +09:00
|
|
|
|
|
|
|
api.addFiles([
|
2015-04-24 10:22:17 +09:00
|
|
|
'lib/modules.js',
|
2015-09-23 15:43:22 +09:00
|
|
|
'lib/vote.js',
|
|
|
|
'lib/subscriptions.js'
|
2015-04-22 08:47:23 +09:00
|
|
|
], ['client', 'server']);
|
|
|
|
|
|
|
|
api.addFiles([
|
2015-04-22 11:49:42 +09:00
|
|
|
'lib/client/handlebars.js',
|
2015-04-22 12:14:59 +09:00
|
|
|
'lib/client/main.html',
|
|
|
|
'lib/client/main.js',
|
2015-08-20 12:19:23 +09:00
|
|
|
'lib/client/scripts/jquery.quickfit.js',
|
2015-04-24 08:13:41 +09:00
|
|
|
'lib/client/templates/modules/modules.html',
|
|
|
|
'lib/client/templates/modules/modules.js',
|
2015-04-22 12:14:59 +09:00
|
|
|
'lib/client/templates/admin/admin_menu.html',
|
|
|
|
'lib/client/templates/admin/admin_menu.js',
|
|
|
|
'lib/client/templates/admin/admin_wrapper.html',
|
|
|
|
'lib/client/templates/common/css.html',
|
|
|
|
'lib/client/templates/common/css.js',
|
2015-07-14 19:39:37 +09:00
|
|
|
'lib/client/templates/common/footer_code.html',
|
|
|
|
'lib/client/templates/common/footer_code.js',
|
2015-09-17 18:15:00 +09:00
|
|
|
'lib/client/templates/common/loader.html',
|
2015-09-19 10:33:37 +09:00
|
|
|
'lib/client/templates/common/checker.html',
|
|
|
|
'lib/client/templates/common/checker.js',
|
2015-04-22 12:14:59 +09:00
|
|
|
'lib/client/templates/common/layout.html',
|
|
|
|
'lib/client/templates/common/layout.js',
|
|
|
|
'lib/client/templates/errors/already_logged_in.html',
|
|
|
|
'lib/client/templates/errors/loading.html',
|
|
|
|
'lib/client/templates/errors/loading.js',
|
|
|
|
'lib/client/templates/errors/no_account.html',
|
|
|
|
'lib/client/templates/errors/no_account.js',
|
|
|
|
'lib/client/templates/errors/no_invite.html',
|
|
|
|
'lib/client/templates/errors/no_invite.js',
|
|
|
|
'lib/client/templates/errors/no_rights.html',
|
2015-09-08 11:08:02 +09:00
|
|
|
'lib/client/templates/errors/no_rights.js',
|
2015-04-22 12:14:59 +09:00
|
|
|
'lib/client/templates/errors/not_found.html',
|
|
|
|
'lib/client/templates/forms/urlCustomType.html',
|
|
|
|
'lib/client/templates/forms/urlCustomType.js',
|
|
|
|
'lib/client/templates/nav/logo.html',
|
|
|
|
'lib/client/templates/nav/logo.js',
|
|
|
|
'lib/client/templates/nav/mobile_nav.html',
|
|
|
|
'lib/client/templates/nav/mobile_nav.js',
|
2015-07-14 21:45:18 +09:00
|
|
|
'lib/client/templates/nav/header.html',
|
|
|
|
'lib/client/templates/nav/header.js',
|
2015-10-07 13:16:40 +09:00
|
|
|
'lib/client/templates/nav/submit_button.html'
|
2015-04-22 08:47:23 +09:00
|
|
|
], 'client');
|
|
|
|
|
2015-09-22 16:28:36 +09:00
|
|
|
api.addAssets([
|
2015-06-08 09:41:47 +09:00
|
|
|
'public/img/loading.svg',
|
|
|
|
], 'client');
|
2015-04-22 12:34:23 +09:00
|
|
|
|
2015-04-22 08:47:23 +09:00
|
|
|
api.addFiles([
|
2015-09-18 16:27:59 +09:00
|
|
|
'lib/server/start.js',
|
2015-09-23 15:43:22 +09:00
|
|
|
'lib/server/fastrender.js',
|
2015-09-18 16:27:59 +09:00
|
|
|
'lib/server/routes.js'
|
2015-04-22 08:47:23 +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-04-22 08:47:23 +09:00
|
|
|
|
|
|
|
});
|