Neutralino & new project structure
This commit is contained in:
43
libs/index.js
Normal file
43
libs/index.js
Normal file
@@ -0,0 +1,43 @@
|
||||
import { EditorState, Compartment, Transaction, Annotation } from '@codemirror/state'
|
||||
import { indentWithTab, undo, redo } from '@codemirror/commands'
|
||||
import { EditorView, lineNumbers, highlightActiveLineGutter, highlightSpecialChars, drawSelection, dropCursor, rectangularSelection, crosshairCursor, highlightActiveLine, keymap } from '@codemirror/view'
|
||||
import { foldGutter, indentOnInput, syntaxHighlighting, defaultHighlightStyle, bracketMatching, foldKeymap } from '@codemirror/language'
|
||||
import { history, defaultKeymap, historyKeymap } from '@codemirror/commands'
|
||||
import { highlightSelectionMatches, searchKeymap } from '@codemirror/search'
|
||||
import { closeBrackets, autocompletion, closeBracketsKeymap, completionKeymap } from '@codemirror/autocomplete'
|
||||
import { lintKeymap } from '@codemirror/lint'
|
||||
|
||||
window.$ = {
|
||||
EditorView,
|
||||
Compartment,
|
||||
EditorState,
|
||||
keymap,
|
||||
indentWithTab,
|
||||
lineNumbers,
|
||||
highlightActiveLineGutter,
|
||||
highlightSpecialChars,
|
||||
history,
|
||||
foldGutter,
|
||||
drawSelection,
|
||||
dropCursor,
|
||||
indentOnInput,
|
||||
syntaxHighlighting,
|
||||
bracketMatching,
|
||||
closeBrackets,
|
||||
autocompletion,
|
||||
rectangularSelection,
|
||||
crosshairCursor,
|
||||
highlightActiveLine,
|
||||
highlightSelectionMatches,
|
||||
closeBracketsKeymap,
|
||||
defaultKeymap,
|
||||
searchKeymap,
|
||||
historyKeymap,
|
||||
foldKeymap,
|
||||
completionKeymap,
|
||||
lintKeymap,
|
||||
undo,
|
||||
redo,
|
||||
Transaction,
|
||||
Annotation
|
||||
}
|
||||
13
libs/rollup.config.mjs
Normal file
13
libs/rollup.config.mjs
Normal file
@@ -0,0 +1,13 @@
|
||||
import nodeResolve from "@rollup/plugin-node-resolve";
|
||||
|
||||
export default {
|
||||
input: "./index.js",
|
||||
output: {
|
||||
file: "../build/libs.js",
|
||||
name: '$',
|
||||
format: "iife"
|
||||
},
|
||||
plugins: [
|
||||
nodeResolve()
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user