Neutralino & new project structure

This commit is contained in:
2023-12-23 17:03:28 -05:00
parent ebccf275a7
commit 4879f5a7cf
13 changed files with 159 additions and 10 deletions

43
libs/index.js Normal file
View 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
View 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()
]
}