Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c625c24

Browse files
committed
Add clarifying doc comments.
1 parent 6102789 commit c625c24

File tree

4 files changed

+22
-1
lines changed

4 files changed

+22
-1
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,18 @@ fsdgenjs | A tool that generates JavaScript or TypeScript for a Facility Service
1010
Facility.CodeGen.JavaScript | A library that generates JavaScript or TypeScript for a Facility Service Definition. | [![NuGet](https://img.shields.io/nuget/v/Facility.CodeGen.JavaScript.svg)](https://www.nuget.org/packages/Facility.CodeGen.JavaScript)
1111

1212
[Documentation](https://facilityapi.github.io/) | [Release Notes](https://github.com/FacilityApi/FacilityJavaScript/blob/master/ReleaseNotes.md) | [Contributing](https://github.com/FacilityApi/FacilityJavaScript/blob/master/CONTRIBUTING.md)
13+
14+
## Conformance
15+
16+
To run conformance tests, first start one of the conformance servers from within the `/conformance` folder:
17+
18+
```
19+
npm run fastify:ts
20+
npm run fastify:js
21+
```
22+
23+
Then run the conformance tool against the running service.
24+
25+
```
26+
npm run test
27+
```

src/Facility.CodeGen.JavaScript/JavaScriptGenerator.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ public static int GenerateJavaScript(JavaScriptGeneratorSettings settings) =>
3636
/// <summary>
3737
/// True to generate Fastify plugin.
3838
/// </summary>
39+
/// <remarks>
40+
/// When specified, only the server plugin is generated, not the client.
41+
/// </remarks>
3942
public bool Fastify { get; set; }
4043

4144
/// <summary>

src/Facility.CodeGen.JavaScript/JavaScriptGeneratorSettings.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ public sealed class JavaScriptGeneratorSettings : FileGeneratorSettings
2525
/// <summary>
2626
/// True to generate Fastify plugin.
2727
/// </summary>
28+
/// <remarks>
29+
/// When specified, only the server plugin is generated, not the client.
30+
/// </remarks>
2831
public bool Fastify { get; set; }
2932

3033
/// <summary>

src/fsdgenjs/FsdGenJavaScriptApp.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public sealed class FsdGenJavaScriptApp : CodeGeneratorApp
2323
" --express",
2424
" Generates Express service.",
2525
" --fastify",
26-
" Generates Fastify plugin.",
26+
" Generates a Fastify plugin. When specified, only the server plugin is generated, not the client.",
2727
" --disable-eslint",
2828
" Disables ESLint via code comment.",
2929
};

0 commit comments

Comments
 (0)