forked from summernote/summernote
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.js
35 lines (29 loc) · 1021 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
34
35
// package metadata file for Meteor.js
'use strict';
var packageName = 'summernote:summernote'; // http://atmospherejs.com/summernote:summernote
var where = 'client'; // where to install: 'client' or 'server'. For both, pass nothing.
var packageJson = JSON.parse(Npm.require("fs").readFileSync('package.json'));
Package.describe({
name: packageName,
summary: 'summernote (official): jQuery+Bootstrap+FontAwesome WYSIWYG editor with embedded images support',
version: packageJson.version,
git: 'https://github.com/summernote/summernote.git'
});
Package.onUse(function (api) {
api.versionsFrom(['[email protected]', '[email protected]']);
api.use([
'jquery',
'twbs:[email protected]',
'fortawesome:[email protected]'
], where);
// no exports - summernote adds itself to jQuery
api.addFiles([
'dist/summernote.js',
'dist/summernote.css'
], where);
});
Package.onTest(function (api) {
api.use(packageName, where);
api.use('tinytest', where);
api.addFiles('meteor/test.js', where);
});