-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathpackage.js
33 lines (28 loc) · 962 Bytes
/
package.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
Package.describe({
name: 'kadira:react-layout',
summary: 'Layout Manager for React with SSR Support',
version: '1.5.3',
git: 'https://github.com/kadirahq/meteor-react-layout.git'
});
Package.onUse(function(api) {
configure(api);
api.export('ReactLayout');
});
Package.onTest(function(api) {
api.use('random');
api.use('tinytest');
api.use('jquery');
configure(api);
api.addFiles('test/client.jsx', 'client');
api.addFiles('test/server.jsx', 'server');
api.addFiles('test/both.jsx', ['server', 'client']);
});
function configure(api) {
api.use('[email protected]');
api.use('kadira:[email protected]', ['client', 'server'], {weak: true});
// We don't browserify, but this version fix a huge build time
// delay, which exists in the react package.
// Once, react package comes with the updated version, we can remove this.
api.use('cosmos:[email protected]');
api.addFiles('lib/react_layout.js', ['client', 'server']);
}