forked from gadicc/meteor-famous-views
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.js
122 lines (106 loc) · 2.93 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
Package.describe({
name: "gadicohen:famous-views",
summary: 'Blaze Views for Famous; doing Famous Meteor-style',
version: "0.1.31",
git: "https://github.com/gadicc/meteor-famous-views.git"
});
function configurePackage(api, testing) {
// Core Dependencies
api.use(['[email protected]', '[email protected]'], 'client');
api.use(
[
],
'client'
);
// Community Packages
api.use(
[
"jag:[email protected]",
"pierreeric:[email protected]",
"sdecima:[email protected]"
],
'client');
api.add_files(
[
'lib/famous-views.js',
'lib/meteorFamousView.js',
'lib/sequencer.js',
'lib/famous.js',
'lib/famousEach.js',
'lib/famousIf.js',
'lib/famousContext.js',
'lib/modifiers.js',
'lib/views.js'
],
'client'
);
api.add_files(
[
'lib/views/_simple.js',
'lib/views/ContainerSurface.js',
'lib/views/EdgeSwapper.js',
'lib/views/Flipper.js',
'lib/views/HeaderFooterLayout.js',
'lib/views/Lightbox.js',
'lib/views/RenderController.js',
'lib/views/Scrollview.js',
'lib/views/Surface.js',
],
'client'
);
api.add_files(
[
'lib/modifiers/StateModifier.js'
],
'client'
);
api.export('FView', 'client');
}
Package.on_use(function (api) {
configurePackage(api);
// Famous Providers
api.use('mjn:[email protected]_5', 'client', { weak: true });
api.use('raix:[email protected]', { weak: true });
/*
* This lets us access Famono stuff before Meteor.startup(), but also
* results in all the deps being sent down the wire twice. Need to work
* something out with Famono. Note, only works without { weak: true }
*/
// api.add_files('lib/smart.require', 'client');
});
Package.on_test(function(api) {
configurePackage(api, true /* isTesting */);
api.use('tinytest', 'client');
api.use('less', 'client');
api.use('reactive-var', 'client');
// Strong dependency; force testing platform to install this
api.use('mjn:[email protected]_5', 'client');
api.add_files([
'tests/TestStyles.less',
'tests/TestUtils.js',
'tests/sequencer.js',
'tests/famous.html',
'tests/famous.js',
'tests/famousIf/famousIf.html',
'tests/famousIf/famousIf.js',
'tests/famousEach/famousEach.html',
'tests/famousEach/famousEach.js',
'tests/context/FamousContextTests.html',
'tests/context/FamousContextTests.js',
'tests/surface/AttrClassTests.html',
'tests/surface/AttrClassTests.js',
'tests/surface/AttrSizeTests.html',
'tests/surface/AttrSizeTests.js',
'tests/surface/AttrPropertiesTests.html',
'tests/surface/AttrPropertiesTests.js',
'tests/surface/Rendered.html',
'tests/surface/Rendered.js',
'tests/surface/watchSize.html',
'tests/surface/watchSize.js'
], 'client');
});