-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpackage.js
80 lines (72 loc) · 2.54 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
Package.describe({
name: "tap:bootstrap-magic",
summary: "A Bootstrap Theme Editor ported to Meteor",
version: '1.0.0',
git: 'https://github.com/TAPevents/meteor-bootstrap-magic'
});
Package.on_use(function(api) {
api.versionsFrom('1.2.1');
api.use([
'coffeescript',
'reactive-var',
'reactive-dict',
'templating',
'underscore',
'less',
'tap:[email protected]'
], ['client', 'server']);
api.add_files("package-tap.i18n", ["client", "server"]);
if(!api.addAssets){ // backwards compatability
api.addAssets = api.add_files;
}
api.addAssets([
'lib/colorpicker/img/bootstrap-colorpicker/alpha-horizontal.png',
'lib/colorpicker/img/bootstrap-colorpicker/alpha.png',
'lib/colorpicker/img/bootstrap-colorpicker/hue-horizontal.png',
'lib/colorpicker/img/bootstrap-colorpicker/hue.png',
'lib/colorpicker/img/bootstrap-colorpicker/saturation.png'
], "client")
api.add_files([
// colorpicker lib
'lib/colorpicker/css/bootstrap-colorpicker.css',
'lib/colorpicker/js/bootstrap-colorpicker.js',
'lib/templates/preview/borders.html',
'lib/templates/preview/badges.html',
'lib/templates/preview/breadcrumbs.html',
'lib/templates/preview/carousels.html',
'lib/templates/preview/close.html',
'lib/templates/preview/icons.html',
'lib/templates/preview/padding.html',
'lib/templates/preview/alerts.html',
'lib/templates/preview/jumbotron.html',
'lib/templates/preview/labels.html',
'lib/templates/preview/layout.html',
'lib/templates/preview/lists.html',
'lib/templates/preview/modals.html',
'lib/templates/preview/navbars.html',
'lib/templates/preview/pagination.html',
'lib/templates/preview/panels.html',
'lib/templates/preview/progressbars.html',
'lib/templates/preview/thumbnails.html',
'lib/templates/preview/tooltips.html',
'lib/templates/preview/validation.html',
'lib/templates/preview/buttons.html',
'lib/templates/preview/colors.html',
'lib/templates/preview/dropdowns.html',
'lib/templates/preview/forms.html',
'lib/templates/preview/misc.html',
'lib/templates/preview/tables.html',
'lib/templates/preview/typography.html',
'lib/templates/preview/zindex.html',
// all-important default bootstrap variables
'lib/bootstrap-magic-variables.js',
// and now for the actual package code
'bootstrap-magic-editor.html',
'bootstrap-magic-editor.less',
'bootstrap-magic.coffee'
], ['client']);
api.add_files([
"i18n/en.i18n.json",
"i18n/zh.i18n.json"
], ["client", "server"]);
});