Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 1 addition & 22 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,6 @@ env:
RUST_BACKTRACE: 1

jobs:
node:
name: "[TS] Build"
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v6

- name: "Setup Node.js"
uses: actions/setup-node@v6
with:
node-version: 24

- name: "Install dependencies"
run: npm ci
working-directory: ./package/reader

- name: "Build project"
run: npm run build
working-directory: ./package/reader

format:
name: "[RUST] Format Check"
runs-on: ubuntu-latest
Expand Down Expand Up @@ -119,4 +98,4 @@ jobs:
${{ runner.os }}-cargo-

- name: "Generate report"
run: cargo run report
run: cargo run report
21 changes: 1 addition & 20 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,6 @@ on:
- '*'
Comment thread
raphael-goetz marked this conversation as resolved.

jobs:
publish-ts-reader:
permissions:
id-token: write
if: startsWith(github.ref, 'refs/tags/pkg-')
defaults:
run:
working-directory: "./package/reader"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: '24.x'
registry-url: 'https://registry.npmjs.org'
- run: npm version from-git --git-tag-version=false
- run: npm ci
- run: npm run build
- run: npm publish

publish-defintions:
permissions:
contents: write
Expand Down Expand Up @@ -76,4 +57,4 @@ jobs:
- name: Cargo Login
run: cargo login ${{secrets.CRATES_IO_PUBLISH}}
- name: Publish crate
run: cargo publish --allow-dirty
run: cargo publish --allow-dirty
19 changes: 0 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,22 +69,3 @@ code0-cli definition -n definition_name
code0-cli definition -n definition_name -p /path/to/definitions
Comment thread
raphael-goetz marked this conversation as resolved.
```

## TypeScript Definition Package

### Install Package
```bash
npm i @code0-tech/code0-definition-reader --save-dev
```

### Usage

```ts
const features = Definition("./path/to/definitions")

for (const feature in features) {
const name = feature.name; //name of the feature (e.g. http)
const dataTypes = fearture.dataTypes; //dataTypes of this feature
const flowTypes = fearture.flowTypes; //flowTypes of this feature
const functions = fearture.runtimeFunctions; //runtimeFunctions of this feature
}
```
Loading