You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [[email protected]](mailto:[email protected]) with any additional questions or comments.
4
+
5
+
## Prerequisites
6
+
7
+
-[Node.js](https://nodejs.org/) (14.x or higher)
8
+
-[.NET runtime and SDK](https://aka.ms/dotnet-download)
9
+
-[.NET CLI tools](https://github.com/dotnet/cli/releases) version 2.0.0 or higher
10
+
11
+
## Build scripts
12
+
13
+
Run `npm install` to install the required modules.
14
+
15
+
```sh
16
+
npm install
17
+
```
18
+
19
+
## How to build the C# code
20
+
21
+
The core logic for openapi-diff is written in C# and compiled to a .NET binary.
22
+
23
+
Use `dn.build` npm script to build the C# code.
24
+
25
+
```sh
26
+
npm run dn.build
27
+
```
28
+
29
+
## How to test the C# code
30
+
31
+
To run all tests under the repo
32
+
33
+
```sh
34
+
npm run dn.test
35
+
```
36
+
37
+
## How to build the TypeScript code
38
+
39
+
The CLI for openapi-diff is written in TypeScript and compiled to a Node.js binary.
40
+
41
+
Use `tsc` npm script to build the TypeScript code.
42
+
43
+
```sh
44
+
npm run tsc
45
+
```
46
+
47
+
## How to run locally
48
+
49
+
After you have built the C# and TypeScript code, you can run the openapi-diff tool locally.
50
+
To run the openapi-diff tool locally, use the `npm run start` command.
51
+
52
+
```sh
53
+
node dist/cli.js --help
54
+
```
55
+
56
+
You can also install the package globally and run it from anywhere.
*[.NET CLI tools](https://github.com/dotnet/cli/releases) version 2.0.0 or higher
39
-
> You want the **.NET Core SDK Binaries** for your platform <br>
40
-
>
41
-
> `dotnet --version` <br>
42
-
> `2.0.2` <br>
43
-
44
-
## Build scripts
45
-
46
-
### How to build
47
-
48
-
The first step would be to run `npm install` so we have all the required modules installed.
49
-
50
-
#### How to build the whole repo
51
-
52
-
```javascript
53
-
gulp;
54
-
```
55
-
56
-
### How to test
57
-
58
-
To run all tests under the repo
59
-
60
-
```javascript
61
-
gulp test
62
-
```
63
-
64
-
### How to bundle node package & install
65
-
66
-
```javascript
67
-
gulp pack
68
-
npm install -g oad-0.1.0.tgz
69
-
```
70
-
71
34
# Contributing
72
35
73
-
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [[email protected]](mailto:[email protected]) with any additional questions or comments.
0 commit comments