Skip to content

Commit

Permalink
chore: bundle distros with rollup
Browse files Browse the repository at this point in the history
Closes #3
  • Loading branch information
Niklas Kiefer committed Feb 5, 2021
1 parent 4f91026 commit aae2528
Show file tree
Hide file tree
Showing 15 changed files with 810 additions and 17 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dist
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
coverage
dist
4 changes: 3 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ test
coverage
.github
karma.config.js
.babelrc
.babelrc
!dist
tasks
41 changes: 41 additions & 0 deletions karma.distro.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
// configures browsers to run test against
// any of [ 'ChromeHeadless', 'Chrome', 'Firefox', 'Safari' ]
var browsers = (process.env.TEST_BROWSERS || 'ChromeHeadless').split(',');

// use puppeteer provided Chrome for testing
process.env.CHROME_BIN = require('puppeteer').executablePath();

var VARIANT = process.env.VARIANT;

var NODE_ENV = process.env.NODE_ENV;


module.exports = function(karma) {
karma.set({

basePath: '.',

frameworks: [
'mocha',
'sinon-chai'
],

files: [
'dist/' + VARIANT + '.' + (NODE_ENV === 'production' ? 'production.min' : 'development') + '.js',
{ pattern: 'test/fixtures/diagram.bpmn', included: false },
{ pattern: 'dist/assets/**/*', included: false },
'test/distro/helper.js',
'test/distro/' + VARIANT + '.js'
],

reporters: [ 'progress' ],

browsers,

browserNoActivityTimeout: 30000,

singleRun: true,
autoWatch: false
});

};
2 changes: 1 addition & 1 deletion lib/base/Modeler.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import propertiesProviderModule from 'bpmn-js-properties-panel/lib/provider/bpmn
*
* @param {Object} options
*/
export default function Modeler(options) {
export default function Modeler(options = {}) {

this._injectOriginModule(options);

Expand Down
2 changes: 1 addition & 1 deletion lib/camunda-cloud/Modeler.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import zeebeModdleExtension from 'zeebe-bpmn-moddle/lib';
*
* @param {Object} options
*/
export default function Modeler(options) {
export default function Modeler(options = {}) {

options = {
...options,
Expand Down
2 changes: 1 addition & 1 deletion lib/camunda-platform/Modeler.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import camundaModdleExtension from 'camunda-bpmn-moddle/lib';
*
* @param {Object} options
*/
export default function Modeler(options) {
export default function Modeler(options = {}) {

options = {
...options,
Expand Down
Loading

0 comments on commit aae2528

Please sign in to comment.