-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
113 lines (113 loc) · 4.67 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
{
"name": "moonbit-tasks",
"displayName": "Moonbit Tasks",
"description": "Add contributed tasks for moonbit",
"publisher": "PegasusCadence",
"version": "0.12.2024111203",
"icon": "images/extension-icon.png",
"engines": {
"vscode": "^1.80.0"
},
"repository": "https://github.com/pegasusplusus/moonbit-tasks.git",
"categories": [
"Other"
],
"activationEvents": ["workspaceContains:**/Cargo.toml"],
"main": "./out/extension.js",
"contributes": {
"configuration": {
"type": "object",
"title": "Moonbit tasks Settings",
"properties": {
"moonbit-tasks.moonPath": {
"type": "string",
"default": "${workspaceFolder}",
"description": "Set the directory for moon"
},
"moonbit-tasks.scanSubdirectoryForProject": {
"type": "boolean",
"default": true,
"description": "Scan subdirectory for project"
},
"moonbit-tasks.languageHandlerDef.json": {
"type": "string",
"default": "{\"Moonbit\":{\"signatureFileName\":\"moon.mod.json\",\"projectManagerCmd\":\"moon\",\"macroHandler\":null},\"Rust\":{\"signatureFileName\":\"Cargo.toml\",\"projectManagerCmd\":\"cargo\",\"macroHandler\":{\"run\":\"run src/main\",\"coverage\":\"tarpaulin --skip-clean\"}},\"Nim\":{\"signatureFileName\":\"*.nimble\",\"projectManagerCmd\":\"nimble\",\"macroHandler\":{\"run\":\"run\",\"fmt\":\"for /r %f in (*.nim) do ( nimpretty --backup:off %f )\",\"coverage\":\"testament --backend:html --show-times --show-progress --compile-time-tools --nim:tests\"}},\"Cangjie\":{\"signatureFileName\":\"cjpm.toml\",\"projectManagerCmd\":\"cjpm\",\"macroHandler\":{\"run\":\"run\"}},\"Zig\":{\"signatureFileName\":\"build.zig.zon\",\"projectManagerCmd\":\"zig\",\"macroHandler\":{\"run\":\"run src/main.zig\",\"test\":\"test src/main.zig\"}},\"Gleam\":{\"signatureFileName\":\"gleam.toml\",\"projectManagerCmd\":\"gleam\",\"macroHandler\":{\"run\":\"run\",\"fmt\":\"format\"}},\"Go\":{\"signatureFileName\":\"go.mod\",\"projectManagerCmd\":\"go\",\"macroHandler\":null},\"Wa\":{\"signatureFileName\":\"wa.mod\",\"projectManagerCmd\":\"wa\",\"macroHandler\":null},\"Java\":{\"signatureFileName\":\"pom.xml\",\"projectManagerCmd\":\"mvn\",\"macroHandler\":{\"build\":\"compile\"}},\"Npm\":{\"signatureFileName\":\"package.json\",\"projectManagerCmd\":\"npm run\",\"macroHandler\":{\"build\":\"compile\",\"package\":\"compile && vsce package\",\"publish\":\"compile && vsce publish\"}},\"TypeScript\":{\"signatureFileName\":\"tsconfig.json\",\"projectManagerCmd\":\"tsc\",\"macroHandler\":null},\"Swift\":{\"signatureFileName\":\"Package.swift\",\"projectManagerCmd\":\"swift\",\"macroHandler\":{\"run\":\"run\"}},\"C++\":{\"signatureFileName\":\"CMakeLists.txt\",\"projectManagerCmd\":\"cmake\",\"macroHandler\":{\"run\":\"run\", \"build\":\"-S . -B .build&& cmake --build .build\", \"test\":\"-S. -B .build&&cmake --build .build&&ctest --test-dir .build\"}}}",
"description": "Define cmd for language"
}
}
},
"taskDefinitions": [
{
"type": "moon",
"required": [
"script"
],
"properties": {
"script": {
"type": "string",
"description": "moonbit: moon tasks"
}
}
}
],
"tasks": [
{
"label": "moonbit test task",
"type": "shell",
"task": "run",
"command": "moon test",
"args": [
"Hello from moonbit test task!"
],
"group": "build"
},
{
"label": "moonbit build task",
"type": "shell",
"task": "run",
"command": "moon build",
"args": [
"Hello from moonbit build task!"
],
"group": "build"
}
],
"views": {
"explorer": [
{
"id": "mySmartTasksCustomView",
"name": "Smart Tasks"
}
]
},
"commands": [
{
"command": "mySmartTasksCustomView.refresh",
"title": "Refresh My Smart Tasks View"
},
{
"command": "moonbit-tasks.onViewItemClick",
"title": "On View Item Click"
}
]
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src",
"test": "vscode-test"
},
"devDependencies": {
"@types/mocha": "^10.0.9",
"@types/node": "22.8.1",
"@types/vscode": "^1.80.0",
"@typescript-eslint/eslint-plugin": "^8.10.0",
"@typescript-eslint/parser": "^8.7.0",
"@vscode/test-cli": "^0.0.10",
"@vscode/test-electron": "^2.4.1",
"eslint": "^9.13.0",
"typescript": "^5.6.3"
}
}