Skip to content

Commit

Permalink
Fix rebase
Browse files Browse the repository at this point in the history
Add CLI build with Bun and Commander (#12)

* Add CLI build with Bun and Commander

The build generates a CLI for running the Bun API. The config
has been changed to include program argument parameters. In order
to run the new `app` using custom directives (e.g port, hostname)
a new function called `generateApp()` had to be created in order for
the tests to be ran with the same app (previously `export default`).

Closes: #7

* Fix build workflow

* Skip default values check in config test
  • Loading branch information
0237h committed Oct 17, 2023
1 parent 392bd0f commit 926e5b3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/bun-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ jobs:
- uses: softprops/action-gh-release@v1
with:
files: |
substreams-clock-api
substreams-clock-api
2 changes: 1 addition & 1 deletion src/tests/config.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ describe('Commander', () => {
verbose: DEFAULT_VERBOSE
});
});
});
});
1 change: 1 addition & 0 deletions src/tests/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { describe, expect, it, beforeAll } from 'bun:test';
import { ZodError } from 'zod';

import config from '../config';
import { generateApp } from '../index';
import { banner } from "../banner";
import { generateApp } from '../index';
import { supportedChainsQuery, timestampQuery } from "../queries";
Expand Down

0 comments on commit 926e5b3

Please sign in to comment.