coc-code-runner 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +27 -0
- package/esbuild.mjs +24 -0
- package/lib/index.js +6491 -0
- package/package.json +114 -0
package/package.json
ADDED
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "coc-code-runner",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "Code Runner for coc.nvim",
|
|
5
|
+
"author": "cyl <a1008611abcd@126.com>",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"main": "lib/index.js",
|
|
8
|
+
"keywords": [
|
|
9
|
+
"coc.nvim"
|
|
10
|
+
],
|
|
11
|
+
"engines": {
|
|
12
|
+
"coc": "^0.0.82"
|
|
13
|
+
},
|
|
14
|
+
"scripts": {
|
|
15
|
+
"watch": "node esbuild.mjs --watch",
|
|
16
|
+
"build": "node esbuild.mjs",
|
|
17
|
+
"prepare": "node esbuild.mjs"
|
|
18
|
+
},
|
|
19
|
+
"devDependencies": {
|
|
20
|
+
"coc.nvim": "^0.0.83-next.18",
|
|
21
|
+
"esbuild": "^0.19.8",
|
|
22
|
+
"typescript": "^5.3.3"
|
|
23
|
+
},
|
|
24
|
+
"activationEvents": [
|
|
25
|
+
"*"
|
|
26
|
+
],
|
|
27
|
+
"contributes": {
|
|
28
|
+
"configuration": {
|
|
29
|
+
"type": "object",
|
|
30
|
+
"title": "coc-code-runner configuration",
|
|
31
|
+
"properties": {
|
|
32
|
+
"coc-code-runner.enabled": {
|
|
33
|
+
"type": "boolean",
|
|
34
|
+
"default": true,
|
|
35
|
+
"description": "Enable coc-code-runner extension"
|
|
36
|
+
},
|
|
37
|
+
"coc-code-runner.executorMap": {
|
|
38
|
+
"type": "object",
|
|
39
|
+
"default": {
|
|
40
|
+
"javascript": "node",
|
|
41
|
+
"java": "cd $dir && javac $fileName && java $fileNameWithoutExt",
|
|
42
|
+
"c": "cd $dir && gcc $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt",
|
|
43
|
+
"zig": "zig run",
|
|
44
|
+
"cpp": "cd $dir && g++ $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt",
|
|
45
|
+
"objective-c": "cd $dir && gcc -framework Cocoa $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt",
|
|
46
|
+
"php": "php",
|
|
47
|
+
"python": "python -u",
|
|
48
|
+
"perl": "perl",
|
|
49
|
+
"perl6": "perl6",
|
|
50
|
+
"ruby": "ruby",
|
|
51
|
+
"go": "go run",
|
|
52
|
+
"lua": "lua",
|
|
53
|
+
"groovy": "groovy",
|
|
54
|
+
"powershell": "powershell -ExecutionPolicy ByPass -File",
|
|
55
|
+
"bat": "cmd /c",
|
|
56
|
+
"shellscript": "bash",
|
|
57
|
+
"sh": "bash",
|
|
58
|
+
"fsharp": "fsi",
|
|
59
|
+
"csharp": "scriptcs",
|
|
60
|
+
"vbscript": "cscript //Nologo",
|
|
61
|
+
"typescript": "ts-node",
|
|
62
|
+
"coffeescript": "coffee",
|
|
63
|
+
"scala": "scala",
|
|
64
|
+
"swift": "swift",
|
|
65
|
+
"julia": "julia",
|
|
66
|
+
"crystal": "crystal",
|
|
67
|
+
"ocaml": "ocaml",
|
|
68
|
+
"r": "Rscript",
|
|
69
|
+
"applescript": "osascript",
|
|
70
|
+
"clojure": "lein exec",
|
|
71
|
+
"haxe": "haxe --cwd $dirWithoutTrailingSlash --run $fileNameWithoutExt",
|
|
72
|
+
"rust": "cd $dir && rustc $fileName && $dir$fileNameWithoutExt",
|
|
73
|
+
"racket": "racket",
|
|
74
|
+
"scheme": "csi -script",
|
|
75
|
+
"ahk": "autohotkey",
|
|
76
|
+
"autoit": "autoit3",
|
|
77
|
+
"dart": "dart",
|
|
78
|
+
"pascal": "cd $dir && fpc $fileName && $dir$fileNameWithoutExt",
|
|
79
|
+
"d": "cd $dir && dmd $fileName && $dir$fileNameWithoutExt",
|
|
80
|
+
"haskell": "runghc",
|
|
81
|
+
"nim": "nim compile --verbosity:0 --hints:off --run",
|
|
82
|
+
"lisp": "sbcl --script",
|
|
83
|
+
"kit": "kitc --run",
|
|
84
|
+
"v": "v run",
|
|
85
|
+
"sass": "sass --style expanded",
|
|
86
|
+
"scss": "scss --style expanded",
|
|
87
|
+
"less": "cd $dir && lessc $fileName $fileNameWithoutExt.css",
|
|
88
|
+
"FortranFreeForm": "cd $dir && gfortran $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt",
|
|
89
|
+
"fortran-modern": "cd $dir && gfortran $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt",
|
|
90
|
+
"fortran_fixed-form": "cd $dir && gfortran $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt",
|
|
91
|
+
"fortran": "cd $dir && gfortran $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt",
|
|
92
|
+
"sml": "cd $dir && sml $fileName",
|
|
93
|
+
"mojo": "mojo run",
|
|
94
|
+
"erlang": "escript",
|
|
95
|
+
"spwn": "spwn build",
|
|
96
|
+
"pkl": "cd $dir && pkl eval -f yaml $fileName -o $fileNameWithoutExt.yaml",
|
|
97
|
+
"gleam": "gleam run -m $fileNameWithoutExt"
|
|
98
|
+
},
|
|
99
|
+
"description": "Set the executor of each language.",
|
|
100
|
+
"scope": "resource"
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
"commands": [
|
|
105
|
+
{
|
|
106
|
+
"command": "coc-code-runner.run",
|
|
107
|
+
"title": "Run Code"
|
|
108
|
+
}
|
|
109
|
+
]
|
|
110
|
+
},
|
|
111
|
+
"dependencies": {
|
|
112
|
+
"vscode-languageserver-protocol": "^3.17.5"
|
|
113
|
+
}
|
|
114
|
+
}
|