-
Notifications
You must be signed in to change notification settings - Fork 51
/
package.js
42 lines (34 loc) · 1.76 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
Package.describe({
name: "natestrauser:x-editable-bootstrap",
summary: "Latest version of X-Editable for Bootstrap with wysihtml5 rich text editor",
version: "1.5.2_4",
git: "https://github.com/nate-strauser/meteor-x-editable-bootstrap.git"
});
Package.on_use(function (api){
api.versionsFrom("1.2.0.1");
// Package needs jQuery
api.use('jquery');
// This depends on BS3 JS libraries, including popovers.
// Need to make sure bootstrap 3 is loaded first, or errors will ensue
// https://github.com/vitalets/x-editable/issues/395
api.use("twbs:[email protected]", "client", { weak: true });
api.use("nemo64:[email protected]_2", "client", { weak: true });
// Add FontAwesome for button icons
api.use("fortawesome:[email protected]", "client", { weak: true });
//x-editable
api.addFiles('lib/bootstrap-editable/css/bootstrap-editable.css', 'client');
api.addFiles('lib/bootstrap-editable/js/bootstrap-editable.js', 'client', {bare:true});
api.addAssets('lib/bootstrap-editable/img/clear.png', 'client');
api.addAssets('lib/bootstrap-editable/img/loading.gif', 'client');
//address
api.addFiles('lib/address/address.css', 'client');
api.addFiles('lib/address/address.js', 'client', {bare:true});
//wysihtml5
api.addFiles('lib/wysihtml5/wysihtml5.js', 'client', {bare:true});
api.addFiles('lib/wysihtml5/bootstrap-wysihtml5-0.0.2/wysiwyg-color.css', 'client');
api.addFiles('lib/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js', 'client', {bare:true});
api.addFiles('lib/wysihtml5/bootstrap-wysihtml5-0.0.2/bootstrap-wysihtml5-0.0.2.css', 'client');
api.addFiles('lib/wysihtml5/bootstrap-wysihtml5-0.0.2/bootstrap-wysihtml5-0.0.2.js', 'client', {bare:true});
//override image paths
api.addFiles('path-override.css', 'client');
});