chore(Modeler): remove bpmn-js-cli

This commit is contained in:
Nico Rehwaldt 2014-12-30 22:42:53 +01:00
parent 5027179149
commit 74092d40a2
3 changed files with 1 additions and 31 deletions

View File

@ -63,7 +63,6 @@ Modeler.prototype._interactionModules = [
Modeler.prototype._modelingModules = [ Modeler.prototype._modelingModules = [
// modeling components // modeling components
require('bpmn-js-cli'),
require('diagram-js/lib/features/snapping'), require('diagram-js/lib/features/snapping'),
require('diagram-js/lib/features/move'), require('diagram-js/lib/features/move'),
require('diagram-js/lib/features/resize'), require('diagram-js/lib/features/resize'),

View File

@ -59,8 +59,7 @@
"jquery": "^2.1.0", "jquery": "^2.1.0",
"lodash": "^2.4.0", "lodash": "^2.4.0",
"object-refs": "^0.1.0", "object-refs": "^0.1.0",
"ids": "^0.1.0", "ids": "^0.1.0"
"bpmn-js-cli": "^0.4.0"
}, },
"peerDependencies": { "peerDependencies": {
"diagram-js": "^0.7.0" "diagram-js": "^0.7.0"

View File

@ -88,34 +88,6 @@ describe('Modeler', function() {
}); });
describe('cli support', function() {
it('should ship with cli', function(done) {
var xml = fs.readFileSync('test/fixtures/bpmn/simple.bpmn', 'utf8');
createModeler(xml, function(err, viewer) {
// given
var cli = viewer.get('cli');
// assume
expect(cli).toBeDefined();
// when
var subProcessShape = cli.element('SubProcess_1');
// then
expect(subProcessShape.id).toEqual('SubProcess_1');
done(err);
});
});
});
it('should handle errors', function(done) { it('should handle errors', function(done) {
var xml = 'invalid stuff'; var xml = 'invalid stuff';