forked from sachinbhutani/flow-db-admin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.js
83 lines (72 loc) · 2.26 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
Package.describe({
name: 'sach:flow-db-admin',
version: '1.2.0',
// Brief, one-line summary of the package.
summary: 'Meteor Database Admin package for use with Flow Router',
// URL to the Git repository containing the source code for this package.
git: 'https://github.com/sachinbhutani/flow-db-admin',
// By default, Meteor will default to using README.md for documentation.
// To avoid submitting documentation, set this field to null.
documentation: 'README.md'
});
Package.onUse(function(api) {
api.versionsFrom('1.3');
both = ['client','server']
api.use(
[
'coffeescript',
'underscore',
'reactive-var',
'meteorhacks:[email protected]',
'kadira:[email protected]',
'kadira:[email protected]',
'zimme:[email protected]',
'reywood:[email protected]',
'aldeed:[email protected]',
'aldeed:[email protected]',
'aldeed:[email protected]',
'alanning:[email protected]',
'raix:[email protected]',
'momentjs:[email protected]',
'aldeed:[email protected]',
'mfactory:[email protected]',
'tmeasday:[email protected]',
'check',
'ecmascript'
],
both);
api.use(['[email protected] || 2.5.0','session','jquery','templating'],'client')
api.use(['email'],'server')
api.add_files([
'lib/both/AdminDashboard.coffee',
'lib/both/routes.js',
'lib/both/utils.coffee',
'lib/both/startup.coffee',
'lib/both/collections.coffee'
], both);
api.add_files([
'lib/client/html/admin_templates.html',
'lib/client/html/admin_widgets.html',
'lib/client/html/fadmin_layouts.html',
'lib/client/html/admin_sidebar.html',
'lib/client/html/admin_header.html',
'lib/client/js/admin_layout.js',
'lib/client/js/helpers.coffee',
'lib/client/js/templates.coffee',
'lib/client/js/events.coffee',
'lib/client/js/slim_scroll.js',
'lib/client/js/autoForm.coffee',
'lib/client/css/admin-custom.less'
], 'client');
api.add_files([
'lib/server/publish.coffee',
'lib/server/methods.coffee'
], 'server');
//api.addAssets(['lib/client/css/admin-custom.css'],'client');
api.export('AdminDashboard',both)
});
Package.onTest(function(api) {
api.use('tinytest');
api.use('sach:flow-db-admin');
api.addFiles('flow-db-admin-tests.js');
});