@alloy-js/csharp 0.21.0-dev.19 → 0.21.0-dev.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/components/csproj-file/csproj-file.d.ts +15 -0
- package/dist/src/components/csproj-file/csproj-file.d.ts.map +1 -0
- package/dist/src/components/csproj-file/csproj-file.js +24 -0
- package/dist/src/components/csproj-file/csproj-file.js.map +1 -0
- package/dist/src/components/csproj-file/csproj-file.test.d.ts +2 -0
- package/dist/src/components/csproj-file/csproj-file.test.d.ts.map +1 -0
- package/dist/src/components/csproj-file/csproj-file.test.js +21 -0
- package/dist/src/components/csproj-file/csproj-file.test.js.map +1 -0
- package/dist/src/components/index.d.ts +1 -1
- package/dist/src/components/index.d.ts.map +1 -1
- package/dist/src/components/index.js +1 -1
- package/dist/src/components/index.js.map +1 -1
- package/dist/src/components/stc/index.d.ts +0 -1
- package/dist/src/components/stc/index.d.ts.map +1 -1
- package/dist/src/components/stc/index.js +0 -1
- package/dist/src/components/stc/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -1
- package/src/components/csproj-file/csproj-file.test.tsx +19 -0
- package/src/components/csproj-file/csproj-file.tsx +32 -0
- package/src/components/index.ts +1 -1
- package/src/components/stc/index.ts +0 -1
- package/temp/api.json +176 -291
- package/tsdoc.json +4 -0
- package/dist/src/components/ProjectDirectory.d.ts +0 -12
- package/dist/src/components/ProjectDirectory.d.ts.map +0 -1
- package/dist/src/components/ProjectDirectory.js +0 -47
- package/dist/src/components/ProjectDirectory.js.map +0 -1
- package/dist/test/project-directory.test.d.ts +0 -2
- package/dist/test/project-directory.test.d.ts.map +0 -1
- package/dist/test/project-directory.test.js +0 -133
- package/dist/test/project-directory.test.js.map +0 -1
- package/src/components/ProjectDirectory.tsx +0 -56
- package/test/project-directory.test.tsx +0 -121
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alloy-js/csharp",
|
|
3
|
-
"version": "0.21.0-dev.
|
|
3
|
+
"version": "0.21.0-dev.20",
|
|
4
4
|
"description": "Alloy components for CSharp language.",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
"license": "MIT",
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@alloy-js/core": "~0.20.0 || >= 0.21.0-dev.8",
|
|
33
|
+
"@alloy-js/msbuild": "~0.20.0 || >= 0.20.1-dev.1",
|
|
33
34
|
"change-case": "^5.4.4",
|
|
34
35
|
"marked": "^16.1.1",
|
|
35
36
|
"pathe": "^2.0.3"
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { expect, it } from "vitest";
|
|
2
|
+
import { CsprojFile } from "./csproj-file.jsx";
|
|
3
|
+
|
|
4
|
+
it("create empty .csproj file", () => {
|
|
5
|
+
expect(<CsprojFile path={"foo.csproj"}>{"<!-- content -->"}</CsprojFile>)
|
|
6
|
+
.toRenderTo(`
|
|
7
|
+
<Project Sdk="Microsoft.NET.Sdk"><!-- content --></Project>
|
|
8
|
+
`);
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
it("set different sdk", () => {
|
|
12
|
+
expect(
|
|
13
|
+
<CsprojFile path={"foo.csproj"} sdk="Microsoft.NET.Sdk.Web">
|
|
14
|
+
{"<!-- content -->"}
|
|
15
|
+
</CsprojFile>,
|
|
16
|
+
).toRenderTo(`
|
|
17
|
+
<Project Sdk="Microsoft.NET.Sdk.Web"><!-- content --></Project>
|
|
18
|
+
`);
|
|
19
|
+
});
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Children, SourceFile } from "@alloy-js/core";
|
|
2
|
+
import { Project } from "@alloy-js/msbuild/components";
|
|
3
|
+
|
|
4
|
+
export type CSharpProjectSdk =
|
|
5
|
+
| "Microsoft.NET.Sdk"
|
|
6
|
+
| "Microsoft.NET.Sdk.Web"
|
|
7
|
+
| "Microsoft.NET.Sdk.Worker"
|
|
8
|
+
| "Microsoft.NET.Sdk.Razor"
|
|
9
|
+
| "Microsoft.NET.Sdk.BlazorWebAssembly"
|
|
10
|
+
| "Aspire.AppHost.Sdk"
|
|
11
|
+
| "MSTest.Sdk";
|
|
12
|
+
|
|
13
|
+
export interface CsprojProps {
|
|
14
|
+
path: `${string}.csproj`;
|
|
15
|
+
/**
|
|
16
|
+
* Project SDK https://learn.microsoft.com/en-us/dotnet/core/project-sdk/overview
|
|
17
|
+
* @default "Microsoft.NET.Sdk"
|
|
18
|
+
*/
|
|
19
|
+
sdk?: CSharpProjectSdk;
|
|
20
|
+
|
|
21
|
+
/** Content inside <project> */
|
|
22
|
+
children?: Children;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/** Create a .csproj file */
|
|
26
|
+
export function CsprojFile(props: CsprojProps) {
|
|
27
|
+
return (
|
|
28
|
+
<SourceFile path={props.path} filetype="xml" tabWidth={4}>
|
|
29
|
+
<Project Sdk={props.sdk ?? "Microsoft.NET.Sdk"}>{props.children}</Project>
|
|
30
|
+
</SourceFile>
|
|
31
|
+
);
|
|
32
|
+
}
|
package/src/components/index.ts
CHANGED
|
@@ -2,6 +2,7 @@ export * from "./access-expression/access-expression.jsx";
|
|
|
2
2
|
export * from "./attributes/attributes.jsx";
|
|
3
3
|
export * from "./class/declaration.jsx";
|
|
4
4
|
export * from "./constructor/constructor.jsx";
|
|
5
|
+
export * from "./csproj-file/csproj-file.jsx";
|
|
5
6
|
export * from "./Declaration.js";
|
|
6
7
|
export * from "./doc/comment.jsx";
|
|
7
8
|
export * from "./doc/from-markdown.jsx";
|
|
@@ -19,7 +20,6 @@ export * from "./method/method.jsx";
|
|
|
19
20
|
export * from "./Name.js";
|
|
20
21
|
export { Namespace, type NamespaceProps } from "./namespace/namespace.jsx";
|
|
21
22
|
export * from "./parameters/parameters.jsx";
|
|
22
|
-
export * from "./ProjectDirectory.js";
|
|
23
23
|
export * from "./property/property.jsx";
|
|
24
24
|
export * from "./record/declaration.js";
|
|
25
25
|
export * from "./Reference.js";
|
|
@@ -9,6 +9,5 @@ export const EnumDeclaration = core.stc(base.EnumDeclaration);
|
|
|
9
9
|
export const EnumMember = core.stc(base.EnumMember);
|
|
10
10
|
export const Parameter = core.stc(base.Parameter);
|
|
11
11
|
export const Parameters = core.stc(base.Parameters);
|
|
12
|
-
export const ProjectDirectory = core.stc(base.ProjectDirectory);
|
|
13
12
|
export const UsingDirective = core.stc(base.Usings);
|
|
14
13
|
export const StructDeclaration = core.stc(base.StructDeclaration);
|
package/temp/api.json
CHANGED
|
@@ -115,48 +115,14 @@
|
|
|
115
115
|
"syntaxKind": "modifier"
|
|
116
116
|
},
|
|
117
117
|
{
|
|
118
|
-
"tagName": "@
|
|
118
|
+
"tagName": "@reactive",
|
|
119
119
|
"syntaxKind": "modifier"
|
|
120
120
|
},
|
|
121
121
|
{
|
|
122
|
-
"tagName": "@
|
|
122
|
+
"tagName": "@default",
|
|
123
123
|
"syntaxKind": "block"
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
"tagName": "@preapproved",
|
|
127
|
-
"syntaxKind": "modifier"
|
|
128
124
|
}
|
|
129
125
|
],
|
|
130
|
-
"supportForTags": {
|
|
131
|
-
"@alpha": true,
|
|
132
|
-
"@beta": true,
|
|
133
|
-
"@defaultValue": true,
|
|
134
|
-
"@decorator": true,
|
|
135
|
-
"@deprecated": true,
|
|
136
|
-
"@eventProperty": true,
|
|
137
|
-
"@example": true,
|
|
138
|
-
"@experimental": true,
|
|
139
|
-
"@inheritDoc": true,
|
|
140
|
-
"@internal": true,
|
|
141
|
-
"@label": true,
|
|
142
|
-
"@link": true,
|
|
143
|
-
"@override": true,
|
|
144
|
-
"@packageDocumentation": true,
|
|
145
|
-
"@param": true,
|
|
146
|
-
"@privateRemarks": true,
|
|
147
|
-
"@public": true,
|
|
148
|
-
"@readonly": true,
|
|
149
|
-
"@remarks": true,
|
|
150
|
-
"@returns": true,
|
|
151
|
-
"@sealed": true,
|
|
152
|
-
"@see": true,
|
|
153
|
-
"@throws": true,
|
|
154
|
-
"@typeParam": true,
|
|
155
|
-
"@virtual": true,
|
|
156
|
-
"@betaDocumentation": true,
|
|
157
|
-
"@internalRemarks": true,
|
|
158
|
-
"@preapproved": true
|
|
159
|
-
},
|
|
160
126
|
"reportUnsupportedHtmlElements": false
|
|
161
127
|
}
|
|
162
128
|
},
|
|
@@ -4558,6 +4524,32 @@
|
|
|
4558
4524
|
},
|
|
4559
4525
|
"implementsTokenRanges": []
|
|
4560
4526
|
},
|
|
4527
|
+
{
|
|
4528
|
+
"kind": "TypeAlias",
|
|
4529
|
+
"canonicalReference": "@alloy-js/csharp!CSharpProjectSdk:type",
|
|
4530
|
+
"docComment": "",
|
|
4531
|
+
"excerptTokens": [
|
|
4532
|
+
{
|
|
4533
|
+
"kind": "Content",
|
|
4534
|
+
"text": "export type CSharpProjectSdk = "
|
|
4535
|
+
},
|
|
4536
|
+
{
|
|
4537
|
+
"kind": "Content",
|
|
4538
|
+
"text": "\"Microsoft.NET.Sdk\" | \"Microsoft.NET.Sdk.Web\" | \"Microsoft.NET.Sdk.Worker\" | \"Microsoft.NET.Sdk.Razor\" | \"Microsoft.NET.Sdk.BlazorWebAssembly\" | \"Aspire.AppHost.Sdk\" | \"MSTest.Sdk\""
|
|
4539
|
+
},
|
|
4540
|
+
{
|
|
4541
|
+
"kind": "Content",
|
|
4542
|
+
"text": ";"
|
|
4543
|
+
}
|
|
4544
|
+
],
|
|
4545
|
+
"fileUrlPath": "src/components/csproj-file/csproj-file.tsx",
|
|
4546
|
+
"releaseTag": "Public",
|
|
4547
|
+
"name": "CSharpProjectSdk",
|
|
4548
|
+
"typeTokenRange": {
|
|
4549
|
+
"startIndex": 1,
|
|
4550
|
+
"endIndex": 2
|
|
4551
|
+
}
|
|
4552
|
+
},
|
|
4561
4553
|
{
|
|
4562
4554
|
"kind": "Class",
|
|
4563
4555
|
"canonicalReference": "@alloy-js/csharp!CSharpScope:class",
|
|
@@ -5795,6 +5787,154 @@
|
|
|
5795
5787
|
}
|
|
5796
5788
|
]
|
|
5797
5789
|
},
|
|
5790
|
+
{
|
|
5791
|
+
"kind": "Function",
|
|
5792
|
+
"canonicalReference": "@alloy-js/csharp!CsprojFile:function(1)",
|
|
5793
|
+
"docComment": "/**\n * Create a .csproj file\n */\n",
|
|
5794
|
+
"excerptTokens": [
|
|
5795
|
+
{
|
|
5796
|
+
"kind": "Content",
|
|
5797
|
+
"text": "export declare function CsprojFile(props: "
|
|
5798
|
+
},
|
|
5799
|
+
{
|
|
5800
|
+
"kind": "Reference",
|
|
5801
|
+
"text": "CsprojProps",
|
|
5802
|
+
"canonicalReference": "@alloy-js/csharp!CsprojProps:interface"
|
|
5803
|
+
},
|
|
5804
|
+
{
|
|
5805
|
+
"kind": "Content",
|
|
5806
|
+
"text": "): "
|
|
5807
|
+
},
|
|
5808
|
+
{
|
|
5809
|
+
"kind": "Reference",
|
|
5810
|
+
"text": "Children",
|
|
5811
|
+
"canonicalReference": "@alloy-js/core!Children:type"
|
|
5812
|
+
},
|
|
5813
|
+
{
|
|
5814
|
+
"kind": "Content",
|
|
5815
|
+
"text": ";"
|
|
5816
|
+
}
|
|
5817
|
+
],
|
|
5818
|
+
"fileUrlPath": "src/components/csproj-file/csproj-file.tsx",
|
|
5819
|
+
"returnTypeTokenRange": {
|
|
5820
|
+
"startIndex": 3,
|
|
5821
|
+
"endIndex": 4
|
|
5822
|
+
},
|
|
5823
|
+
"releaseTag": "Public",
|
|
5824
|
+
"overloadIndex": 1,
|
|
5825
|
+
"parameters": [
|
|
5826
|
+
{
|
|
5827
|
+
"parameterName": "props",
|
|
5828
|
+
"parameterTypeTokenRange": {
|
|
5829
|
+
"startIndex": 1,
|
|
5830
|
+
"endIndex": 2
|
|
5831
|
+
},
|
|
5832
|
+
"isOptional": false
|
|
5833
|
+
}
|
|
5834
|
+
],
|
|
5835
|
+
"name": "CsprojFile"
|
|
5836
|
+
},
|
|
5837
|
+
{
|
|
5838
|
+
"kind": "Interface",
|
|
5839
|
+
"canonicalReference": "@alloy-js/csharp!CsprojProps:interface",
|
|
5840
|
+
"docComment": "",
|
|
5841
|
+
"excerptTokens": [
|
|
5842
|
+
{
|
|
5843
|
+
"kind": "Content",
|
|
5844
|
+
"text": "export interface CsprojProps "
|
|
5845
|
+
}
|
|
5846
|
+
],
|
|
5847
|
+
"fileUrlPath": "src/components/csproj-file/csproj-file.tsx",
|
|
5848
|
+
"releaseTag": "Public",
|
|
5849
|
+
"name": "CsprojProps",
|
|
5850
|
+
"preserveMemberOrder": false,
|
|
5851
|
+
"members": [
|
|
5852
|
+
{
|
|
5853
|
+
"kind": "PropertySignature",
|
|
5854
|
+
"canonicalReference": "@alloy-js/csharp!CsprojProps#children:member",
|
|
5855
|
+
"docComment": "/**\n * Content inside <project>\n */\n",
|
|
5856
|
+
"excerptTokens": [
|
|
5857
|
+
{
|
|
5858
|
+
"kind": "Content",
|
|
5859
|
+
"text": "children?: "
|
|
5860
|
+
},
|
|
5861
|
+
{
|
|
5862
|
+
"kind": "Reference",
|
|
5863
|
+
"text": "Children",
|
|
5864
|
+
"canonicalReference": "@alloy-js/core!Children:type"
|
|
5865
|
+
},
|
|
5866
|
+
{
|
|
5867
|
+
"kind": "Content",
|
|
5868
|
+
"text": ";"
|
|
5869
|
+
}
|
|
5870
|
+
],
|
|
5871
|
+
"isReadonly": false,
|
|
5872
|
+
"isOptional": true,
|
|
5873
|
+
"releaseTag": "Public",
|
|
5874
|
+
"name": "children",
|
|
5875
|
+
"propertyTypeTokenRange": {
|
|
5876
|
+
"startIndex": 1,
|
|
5877
|
+
"endIndex": 2
|
|
5878
|
+
}
|
|
5879
|
+
},
|
|
5880
|
+
{
|
|
5881
|
+
"kind": "PropertySignature",
|
|
5882
|
+
"canonicalReference": "@alloy-js/csharp!CsprojProps#path:member",
|
|
5883
|
+
"docComment": "",
|
|
5884
|
+
"excerptTokens": [
|
|
5885
|
+
{
|
|
5886
|
+
"kind": "Content",
|
|
5887
|
+
"text": "path: "
|
|
5888
|
+
},
|
|
5889
|
+
{
|
|
5890
|
+
"kind": "Content",
|
|
5891
|
+
"text": "`${string}.csproj`"
|
|
5892
|
+
},
|
|
5893
|
+
{
|
|
5894
|
+
"kind": "Content",
|
|
5895
|
+
"text": ";"
|
|
5896
|
+
}
|
|
5897
|
+
],
|
|
5898
|
+
"isReadonly": false,
|
|
5899
|
+
"isOptional": false,
|
|
5900
|
+
"releaseTag": "Public",
|
|
5901
|
+
"name": "path",
|
|
5902
|
+
"propertyTypeTokenRange": {
|
|
5903
|
+
"startIndex": 1,
|
|
5904
|
+
"endIndex": 2
|
|
5905
|
+
}
|
|
5906
|
+
},
|
|
5907
|
+
{
|
|
5908
|
+
"kind": "PropertySignature",
|
|
5909
|
+
"canonicalReference": "@alloy-js/csharp!CsprojProps#sdk:member",
|
|
5910
|
+
"docComment": "/**\n * Project SDK https://learn.microsoft.com/en-us/dotnet/core/project-sdk/overview\n *\n * @default\n *\n * \"Microsoft.NET.Sdk\"\n */\n",
|
|
5911
|
+
"excerptTokens": [
|
|
5912
|
+
{
|
|
5913
|
+
"kind": "Content",
|
|
5914
|
+
"text": "sdk?: "
|
|
5915
|
+
},
|
|
5916
|
+
{
|
|
5917
|
+
"kind": "Reference",
|
|
5918
|
+
"text": "CSharpProjectSdk",
|
|
5919
|
+
"canonicalReference": "@alloy-js/csharp!CSharpProjectSdk:type"
|
|
5920
|
+
},
|
|
5921
|
+
{
|
|
5922
|
+
"kind": "Content",
|
|
5923
|
+
"text": ";"
|
|
5924
|
+
}
|
|
5925
|
+
],
|
|
5926
|
+
"isReadonly": false,
|
|
5927
|
+
"isOptional": true,
|
|
5928
|
+
"releaseTag": "Public",
|
|
5929
|
+
"name": "sdk",
|
|
5930
|
+
"propertyTypeTokenRange": {
|
|
5931
|
+
"startIndex": 1,
|
|
5932
|
+
"endIndex": 2
|
|
5933
|
+
}
|
|
5934
|
+
}
|
|
5935
|
+
],
|
|
5936
|
+
"extendsTokenRanges": []
|
|
5937
|
+
},
|
|
5798
5938
|
{
|
|
5799
5939
|
"kind": "Function",
|
|
5800
5940
|
"canonicalReference": "@alloy-js/csharp!Declaration:function(1)",
|
|
@@ -13972,261 +14112,6 @@
|
|
|
13972
14112
|
],
|
|
13973
14113
|
"extendsTokenRanges": []
|
|
13974
14114
|
},
|
|
13975
|
-
{
|
|
13976
|
-
"kind": "Function",
|
|
13977
|
-
"canonicalReference": "@alloy-js/csharp!ProjectDirectory:function(1)",
|
|
13978
|
-
"docComment": "",
|
|
13979
|
-
"excerptTokens": [
|
|
13980
|
-
{
|
|
13981
|
-
"kind": "Content",
|
|
13982
|
-
"text": "export declare function ProjectDirectory(props: "
|
|
13983
|
-
},
|
|
13984
|
-
{
|
|
13985
|
-
"kind": "Reference",
|
|
13986
|
-
"text": "ProjectDirectoryProps",
|
|
13987
|
-
"canonicalReference": "@alloy-js/csharp!ProjectDirectoryProps:interface"
|
|
13988
|
-
},
|
|
13989
|
-
{
|
|
13990
|
-
"kind": "Content",
|
|
13991
|
-
"text": "): "
|
|
13992
|
-
},
|
|
13993
|
-
{
|
|
13994
|
-
"kind": "Reference",
|
|
13995
|
-
"text": "core.Children",
|
|
13996
|
-
"canonicalReference": "@alloy-js/core!Children:type"
|
|
13997
|
-
},
|
|
13998
|
-
{
|
|
13999
|
-
"kind": "Content",
|
|
14000
|
-
"text": ";"
|
|
14001
|
-
}
|
|
14002
|
-
],
|
|
14003
|
-
"fileUrlPath": "src/components/ProjectDirectory.tsx",
|
|
14004
|
-
"returnTypeTokenRange": {
|
|
14005
|
-
"startIndex": 3,
|
|
14006
|
-
"endIndex": 4
|
|
14007
|
-
},
|
|
14008
|
-
"releaseTag": "Public",
|
|
14009
|
-
"overloadIndex": 1,
|
|
14010
|
-
"parameters": [
|
|
14011
|
-
{
|
|
14012
|
-
"parameterName": "props",
|
|
14013
|
-
"parameterTypeTokenRange": {
|
|
14014
|
-
"startIndex": 1,
|
|
14015
|
-
"endIndex": 2
|
|
14016
|
-
},
|
|
14017
|
-
"isOptional": false
|
|
14018
|
-
}
|
|
14019
|
-
],
|
|
14020
|
-
"name": "ProjectDirectory"
|
|
14021
|
-
},
|
|
14022
|
-
{
|
|
14023
|
-
"kind": "Interface",
|
|
14024
|
-
"canonicalReference": "@alloy-js/csharp!ProjectDirectoryProps:interface",
|
|
14025
|
-
"docComment": "",
|
|
14026
|
-
"excerptTokens": [
|
|
14027
|
-
{
|
|
14028
|
-
"kind": "Content",
|
|
14029
|
-
"text": "export interface ProjectDirectoryProps "
|
|
14030
|
-
}
|
|
14031
|
-
],
|
|
14032
|
-
"fileUrlPath": "src/components/ProjectDirectory.tsx",
|
|
14033
|
-
"releaseTag": "Public",
|
|
14034
|
-
"name": "ProjectDirectoryProps",
|
|
14035
|
-
"preserveMemberOrder": false,
|
|
14036
|
-
"members": [
|
|
14037
|
-
{
|
|
14038
|
-
"kind": "PropertySignature",
|
|
14039
|
-
"canonicalReference": "@alloy-js/csharp!ProjectDirectoryProps#children:member",
|
|
14040
|
-
"docComment": "",
|
|
14041
|
-
"excerptTokens": [
|
|
14042
|
-
{
|
|
14043
|
-
"kind": "Content",
|
|
14044
|
-
"text": "children?: "
|
|
14045
|
-
},
|
|
14046
|
-
{
|
|
14047
|
-
"kind": "Reference",
|
|
14048
|
-
"text": "core.Children",
|
|
14049
|
-
"canonicalReference": "@alloy-js/core!Children:type"
|
|
14050
|
-
},
|
|
14051
|
-
{
|
|
14052
|
-
"kind": "Content",
|
|
14053
|
-
"text": ";"
|
|
14054
|
-
}
|
|
14055
|
-
],
|
|
14056
|
-
"isReadonly": false,
|
|
14057
|
-
"isOptional": true,
|
|
14058
|
-
"releaseTag": "Public",
|
|
14059
|
-
"name": "children",
|
|
14060
|
-
"propertyTypeTokenRange": {
|
|
14061
|
-
"startIndex": 1,
|
|
14062
|
-
"endIndex": 2
|
|
14063
|
-
}
|
|
14064
|
-
},
|
|
14065
|
-
{
|
|
14066
|
-
"kind": "PropertySignature",
|
|
14067
|
-
"canonicalReference": "@alloy-js/csharp!ProjectDirectoryProps#description:member",
|
|
14068
|
-
"docComment": "",
|
|
14069
|
-
"excerptTokens": [
|
|
14070
|
-
{
|
|
14071
|
-
"kind": "Content",
|
|
14072
|
-
"text": "description: "
|
|
14073
|
-
},
|
|
14074
|
-
{
|
|
14075
|
-
"kind": "Content",
|
|
14076
|
-
"text": "string"
|
|
14077
|
-
},
|
|
14078
|
-
{
|
|
14079
|
-
"kind": "Content",
|
|
14080
|
-
"text": ";"
|
|
14081
|
-
}
|
|
14082
|
-
],
|
|
14083
|
-
"isReadonly": false,
|
|
14084
|
-
"isOptional": false,
|
|
14085
|
-
"releaseTag": "Public",
|
|
14086
|
-
"name": "description",
|
|
14087
|
-
"propertyTypeTokenRange": {
|
|
14088
|
-
"startIndex": 1,
|
|
14089
|
-
"endIndex": 2
|
|
14090
|
-
}
|
|
14091
|
-
},
|
|
14092
|
-
{
|
|
14093
|
-
"kind": "PropertySignature",
|
|
14094
|
-
"canonicalReference": "@alloy-js/csharp!ProjectDirectoryProps#name:member",
|
|
14095
|
-
"docComment": "",
|
|
14096
|
-
"excerptTokens": [
|
|
14097
|
-
{
|
|
14098
|
-
"kind": "Content",
|
|
14099
|
-
"text": "name: "
|
|
14100
|
-
},
|
|
14101
|
-
{
|
|
14102
|
-
"kind": "Content",
|
|
14103
|
-
"text": "string"
|
|
14104
|
-
},
|
|
14105
|
-
{
|
|
14106
|
-
"kind": "Content",
|
|
14107
|
-
"text": ";"
|
|
14108
|
-
}
|
|
14109
|
-
],
|
|
14110
|
-
"isReadonly": false,
|
|
14111
|
-
"isOptional": false,
|
|
14112
|
-
"releaseTag": "Public",
|
|
14113
|
-
"name": "name",
|
|
14114
|
-
"propertyTypeTokenRange": {
|
|
14115
|
-
"startIndex": 1,
|
|
14116
|
-
"endIndex": 2
|
|
14117
|
-
}
|
|
14118
|
-
},
|
|
14119
|
-
{
|
|
14120
|
-
"kind": "PropertySignature",
|
|
14121
|
-
"canonicalReference": "@alloy-js/csharp!ProjectDirectoryProps#path:member",
|
|
14122
|
-
"docComment": "",
|
|
14123
|
-
"excerptTokens": [
|
|
14124
|
-
{
|
|
14125
|
-
"kind": "Content",
|
|
14126
|
-
"text": "path: "
|
|
14127
|
-
},
|
|
14128
|
-
{
|
|
14129
|
-
"kind": "Content",
|
|
14130
|
-
"text": "string"
|
|
14131
|
-
},
|
|
14132
|
-
{
|
|
14133
|
-
"kind": "Content",
|
|
14134
|
-
"text": ";"
|
|
14135
|
-
}
|
|
14136
|
-
],
|
|
14137
|
-
"isReadonly": false,
|
|
14138
|
-
"isOptional": false,
|
|
14139
|
-
"releaseTag": "Public",
|
|
14140
|
-
"name": "path",
|
|
14141
|
-
"propertyTypeTokenRange": {
|
|
14142
|
-
"startIndex": 1,
|
|
14143
|
-
"endIndex": 2
|
|
14144
|
-
}
|
|
14145
|
-
},
|
|
14146
|
-
{
|
|
14147
|
-
"kind": "PropertySignature",
|
|
14148
|
-
"canonicalReference": "@alloy-js/csharp!ProjectDirectoryProps#srcDir:member",
|
|
14149
|
-
"docComment": "",
|
|
14150
|
-
"excerptTokens": [
|
|
14151
|
-
{
|
|
14152
|
-
"kind": "Content",
|
|
14153
|
-
"text": "srcDir?: "
|
|
14154
|
-
},
|
|
14155
|
-
{
|
|
14156
|
-
"kind": "Content",
|
|
14157
|
-
"text": "string"
|
|
14158
|
-
},
|
|
14159
|
-
{
|
|
14160
|
-
"kind": "Content",
|
|
14161
|
-
"text": ";"
|
|
14162
|
-
}
|
|
14163
|
-
],
|
|
14164
|
-
"isReadonly": false,
|
|
14165
|
-
"isOptional": true,
|
|
14166
|
-
"releaseTag": "Public",
|
|
14167
|
-
"name": "srcDir",
|
|
14168
|
-
"propertyTypeTokenRange": {
|
|
14169
|
-
"startIndex": 1,
|
|
14170
|
-
"endIndex": 2
|
|
14171
|
-
}
|
|
14172
|
-
},
|
|
14173
|
-
{
|
|
14174
|
-
"kind": "PropertySignature",
|
|
14175
|
-
"canonicalReference": "@alloy-js/csharp!ProjectDirectoryProps#targetFrameworkMoniker:member",
|
|
14176
|
-
"docComment": "",
|
|
14177
|
-
"excerptTokens": [
|
|
14178
|
-
{
|
|
14179
|
-
"kind": "Content",
|
|
14180
|
-
"text": "targetFrameworkMoniker?: "
|
|
14181
|
-
},
|
|
14182
|
-
{
|
|
14183
|
-
"kind": "Content",
|
|
14184
|
-
"text": "string"
|
|
14185
|
-
},
|
|
14186
|
-
{
|
|
14187
|
-
"kind": "Content",
|
|
14188
|
-
"text": ";"
|
|
14189
|
-
}
|
|
14190
|
-
],
|
|
14191
|
-
"isReadonly": false,
|
|
14192
|
-
"isOptional": true,
|
|
14193
|
-
"releaseTag": "Public",
|
|
14194
|
-
"name": "targetFrameworkMoniker",
|
|
14195
|
-
"propertyTypeTokenRange": {
|
|
14196
|
-
"startIndex": 1,
|
|
14197
|
-
"endIndex": 2
|
|
14198
|
-
}
|
|
14199
|
-
},
|
|
14200
|
-
{
|
|
14201
|
-
"kind": "PropertySignature",
|
|
14202
|
-
"canonicalReference": "@alloy-js/csharp!ProjectDirectoryProps#version:member",
|
|
14203
|
-
"docComment": "",
|
|
14204
|
-
"excerptTokens": [
|
|
14205
|
-
{
|
|
14206
|
-
"kind": "Content",
|
|
14207
|
-
"text": "version: "
|
|
14208
|
-
},
|
|
14209
|
-
{
|
|
14210
|
-
"kind": "Content",
|
|
14211
|
-
"text": "string"
|
|
14212
|
-
},
|
|
14213
|
-
{
|
|
14214
|
-
"kind": "Content",
|
|
14215
|
-
"text": ";"
|
|
14216
|
-
}
|
|
14217
|
-
],
|
|
14218
|
-
"isReadonly": false,
|
|
14219
|
-
"isOptional": false,
|
|
14220
|
-
"releaseTag": "Public",
|
|
14221
|
-
"name": "version",
|
|
14222
|
-
"propertyTypeTokenRange": {
|
|
14223
|
-
"startIndex": 1,
|
|
14224
|
-
"endIndex": 2
|
|
14225
|
-
}
|
|
14226
|
-
}
|
|
14227
|
-
],
|
|
14228
|
-
"extendsTokenRanges": []
|
|
14229
|
-
},
|
|
14230
14115
|
{
|
|
14231
14116
|
"kind": "Function",
|
|
14232
14117
|
"canonicalReference": "@alloy-js/csharp!Property:function(1)",
|
package/tsdoc.json
ADDED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as core from "@alloy-js/core";
|
|
2
|
-
export interface ProjectDirectoryProps {
|
|
3
|
-
name: string;
|
|
4
|
-
version: string;
|
|
5
|
-
description: string;
|
|
6
|
-
path: string;
|
|
7
|
-
srcDir?: string;
|
|
8
|
-
targetFrameworkMoniker?: string;
|
|
9
|
-
children?: core.Children;
|
|
10
|
-
}
|
|
11
|
-
export declare function ProjectDirectory(props: ProjectDirectoryProps): core.Children;
|
|
12
|
-
//# sourceMappingURL=ProjectDirectory.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ProjectDirectory.d.ts","sourceRoot":"","sources":["../../../src/components/ProjectDirectory.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,gBAAgB,CAAC;AAIvC,MAAM,WAAW,qBAAqB;IAEpC,IAAI,EAAE,MAAM,CAAC;IAGb,OAAO,EAAE,MAAM,CAAC;IAGhB,WAAW,EAAE,MAAM,CAAC;IAGpB,IAAI,EAAE,MAAM,CAAC;IAGb,MAAM,CAAC,EAAE,MAAM,CAAC;IAGhB,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAGhC,QAAQ,CAAC,EAAE,IAAI,CAAC,QAAQ,CAAC;CAC1B;AAGD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,iBA2B5D"}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { memo as _$memo, createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
|
|
2
|
-
import * as core from "@alloy-js/core";
|
|
3
|
-
import { join } from "pathe";
|
|
4
|
-
|
|
5
|
-
// properties for creating the project directory
|
|
6
|
-
|
|
7
|
-
// the top-level C# project directory. includes a csproj file
|
|
8
|
-
export function ProjectDirectory(props) {
|
|
9
|
-
if (!props.srcDir) {
|
|
10
|
-
props.srcDir = "src";
|
|
11
|
-
}
|
|
12
|
-
if (!props.targetFrameworkMoniker) {
|
|
13
|
-
props.targetFrameworkMoniker = "net8.0";
|
|
14
|
-
}
|
|
15
|
-
return _$createComponent(core.SourceDirectory, {
|
|
16
|
-
get path() {
|
|
17
|
-
return join(props.path, props.name);
|
|
18
|
-
},
|
|
19
|
-
get children() {
|
|
20
|
-
return [_$createComponent(core.SourceFile, {
|
|
21
|
-
get path() {
|
|
22
|
-
return props.name + ".csproj";
|
|
23
|
-
},
|
|
24
|
-
filetype: "xml",
|
|
25
|
-
get children() {
|
|
26
|
-
return core.code`
|
|
27
|
-
<Project Sdk="Microsoft.NET.Sdk">
|
|
28
|
-
<PropertyGroup>
|
|
29
|
-
<Version>${props.version}</Version>
|
|
30
|
-
<Description>${props.description}</Description>
|
|
31
|
-
<TargetFramework>${props.targetFrameworkMoniker}</TargetFramework>
|
|
32
|
-
</PropertyGroup>
|
|
33
|
-
</Project>
|
|
34
|
-
`;
|
|
35
|
-
}
|
|
36
|
-
}), _$createComponent(core.SourceDirectory, {
|
|
37
|
-
get path() {
|
|
38
|
-
return props.srcDir;
|
|
39
|
-
},
|
|
40
|
-
get children() {
|
|
41
|
-
return props.children;
|
|
42
|
-
}
|
|
43
|
-
})];
|
|
44
|
-
}
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
//# sourceMappingURL=ProjectDirectory.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["core","join","ProjectDirectory","props","srcDir","targetFrameworkMoniker","_$createComponent","SourceDirectory","path","name","children","SourceFile","filetype","code","version","description"],"sources":["../../../src/components/ProjectDirectory.tsx"],"sourcesContent":[null],"mappings":";AAAA,OAAO,KAAKA,IAAI,MAAM,gBAAgB;AACtC,SAASC,IAAI,QAAQ,OAAO;;AAE5B;;AAwBA;AACA,OAAO,SAASC,gBAAgBA,CAACC,KAA4B,EAAE;EAC7D,IAAI,CAACA,KAAK,CAACC,MAAM,EAAE;IACjBD,KAAK,CAACC,MAAM,GAAG,KAAK;EACtB;EAEA,IAAI,CAACD,KAAK,CAACE,sBAAsB,EAAE;IACjCF,KAAK,CAACE,sBAAsB,GAAG,QAAQ;EACzC;EAEA,OAAAC,iBAAA,CACGN,IAAI,CAACO,eAAe;IAAA,IAACC,IAAIA,CAAA;MAAA,OAAEP,IAAI,CAACE,KAAK,CAACK,IAAI,EAAEL,KAAK,CAACM,IAAI,CAAC;IAAA;IAAA,IAAAC,SAAA;MAAA,QAAAJ,iBAAA,CACrDN,IAAI,CAACW,UAAU;QAAA,IAACH,IAAIA,CAAA;UAAA,OAAEL,KAAK,CAACM,IAAI,GAAG,SAAS;QAAA;QAAEG,QAAQ;QAAA,IAAAF,SAAA;UAAA,OACpDV,IAAI,CAACa,IAAI;AAClB;AACA;AACA,uBAAuBV,KAAK,CAACW,OAAO;AACpC,2BAA2BX,KAAK,CAACY,WAAW;AAC5C,+BAA+BZ,KAAK,CAACE,sBAAsB;AAC3D;AACA;AACA,OAAO;QAAA;MAAA,IAAAC,iBAAA,CAEAN,IAAI,CAACO,eAAe;QAAA,IAACC,IAAIA,CAAA;UAAA,OAAEL,KAAK,CAACC,MAAM;QAAA;QAAA,IAAAM,SAAA;UAAA,OACrCP,KAAK,CAACO,QAAQ;QAAA;MAAA;IAAA;EAAA;AAIvB","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"project-directory.test.d.ts","sourceRoot":"","sources":["../../test/project-directory.test.tsx"],"names":[],"mappings":""}
|