-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
164 lines (164 loc) · 4.37 KB
/
Copy pathpackage.json
File metadata and controls
164 lines (164 loc) · 4.37 KB
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
{
"name": "behaviortreeg",
"displayName": "BehaviorTreeG",
"description": "Visual behavior tree editor for tgstation's implementation of behavior trees",
"version": "0.2.4",
"icon": "media/bt-editor-logo.png",
"license": "GPL-3.0",
"publisher": "behaviortreeg",
"repository": {
"type": "git",
"url": "https://github.com/CabinetOnFire/BehaviorTreeG"
},
"engines": {
"vscode": "^1.85.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onLanguage:dm",
"onLanguage:json"
],
"main": "./dist/extension.js",
"contributes": {
"customEditors": [
{
"viewType": "btEditor.visualEditor",
"displayName": "BT Visual Editor",
"selector": [
{
"filenamePattern": "*.bt.json"
}
],
"priority": "default"
}
],
"commands": [
{
"command": "bt-editor.open",
"title": "Open BT Editor",
"icon": "$(symbol-event)"
},
{
"command": "bt-editor.open-json",
"title": "Open in BT Editor",
"icon": "$(go-to-file)"
},
{
"command": "bt-editor.open-controller",
"title": "Open in BT Editor (New Window)",
"icon": "$(go-to-file)"
},
{
"command": "bt-editor.refresh-browser",
"title": "Refresh Behavior Tree Browser",
"icon": "$(refresh)"
},
{
"command": "bt-editor.create-bt-json",
"title": "Create New Behavior Tree JSON",
"icon": "$(add)"
}
],
"viewsContainers": {
"activitybar": [
{
"id": "bt-editor-activitybar",
"title": "BT Editor",
"icon": "media/bt-icon.svg"
}
]
},
"views": {
"bt-editor-activitybar": [
{
"id": "bt-editor.treeView",
"name": "Open BT Editor",
"type": "tree"
},
{
"id": "bt-editor.browserView",
"name": "Subtrees & Controllers",
"type": "tree"
}
]
},
"viewsWelcome": [
{
"view": "bt-editor.treeView",
"contents": "Open a .bt.json or .dm file to get started.\n[Open BT Editor](command:bt-editor.open)"
},
{
"view": "bt-editor.browserView",
"contents": "No behavior trees found in workspace.\n[Scan Workspace](command:bt-editor.refresh-browser)"
}
],
"menus": {
"editor/title": [
{
"command": "bt-editor.open",
"when": "resourceLangId == dm || resourceExtname == .bt.json",
"group": "navigation"
}
],
"view/title": [
{
"command": "bt-editor.open",
"when": "view == bt-editor.treeView && (resourceLangId == dm || resourceExtname == .bt.json)",
"group": "navigation"
},
{
"command": "bt-editor.refresh-browser",
"when": "view == bt-editor.browserView",
"group": "navigation"
}
],
"view/item/context": [
{
"command": "bt-editor.open-json",
"when": "viewItem == btEntry || viewItem == btEntryInherited",
"group": "inline"
},
{
"command": "bt-editor.open-controller",
"when": "viewItem == btEntryController || viewItem == btEntryControllerInherited || viewItem == btEntryControllerNoJson",
"group": "inline"
},
{
"command": "bt-editor.create-bt-json",
"when": "viewItem == btEntryInherited || viewItem == btEntryControllerInherited",
"group": "1_actions"
}
]
}
},
"scripts": {
"compile": "tsc --noEmit && node .esbuild.config.js",
"watch": "node .esbuild.config.js --watch",
"test": "jest",
"lint": "eslint src media/editor shared --ext .ts,.tsx",
"vscode:prepublish": "npm run compile"
},
"dependencies": {
"@dagrejs/dagre": "^1.1.4",
"@xyflow/react": "^12.3.6",
"react": "^19.0.0",
"react-dom": "^19.0.0"
},
"devDependencies": {
"@types/jest": "^29.5.12",
"@types/node": "^25.9.1",
"@types/react": "^19.0.0",
"@types/react-dom": "^19.0.0",
"@types/vscode": "^1.85.0",
"@typescript-eslint/eslint-plugin": "^7.0.0",
"@typescript-eslint/parser": "^7.0.0",
"esbuild": "^0.25.0",
"eslint": "^8.57.0",
"jest": "^29.7.0",
"prettier": "^3.2.5",
"ts-jest": "^29.2.0",
"typescript": "^5.4.0"
}
}