mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
38 lines
1.4 KiB
JavaScript
38 lines
1.4 KiB
JavaScript
Package.describe({
|
|
summary: "Serves a Meteor app over HTTP",
|
|
version: '1.0.2'
|
|
});
|
|
|
|
Npm.depends({connect: "2.9.0",
|
|
send: "0.1.4",
|
|
useragent: "2.0.7"});
|
|
|
|
Package.on_use(function (api) {
|
|
api.use(['logging', 'underscore', 'routepolicy', 'spacebars-compiler',
|
|
'spacebars', 'htmljs', 'ui'],
|
|
'server');
|
|
api.use(['underscore'], 'client');
|
|
api.use(['application-configuration', 'follower-livedata'], {
|
|
unordered: true
|
|
});
|
|
// At response serving time, webapp uses browser-policy if it is loaded. If
|
|
// browser-policy is loaded, then it must be loaded after webapp
|
|
// (browser-policy depends on webapp). So we don't explicitly depend in any
|
|
// way on browser-policy here, but we use it when it is loaded, and it can be
|
|
// loaded after webapp.
|
|
api.export(['WebApp', 'main', 'WebAppInternals'], 'server');
|
|
api.export(['WebApp'], 'client');
|
|
api.add_files('webapp_server.js', 'server');
|
|
// This is a spacebars template, but we process it manually with the spacebars
|
|
// compiler rather than letting the 'templating' package (which isn't fully
|
|
// supported on the server yet) handle it. That also means that it doesn't
|
|
// contain the outer "<template>" tag.
|
|
api.add_files('boilerplate.html', 'server', {isAsset: true});
|
|
api.add_files('webapp_client.js', 'client');
|
|
});
|
|
|
|
Package.on_test(function (api) {
|
|
api.use(['tinytest', 'webapp', 'http']);
|
|
api.add_files('webapp_tests.js', 'server');
|
|
});
|