chore(project): es6ify source code

* use ES6 import / export
* UTILS: export individual utilities
* TESTS: localize TestHelper includes

BREAKING CHANGE:

* all utilities export independent functions
* library sources got ported to ES6. You must now use
  a ES module bundler such as Browserify + babelify or
  Webpack to consume this library (or parts of it).
This commit is contained in:
Nico Rehwaldt
2018-04-02 21:01:53 +02:00
parent 56a644177d
commit d3449ca87c
224 changed files with 2635 additions and 1932 deletions

View File

@ -1,7 +1,11 @@
module.exports = {
import RulesModule from 'diagram-js/lib/features/rules';
import BpmnRules from './BpmnRules';
export default {
__depends__: [
require('diagram-js/lib/features/rules')
RulesModule
],
__init__: [ 'bpmnRules' ],
bpmnRules: [ 'type', require('./BpmnRules') ]
bpmnRules: [ 'type', BpmnRules ]
};