tsonic 0.0.70 → 0.0.71
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/README.md +29 -19
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,47 +1,57 @@
|
|
|
1
1
|
# tsonic
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
CLI package for the Tsonic compiler.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Install
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
8
|
npm install -g tsonic
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
Or
|
|
11
|
+
Or use locally:
|
|
12
12
|
|
|
13
13
|
```bash
|
|
14
|
-
npm install -
|
|
14
|
+
npm install --save-dev tsonic
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
## Usage
|
|
18
18
|
|
|
19
|
+
### Initialize a workspace
|
|
20
|
+
|
|
21
|
+
Default CLR surface:
|
|
22
|
+
|
|
19
23
|
```bash
|
|
20
|
-
|
|
21
|
-
|
|
24
|
+
tsonic init
|
|
25
|
+
```
|
|
22
26
|
|
|
23
|
-
|
|
24
|
-
tsonic build src/App.ts
|
|
27
|
+
JS surface:
|
|
25
28
|
|
|
26
|
-
|
|
27
|
-
tsonic
|
|
29
|
+
```bash
|
|
30
|
+
tsonic init --surface @tsonic/js
|
|
28
31
|
```
|
|
29
32
|
|
|
30
|
-
|
|
33
|
+
### Build and run
|
|
31
34
|
|
|
32
35
|
```bash
|
|
33
|
-
|
|
36
|
+
tsonic build
|
|
37
|
+
tsonic run
|
|
34
38
|
```
|
|
35
39
|
|
|
36
|
-
|
|
40
|
+
### Add dependencies
|
|
37
41
|
|
|
38
|
-
|
|
39
|
-
|
|
42
|
+
```bash
|
|
43
|
+
tsonic add npm @tsonic/nodejs
|
|
44
|
+
tsonic add nuget Microsoft.Extensions.Logging 10.0.0
|
|
45
|
+
tsonic add package ./libs/MyCompany.MyLib.dll
|
|
46
|
+
tsonic restore
|
|
47
|
+
```
|
|
40
48
|
|
|
41
|
-
##
|
|
49
|
+
## Requirements
|
|
42
50
|
|
|
43
|
-
|
|
51
|
+
- Node.js 22+
|
|
52
|
+
- .NET 10 SDK
|
|
44
53
|
|
|
45
|
-
##
|
|
54
|
+
## Docs
|
|
46
55
|
|
|
47
|
-
|
|
56
|
+
- `https://tsonic.org/tsonic/`
|
|
57
|
+
- `https://github.com/tsoniclang/tsonic`
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tsonic",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.71",
|
|
4
4
|
"description": "TypeScript to C# to NativeAOT compiler",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
7
|
"tsonic": "bin.js"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@tsonic/cli": "0.0.
|
|
10
|
+
"@tsonic/cli": "0.0.71"
|
|
11
11
|
},
|
|
12
12
|
"keywords": [
|
|
13
13
|
"tsonic",
|