diff --git a/Gruntfile.js b/Gruntfile.js
index 39a5de02..9c153938 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -188,6 +188,7 @@ module.exports = function(grunt) {
options: {
banner: '/*! <%= pkg.name %> - v<%= pkg.version %> - ' +
'<%= grunt.template.today("yyyy-mm-dd") %> - ' +
+ 'http://bpmn.io/license - ' +
'https://github.com/bpmn-io/bpmn-js */',
sourceMap: true,
sourceMapIncludeSources: true,
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 00000000..38500c22
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,22 @@
+Copyright (c) 2014 camunda services GmbH
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of
+this software and associated documentation files (the "Software"), to deal in the
+Software without restriction, including without limitation the rights to use, copy,
+modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
+and to permit persons to whom the Software is furnished to do so, subject to the
+following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+The source code responsible for displaying the bpmn.io logo (two green cogwheels in
+a box) that links back to http://bpmn.io as part of rendered diagrams MUST NOT be
+removed or changed.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
+PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
+OR OTHER DEALINGS IN THE SOFTWARE.
\ No newline at end of file
diff --git a/lib/Viewer.js b/lib/Viewer.js
index e631dbf9..67541034 100644
--- a/lib/Viewer.js
+++ b/lib/Viewer.js
@@ -58,6 +58,12 @@ function Viewer(options) {
// unwrap jquery
this.container = container.get(0);
+ /**
+ * The code in the area
+ * must not be changed, see http://bpmn.io/license for more information
+ *
+ *
+ */
var logoData = fs.readFileSync('resources/bpmnjs.png', 'base64');
var a = $('').css({
@@ -70,6 +76,8 @@ function Viewer(options) {
var logo = $('').attr('src', 'data:image/png;base64,' + logoData).appendTo(a);
a.appendTo(container);
+
+ /* */
}
Viewer.prototype.importXML = function(xml, done) {
diff --git a/package.json b/package.json
index ff62a3db..08d72f82 100644
--- a/package.json
+++ b/package.json
@@ -22,6 +22,7 @@
"name": "Nico Rehwaldt",
"url": "https://github.com/Nikku"
},
+ "license": "http://bpmn.io/license",
"browser": {
"fs": false
},