This repository was archived by the owner on Jun 2, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.js
More file actions
58 lines (50 loc) · 2.5 KB
/
package.js
File metadata and controls
58 lines (50 loc) · 2.5 KB
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
Package.describe({
name: 'jkuester:bpmntools',
version: '0.0.3',
// Brief, one-line summary of the package.
summary: 'Integrate the bpmn.io tools into a meteor package with templates.',
// URL to the Git repository containing the source code for this package.
git: 'https://github.com/jankapunkt/bpmntools',
// 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.4.1.1');
api.use('ecmascript');
api.use('jquery');
api.use('less');
api.use(['templating'], 'client');
//add styles
api.addFiles( 'lib/stylesheets/app.css', [ 'client' ]);
//add less (properties panel)
api.addFiles( 'lib/stylesheets/properties-panel.less', [ 'client' ]);
api.addFiles( '.npm/package/node_modules/bpmn-js-properties-panel/styles/properties.less', [ 'client' ], {isAsset:true,isImport:false});
api.addFiles( '.npm/package/node_modules/bpmn-js-properties-panel/styles/_variables.less', [ 'client' ], {isAsset:true,isImport:false});
api.addFiles( '.npm/package/node_modules/bpmn-js-properties-panel/styles/_mixins.less', [ 'client' ], {isAsset:true,isImport:false});
api.addFiles( '.npm/package/node_modules/bpmn-js-properties-panel/styles/tabs.less', [ 'client' ], {isAsset:true,isImport:false});
api.addFiles( '.npm/package/node_modules/bpmn-js-properties-panel/styles/groups.less', [ 'client' ], {isAsset:true,isImport:false});
api.addFiles( '.npm/package/node_modules/bpmn-js-properties-panel/styles/header.less', [ 'client' ], {isAsset:true,isImport:false});
api.addFiles( '.npm/package/node_modules/bpmn-js-properties-panel/styles/listeners.less', [ 'client' ], {isAsset:true,isImport:false});
//add templates
api.addFiles( 'lib/templates/modeler/modeler.js', [ 'client' ] );
api.addFiles( 'lib/templates/colors/colors.js', [ 'client' ] );
api.addFiles( 'lib/templates/properties-panel/properties-panel.js', [ 'client' ] );
//add client assets
api.addFiles( 'lib/resources/pizza-collaboration.bpmn', ['client'], {isAsset:true} );
api.mainModule('bpmntools.js');
});
Package.onTest(function(api) {
api.use('ecmascript');
api.use('tinytest');
api.use('jkuester:bpmntools');
api.mainModule('bpmntools-tests.js');
});
Npm.depends({
"bpmn-js" : "0.17.0",
"diagram-js" : "0.17.0",
"lodash" : "3.0.0",
"matches-selector" : "1.0.0",
"bpmn-js-properties-panel": "0.9.0",
"camunda-bpmn-moddle": "0.8.1",
});