forked from summernote/summernote
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage-standalone.js
42 lines (33 loc) · 1.18 KB
/
package-standalone.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 metadata file for Meteor.js
'use strict';
var packageName = 'summernote:standalone'; // http://atmospherejs.com/summernote:standalone
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 standalone (official): WYSIWYG editor with embedded images support, packaged without deps',
version: packageJson.version,
git: 'https://github.com/summernote/summernote.git'
});
Package.onUse(function (api) {
api.versionsFrom(['[email protected]', '[email protected]']);
// no exports - summernote adds itself to jQuery
api.addFiles([
'dist/summernote.js',
'dist/summernote.css'
], where);
api.addAssets([
'dist/font/summernote.eot',
'dist/font/summernote.ttf',
'dist/font/summernote.woff'
], where);
});
Package.onTest(function (api) {
// load dependencies for test only, before loading the package
api.use(['twbs:[email protected]'], where);
// load our package
api.use(packageName, where);
// load the test runner
api.use('tinytest', where);
api.addFiles('meteor/test.js', where);
});