Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
147 lines (147 loc) · 3.93 KB
/
Copy pathpackage.json
File metadata and controls
147 lines (147 loc) · 3.93 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
{
"name": "openswiftui-preview",
"displayName": "OpenSwiftUI Preview",
"description": "Run interactive OpenSwiftUI previews in native macOS and iOS Simulator windows.",
"version": "0.1.2",
"publisher": "OpenSwiftUIProject",
"license": "Apache-2.0",
"repository": {
"type": "git",
"url": "https://github.com/OpenSwiftUIProject/vscode-openswiftui.git"
},
"homepage": "https://github.com/OpenSwiftUIProject/vscode-openswiftui#readme",
"bugs": {
"url": "https://github.com/OpenSwiftUIProject/vscode-openswiftui/issues"
},
"keywords": [
"openswiftui",
"swift",
"preview",
"ios",
"macos"
],
"icon": "media/icon.png",
"engines": {
"vscode": "^1.88.0"
},
"categories": [
"Other"
],
"main": "./dist/src/extension.js",
"extensionKind": [
"workspace"
],
"extensionDependencies": [
"swiftlang.swift-vscode"
],
"activationEvents": [
"workspaceContains:.vscode/openswiftui-previews.json",
"onLanguage:swift"
],
"capabilities": {
"untrustedWorkspaces": {
"supported": false,
"description": "Preview runs build commands and native application code from this workspace."
},
"virtualWorkspaces": {
"supported": false,
"description": "Preview requires a local Xcode project and native application host."
}
},
"contributes": {
"commands": [
{
"command": "openswiftui.preview.run",
"title": "Run Preview",
"category": "OpenSwiftUI",
"enablement": "isWorkspaceTrusted"
},
{
"command": "openswiftui.preview.rebuild",
"title": "Rebuild Preview",
"category": "OpenSwiftUI",
"enablement": "isWorkspaceTrusted"
},
{
"command": "openswiftui.preview.stop",
"title": "Stop Preview",
"category": "OpenSwiftUI"
},
{
"command": "openswiftui.preview.configure",
"title": "Configure Previews",
"category": "OpenSwiftUI"
},
{
"command": "openswiftui.preview.logs",
"title": "Show Preview Log",
"category": "OpenSwiftUI"
}
],
"views": {
"openswiftui-preview": [
{
"id": "openswiftui.previews",
"name": "Current File",
"when": "isWorkspaceTrusted"
}
]
},
"viewsWelcome": [
{
"view": "openswiftui.previews",
"contents": "Open a Swift file with #Preview or PreviewProvider declarations to see its previews.\n[Run Preview](command:openswiftui.preview.run)"
}
],
"menus": {
"view/title": [
{
"command": "openswiftui.preview.run",
"when": "view == openswiftui.previews",
"group": "navigation@1"
},
{
"command": "openswiftui.preview.stop",
"when": "view == openswiftui.previews",
"group": "navigation@2"
},
{
"command": "openswiftui.preview.logs",
"when": "view == openswiftui.previews",
"group": "navigation@3"
}
]
},
"jsonValidation": [
{
"fileMatch": "**/.vscode/openswiftui-previews.json",
"url": "./schemas/previews.schema.json"
}
],
"viewsContainers": {
"activitybar": [
{
"id": "openswiftui-preview",
"title": "Preview",
"icon": "media/preview.svg"
}
]
}
},
"scripts": {
"compile": "tsc -p .",
"watch": "tsc -w -p .",
"test": "npm run compile && node --test dist/test/*.test.js",
"test:extension": "npm run compile && node dist/test/runExtensionTests.js",
"vscode:prepublish": "npm run compile",
"package": "vsce package --no-dependencies",
"test:automatic": "npm run compile && node dist/test/automaticIntegration.js"
},
"devDependencies": {
"@types/node": "22.18.0",
"@types/vscode": "1.88.0",
"@vscode/test-electron": "2.5.2",
"@vscode/vsce": "3.6.0",
"typescript": "5.9.3"
}
}