microsoft/typespec

Public

mirrored from https://github.com/microsoft/typespecAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
copilot/fix-8100

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

packages/compiler/templates/scaffolding.json

203lines · modecode

1{
2 "rest": {
3 "title": "Generic REST API",
4 "description": "Create a project representing a generic REST API service.",
5 "compilerVersion": "1.2.1",
6 "libraries": [
7 "@typespec/http",
8 "@typespec/rest",
9 "@typespec/openapi",
10 "@typespec/openapi3"
11 ],
12 "emitters": {
13 "@typespec/openapi3": {
14 "selected": true,
15 "label": "OpenAPI 3.1 document",
16 "options": {
17 "emitter-output-dir": "{output-dir}/schema",
18 "openapi-versions": [
19 "3.1.0"
20 ]
21 }
22 },
23 "@typespec/http-client-csharp": {
24 "label": "C# client",
25 "options": {
26 "emitter-output-dir": "{output-dir}/clients/csharp"
27 }
28 },
29 "@typespec/http-client-java": {
30 "label": "Java client",
31 "options": {
32 "emitter-output-dir": "{output-dir}/clients/java"
33 }
34 },
35 "@typespec/http-client-js": {
36 "label": "JavaScript client",
37 "options": {
38 "emitter-output-dir": "{output-dir}/clients/js"
39 }
40 },
41 "@typespec/http-client-python": {
42 "label": "Python client",
43 "options": {
44 "emitter-output-dir": "{output-dir}/clients/python"
45 }
46 },
47 "@typespec/http-server-csharp": {
48 "label": "C# server stubs",
49 "options": {
50 "emitter-output-dir": "{output-dir}/server/aspnet"
51 },
52 "message": "\n\tGenerated ASP.Net services require dotnet 9:\n\thttps://dotnet.microsoft.com/download \n\n\tCreate an ASP.Net service project for your TypeSpec:\n\t> npx hscs-scaffold . --use-swaggerui --overwrite\n\n\tMore information on getting started:\n\thttps://aka.ms/tsp/hscs/start\n "
53 },
54 "@typespec/http-server-js": {
55 "label": "JavaScript server stubs",
56 "options": {
57 "emitter-output-dir": "{output-dir}/server/js"
58 },
59 "message": "\n\tGenerated JavaScript services require a service runtime:\n\thttps://nodejs.org/download \n\n\tCreate a JavaScript service project for your TypeSpec:\n\t> npx hsjs-scaffold\n\n\tMore information on getting started:\n\thttps://aka.ms/tsp/hsjs/start\n"
60 }
61 },
62 "files": [
63 {
64 "path": "rest/main.tsp",
65 "destination": "main.tsp"
66 }
67 ]
68 },
69 "library-ts": {
70 "target": "library",
71 "title": "TypeSpec library",
72 "description": "Build your own TypeSpec library with custom types, decorators or linters.",
73 "compilerVersion": "1.2.1",
74 "libraries": [],
75 "files": [
76 {
77 "destination": "main.tsp",
78 "skipGeneration": true
79 },
80 {
81 "destination": "tspconfig.yaml",
82 "skipGeneration": true
83 },
84 {
85 "path": "library-ts/eslint.config.js",
86 "destination": "eslint.config.js"
87 },
88 {
89 "path": "library-ts/lib/decorators.tsp.mu",
90 "destination": "lib/decorators.tsp"
91 },
92 {
93 "path": "library-ts/lib/main.tsp",
94 "destination": "lib/main.tsp"
95 },
96 {
97 "path": "library-ts/package.json",
98 "destination": "package.json"
99 },
100 {
101 "path": "library-ts/prettierrc.yaml",
102 "destination": "prettierrc.yaml"
103 },
104 {
105 "path": "library-ts/src/decorators.ts",
106 "destination": "src/decorators.ts"
107 },
108 {
109 "path": "library-ts/src/index.ts",
110 "destination": "src/index.ts"
111 },
112 {
113 "path": "library-ts/src/lib.ts",
114 "destination": "src/lib.ts"
115 },
116 {
117 "path": "library-ts/src/linter.ts",
118 "destination": "src/linter.ts"
119 },
120 {
121 "path": "library-ts/src/rules/no-interfaces.rule.ts",
122 "destination": "src/rules/no-interfaces.rule.ts"
123 },
124 {
125 "path": "library-ts/src/testing/index.ts.mu",
126 "destination": "src/testing/index.ts"
127 },
128 {
129 "path": "library-ts/test/decorators.test.ts.mu",
130 "destination": "test/decorators.test.ts"
131 },
132 {
133 "path": "library-ts/test/rules/no-interfaces.rule.test.ts",
134 "destination": "test/rules/no-interfaces.rule.test.ts"
135 },
136 {
137 "path": "library-ts/test/test-host.ts.mu",
138 "destination": "test/test-host.ts"
139 },
140 {
141 "path": "library-ts/tsconfig.json",
142 "destination": "tsconfig.json"
143 }
144 ]
145 },
146 "emitter-ts": {
147 "target": "library",
148 "title": "TypeSpec emitter",
149 "description": "Create a new package that emits artifacts from TypeSpec.",
150 "compilerVersion": "1.2.1",
151 "libraries": [],
152 "files": [
153 {
154 "destination": "main.tsp",
155 "skipGeneration": true
156 },
157 {
158 "destination": "tspconfig.yaml",
159 "skipGeneration": true
160 },
161 {
162 "path": "emitter-ts/eslint.config.js",
163 "destination": "eslint.config.js"
164 },
165 {
166 "path": "emitter-ts/package.json",
167 "destination": "package.json"
168 },
169 {
170 "path": "emitter-ts/prettierrc.yaml",
171 "destination": "prettierrc.yaml"
172 },
173 {
174 "path": "emitter-ts/src/emitter.ts",
175 "destination": "src/emitter.ts"
176 },
177 {
178 "path": "emitter-ts/src/index.ts",
179 "destination": "src/index.ts"
180 },
181 {
182 "path": "emitter-ts/src/lib.ts",
183 "destination": "src/lib.ts"
184 },
185 {
186 "path": "emitter-ts/src/testing/index.ts.mu",
187 "destination": "src/testing/index.ts"
188 },
189 {
190 "path": "emitter-ts/test/hello.test.ts",
191 "destination": "test/hello.test.ts"
192 },
193 {
194 "path": "emitter-ts/test/test-host.ts.mu",
195 "destination": "test/test-host.ts"
196 },
197 {
198 "path": "emitter-ts/tsconfig.json",
199 "destination": "tsconfig.json"
200 }
201 ]
202 }
203}