bpmn-moddle
Advanced tools
Comparing version 0.2.0 to 0.3.0
@@ -27,13 +27,12 @@ module.exports = function(grunt) { | ||
jasmine_node: { | ||
options: { | ||
specNameMatcher: '.*Spec', | ||
jUnit: { | ||
report: true, | ||
savePath : 'tmp/reports/jasmine', | ||
useDotNotation: true, | ||
consolidate: true | ||
} | ||
}, | ||
all: [ 'test/spec/' ] | ||
mochaTest: { | ||
test: { | ||
options: { | ||
reporter: 'spec', | ||
require: [ | ||
'./test/expect.js' | ||
] | ||
}, | ||
src: ['test/**/*.js'] | ||
} | ||
}, | ||
@@ -50,5 +49,5 @@ | ||
watch: { | ||
jasmine_node: { | ||
test: { | ||
files: [ '<%= config.sources %>/**/*.js', '<%= config.tests %>/spec/**/*.js' ], | ||
tasks: [ 'jasmine_node' ] | ||
tasks: [ 'test' ] | ||
} | ||
@@ -70,7 +69,7 @@ }, | ||
grunt.registerTask('test', [ 'jasmine_node' ]); | ||
grunt.registerTask('test', [ 'mochaTest' ]); | ||
grunt.registerTask('auto-test', [ 'jasmine_node', 'watch:jasmine_node' ]); | ||
grunt.registerTask('auto-test', [ 'test', 'watch:test' ]); | ||
grunt.registerTask('default', [ 'jshint', 'test', 'jsdoc' ]); | ||
}; |
@@ -1,1 +0,1 @@ | ||
module.exports = require('./lib/model/Simple'); | ||
module.exports = require('./lib/simple'); |
{ | ||
"name": "bpmn-moddle", | ||
"version": "0.2.0", | ||
"version": "0.3.0", | ||
"description": "A moddle wrapper for BPMN 2.0", | ||
@@ -30,2 +30,3 @@ "scripts": { | ||
"devDependencies": { | ||
"chai": "^1.9.1", | ||
"cmof-parser": "0.0.3", | ||
@@ -35,18 +36,16 @@ "grunt": "~0.4.2", | ||
"grunt-contrib-watch": "~0.5.0", | ||
"grunt-jasmine-node": "~0.2.1", | ||
"grunt-jsdoc": "~0.5.1", | ||
"grunt-mocha-test": "^0.11.0", | ||
"grunt-release": "^0.7.0", | ||
"ids": "0.0.3", | ||
"jsondiffpatch": "~0.1.4", | ||
"load-grunt-tasks": "~0.3.0", | ||
"lodash": "^2.4.1", | ||
"xsd-schema-validator": "0.0.3" | ||
}, | ||
"peerDependencies": { | ||
"lodash": "~2.4.0" | ||
}, | ||
"dependencies": { | ||
"lodash": "~2.4.0", | ||
"sax": "~0.6.0", | ||
"moddle": "~0.2.0", | ||
"moddle-xml": "~0.2.0" | ||
"moddle": "~0.3.1", | ||
"moddle-xml": "~0.3.0" | ||
} | ||
} |
@@ -10,7 +10,9 @@ # bpmn-moddle | ||
The library is provided as an npm package. Bundle it for the web via [browserify](browserify.org). | ||
The library is provided as an [npm package](https://www.npmjs.org/package/bpmn-moddle). Bundle it for the web via [browserify](browserify.org). | ||
```javascript | ||
var Bpmn = require('bpmn-moddle'); | ||
var BpmnModdle = require('bpmn-moddle'); | ||
var moddle = new BpmnModdle(); | ||
var xmlStr = | ||
@@ -22,3 +24,3 @@ '<?xml version="1.0" encoding="UTF-8"?>' + | ||
Bpmn.fromXML(xmlStr, function(err, definitions) { | ||
moddle.fromXML(xmlStr, function(err, definitions) { | ||
@@ -28,9 +30,7 @@ // update id attribute | ||
var model = Bpmn.instance(); | ||
// add a root element | ||
var bpmnProcess = model.create('bpmn:Process', { id: 'MyProcess_1' }); | ||
var bpmnProcess = moddle.create('bpmn:Process', { id: 'MyProcess_1' }); | ||
definitions.get('rootElements').push(bpmnProcess); | ||
Bpmn.toXML(definitions, function(err, xmlStrUpdated) { | ||
moddle.toXML(definitions, function(err, xmlStrUpdated) { | ||
@@ -37,0 +37,0 @@ // xmlStrUpdated contains new id and the added process |
@@ -7,3 +7,3 @@ var _ = require('lodash'), | ||
var Helper = require('../../Helper'); | ||
var Helper = require('../../../helper'); | ||
@@ -10,0 +10,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
62
4883
864479
12
1
+ Addedlodash@~2.4.0
+ Addedmoddle@0.3.1(transitive)
+ Addedmoddle-xml@0.3.0(transitive)
- Removedmoddle@0.2.0(transitive)
- Removedmoddle-xml@0.2.0(transitive)
Updatedmoddle@~0.3.1
Updatedmoddle-xml@~0.3.0