File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99 RUST_BACKTRACE : 1
1010
1111jobs :
12- node :
13- name : " [TS] Build"
14- runs-on : ubuntu-latest
15-
16- steps :
17- - name : Checkout repository
18- uses : actions/checkout@v6
19-
20- - name : " Setup Node.js"
21- uses : actions/setup-node@v6
22- with :
23- node-version : 24
24-
25- - name : " Install dependencies"
26- run : npm ci
27- working-directory : ./package/reader
28-
29- - name : " Build project"
30- run : npm run build
31- working-directory : ./package/reader
32-
3312 format :
3413 name : " [RUST] Format Check"
3514 runs-on : ubuntu-latest
11998 ${{ runner.os }}-cargo-
12099
121100 - name : " Generate report"
122- run : cargo run report
101+ run : cargo run report
Original file line number Diff line number Diff line change 66 - ' *'
77
88jobs :
9- publish-ts-reader :
10- permissions :
11- id-token : write
12- if : startsWith(github.ref, 'refs/tags/pkg-')
13- defaults :
14- run :
15- working-directory : " ./package/reader"
16- runs-on : ubuntu-latest
17- steps :
18- - uses : actions/checkout@v6
19- - uses : actions/setup-node@v6
20- with :
21- node-version : ' 24.x'
22- registry-url : ' https://registry.npmjs.org'
23- - run : npm version from-git --git-tag-version=false
24- - run : npm ci
25- - run : npm run build
26- - run : npm publish
27-
289 publish-defintions :
2910 permissions :
3011 contents : write
7657 - name : Cargo Login
7758 run : cargo login ${{secrets.CRATES_IO_PUBLISH}}
7859 - name : Publish crate
79- run : cargo publish --allow-dirty
60+ run : cargo publish --allow-dirty
Original file line number Diff line number Diff line change @@ -69,22 +69,3 @@ code0-cli definition -n definition_name
6969code0-cli definition -n definition_name -p /path/to/definitions
7070```
7171
72- ## TypeScript Definition Package
73-
74- ### Install Package
75- ``` bash
76- npm i @code0-tech/code0-definition-reader --save-dev
77- ```
78-
79- ### Usage
80-
81- ``` ts
82- const features = Definition (" ./path/to/definitions" )
83-
84- for (const feature in features ) {
85- const name = feature .name ; // name of the feature (e.g. http)
86- const dataTypes = fearture .dataTypes ; // dataTypes of this feature
87- const flowTypes = fearture .flowTypes ; // flowTypes of this feature
88- const functions = fearture .runtimeFunctions ; // runtimeFunctions of this feature
89- }
90- ```
You can’t perform that action at this time.
0 commit comments