Skip to content

Commit a673eb5

Browse files
author
BatemaDevelopment
authored
Get Editor to work (#1)
1 parent 5646be4 commit a673eb5

12 files changed

+9082
-0
lines changed

.devcontainer/Dockerfile

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
FROM alpine:3.17
2+
3+
RUN apk update \
4+
&& apk upgrade \
5+
&& apk add --no-cache sudo bash git openjdk17 nodejs npm \
6+
&& npm i -g typescript

.devcontainer/devcontainer.json

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
{
2+
"name": "BatemaDevelopment's Alpine (3.17) NodeJS LTS Dev Container",
3+
"build": {
4+
"dockerfile": "Dockerfile"
5+
},
6+
"hostRequirements": {
7+
"cpus": 4,
8+
"memory": "8gb",
9+
"storage": "32gb"
10+
},
11+
"settings": {
12+
"git.enableSmartCommit": true,
13+
"git.confirmSync": false,
14+
"editor.tabSize": 2,
15+
"git.autofetch": true,
16+
"editor.accessibilitySupport": "off",
17+
"files.autoSave": "afterDelay",
18+
"explorer.confirmDragAndDrop": false,
19+
"explorer.confirmDelete": false,
20+
"files.associations": {
21+
"*.html": "html"
22+
},
23+
"cSpell.language": "en-GB, en-US",
24+
"workbench.editorAssociations": {
25+
"*.zip": "default"
26+
},
27+
"javascript.updateImportsOnFileMove.enabled": "always",
28+
"security.workspace.trust.untrustedFiles": "open",
29+
"git.postCommitCommand": "push",
30+
"remoteHub.commitDirectlyWarning": "off",
31+
"liveshare.presence": true,
32+
"redhat.telemetry.enabled": false,
33+
"workbench.startupEditor": "welcomePage",
34+
"sonarlint.rules": {
35+
"javascript:S125": {
36+
"level": "off"
37+
}
38+
},
39+
"editor.inlineSuggest.enabled": true,
40+
"css.format.spaceAroundSelectorSeparator": true,
41+
"github.copilot.enable": {
42+
"*": true,
43+
"yaml": false,
44+
"plaintext": true,
45+
"markdown": false
46+
},
47+
"swift.backgroundCompilation": true,
48+
"swift.diagnostics": true,
49+
"svelte.enable-ts-plugin": true
50+
}
51+
}

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -102,3 +102,7 @@ dist
102102

103103
# TernJS port file
104104
.tern-port
105+
106+
# User-generated files
107+
.vscode/settings.json
108+
src/bundles/*.bundle.js

CNAME

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
cmcs.batemadevelopment.com

babel.config.cjs

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
require("@babel/core").transformSync("code", {
2+
presets: ["minify"],
3+
comments: false,
4+
minified: true,
5+
compact: true,
6+
retainLines: false,
7+
});

index.html

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<!DOCTYPE html>
2+
<html lang="en-US">
3+
<head>
4+
<meta charset="utf-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=false" />
6+
<meta name="description" content="CodeMirror - C#" />
7+
<meta name="keywords" content="CodeMirror, C#" />
8+
<title>CodeMirror - C#</title>
9+
</head>
10+
11+
<body style="background-color: #212122;">
12+
<script type="module" src="src/bundles/editor.bundle.min.js"></script>
13+
14+
<main>
15+
<div id="editor"></div>
16+
</main>
17+
18+
<footer style="text-align: center; color: #FFF; padding-top: 10px;">
19+
Made with ❤️ by BatemaDevelopment!
20+
</footer>
21+
</body>
22+
</html>

0 commit comments

Comments
 (0)