-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathtemplate.json
executable file
·157 lines (155 loc) · 4.73 KB
/
template.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
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
{
"$schema": "http://json.schemastore.org/template",
"author": "McNeel",
"classifications": [
"Rhino",
"Grasshopper2",
"GH2"
],
"name": "Grasshopper2 PlugIn (WIP)",
"description": "Build Grasshopper2 components for Rhino 3D in C#",
"identity": "Grasshopper2.Component.CS",
"groupIdentity": "Grasshopper2.PlugIn",
"precedence": 100,
"defaultName": "MyGrasshopper2Components",
"shortName": "gh2",
"tags": {
"language": "C#",
"type": "project"
},
"sourceName": "MyGrasshopper.1",
"preferNameDirectory": true,
"symbols": {
"IncludeSample": {
"type": "parameter",
"description": "Include code sample.",
"dataType": "bool",
"defaultValue": "false"
},
"RhinoVersion": {
"type": "parameter",
"description": "Version of Rhino",
"datatype": "choice",
"defaultValue": "8",
"choices": [
{
"choice": "8",
"description": "Version 8"
}
]
},
"BuildYak": {
"type": "parameter",
"description": "Include target to build yak package(s) for your plugin",
"datatype": "bool",
"defaultValue": "false"
},
"IncludeVSCode": {
"type": "parameter",
"description": "Include tasks.json and launch.json to build/debug in VS Code",
"datatype": "bool",
"defaultValue": "true"
},
"AddonDisplayName": {
"type": "parameter",
"description": "Display name of your Grasshopper2 assembly",
"datatype": "text",
"replaces": "MyGrasshopper.1 Info"
},
"ComponentClassName": {
"type": "parameter",
"description": "Name of the component class",
"datatype": "text",
"replaces": "MyGrasshopper__1Component",
"fileRename": "MyGrasshopper__1Component"
},
"ComponentName": {
"type": "parameter",
"description": "Display name of the component",
"datatype": "text",
"replaces": "MyGrasshopper.1 Component"
},
"ComponentInfo": {
"type": "parameter",
"description": "Description of the component",
"replaces": "ComponentInfo",
"defaultValue": "Description of component"
},
"ComponentChapter": {
"type": "parameter",
"description": "Chapter of the component",
"replaces": "ComponentChapter",
"defaultValue": "Chapter"
},
"ComponentSection": {
"type": "parameter",
"description": "Section of the component",
"replaces": "ComponentSection",
"defaultValue": "Section"
},
"UseWpf": {
"type": "parameter",
"description": "Enable to use WPF (Windows only)",
"datatype": "bool",
"defaultValue": "false"
},
"UseWinForms": {
"type": "parameter",
"description": "Enable the use of Windows Forms",
"datatype": "bool",
"defaultValue": "false"
},
"UseWindowsDesktop": {
"type": "computed",
"value": "UseWpf || UseWinForms"
},
"HostIdentifier": {
"type": "bind",
"binding": "HostIdentifier"
}
},
"forms": {
"JsonStringEncode": {
"identifier": "replace",
"pattern": "\\\\",
"replacement": "\\\\"
}
},
"sources": [
{
"modifiers": [
{
"condition": "!IncludeVSCode",
"exclude": [ ".vscode/*.*" ]
},
{
"condition": "ComponentClassName == 'MyGrasshopper__1Component'",
"rename": {
"MyGrasshopper__1Component.cs": "MyGrasshopper.1Component.cs"
}
}
]
}
],
"primaryOutputs": [
{ "path": "MyGrasshopper.1.csproj" },
{ "path": "MyGrasshopper__1Component.cs" }
],
"guids": [
"ee4e2b39-d96b-4e4c-8f9d-9b6561e61b64",
"e79cd2b5-cb9c-4d08-93ec-446cc1f6d923",
"cd826b9b-8dbe-4c31-aac1-6fc7ea2bcfb7"
],
"postActions": [
{
"condition": "(HostIdentifier != \"dotnetcli\" && HostIdentifier != \"dotnetcli-preview\")",
"description": "Opens the command in the editor",
"manualInstructions": [],
"actionId": "84C0DA21-51C8-4541-9940-6CA19AF04EE6",
"args": {
"files": "1"
},
"continueOnError": true
}
]
}