Fixes dependency issues
Changes import of ace-builds name so that this can build; includes some dependency changes/rollup change as well
This commit is contained in:
parent
03db75a2f3
commit
616280acc0
|
@ -2,12 +2,13 @@ import {attr as domAttr, classes as domClasses, event as domEvent} from 'min-dom
|
|||
|
||||
import {assign} from 'min-dash';
|
||||
|
||||
import * as ace from 'ace-builds/src-noconflict/ace';
|
||||
import * as acebuilds from 'ace-builds/src-noconflict/ace';
|
||||
// var Range = ace.require('ace/range').Range;
|
||||
// Enable dynamic loading of formatting modes
|
||||
ace.config.set('basePath', 'https://unpkg.com/ace-builds@1.4.12/src-noconflict');
|
||||
acebuilds.config.set('basePath', 'https://unpkg.com/ace-builds@1.4.12/src-noconflict');
|
||||
// https://stackoverflow.com/questions/16024721/how-can-i-highlight-multiple-lines-with-ace/16024998#16024998
|
||||
const Range = ace.require('ace/range').Range // get reference to ace/range
|
||||
const Range = ace.require('ace/range').Range
|
||||
|
||||
/**
|
||||
* A code editor that allows you to add syntax highlighting and testing to bpmn properties panel
|
||||
*/
|
||||
|
@ -221,7 +222,7 @@ Editor.prototype.open = function() {
|
|||
// ? There should be some way to pass the closed editor to ace
|
||||
this._ide = ace.edit('editor');
|
||||
this._ide.setAutoScrollEditorIntoView(true);
|
||||
makeAceEditorResizable(this._ide);
|
||||
// makeAceEditorResizable(this._ide);
|
||||
|
||||
// this._ide.setTheme("ace/theme/monokai");
|
||||
this._ide.session.setMode('ace/mode/python');
|
||||
|
|
File diff suppressed because it is too large
Load Diff
10
package.json
10
package.json
|
@ -14,7 +14,8 @@
|
|||
"distro": "run-s build test:build",
|
||||
"build": "rollup -c",
|
||||
"test:build": "",
|
||||
"bump": "npm run build; npm publish"
|
||||
"bump": "npm run build; npm publish",
|
||||
"watch": "watch 'npm run build' ./lib"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
@ -60,9 +61,9 @@
|
|||
"webpack": "^4.41.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@popperjs/core": "^2.9.2",
|
||||
"@popperjs/core": "^2.10.2",
|
||||
"ace": "^1.3.0",
|
||||
"ace-builds": "^1.4.12",
|
||||
"ace-builds": "^1.4.13",
|
||||
"bootstrap": "^5.0.2",
|
||||
"codemirror": "^5.61.1",
|
||||
"css.escape": "^1.5.1",
|
||||
|
@ -71,6 +72,7 @@
|
|||
"min-dom": "^3.1.1",
|
||||
"popper.js": "^1.16.1",
|
||||
"tiny-svg": "^2.2.2",
|
||||
"typescript-eslint": "0.0.1-alpha.0"
|
||||
"typescript-eslint": "0.0.1-alpha.0",
|
||||
"watch": "^1.0.2"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -51,7 +51,8 @@ export default [
|
|||
'css.escape',
|
||||
'min-dash',
|
||||
'min-dom',
|
||||
'tiny-svg'
|
||||
'tiny-svg',
|
||||
'ace-builds/src-noconflict/ace',
|
||||
],
|
||||
plugins: pgl()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue