-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add examples, improve docs, refactor cache/cacheKey (#5)
Co-authored-by: Riley Tomasek <[email protected]>
- Loading branch information
1 parent
ee47cac
commit 525baa1
Showing
167 changed files
with
43,390 additions
and
17,248 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
enable-pre-post-scripts=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
# Contributing | ||
|
||
Suggestions and pull requests are very welcome. 😊 | ||
|
||
## Development | ||
|
||
To develop the project locally, you'll need `node >= 18` and `pnpm >= 8`. | ||
|
||
```bash | ||
git clone https://github.com/dexaai/dexter | ||
cd dexter | ||
pnpm i | ||
``` | ||
|
||
You can now run the `tsc` dev server to automatically recompile the project whenever you make changes: | ||
|
||
```bash | ||
pnpm dev | ||
``` | ||
|
||
## Testing | ||
|
||
You can run the test suite via: | ||
|
||
```bash | ||
pnpm test | ||
``` | ||
|
||
Or just the [Vitest](https://vitest.dev) unit tests via: | ||
|
||
```bash | ||
pnpm test:unit | ||
``` | ||
|
||
## Examples | ||
|
||
To run the included examples, clone this repo, run `pnpm install`, set up your `.env` file, and then run an example file using `tsx`. | ||
|
||
For example: | ||
|
||
```bash | ||
npx tsx examples/basic.ts | ||
``` | ||
|
||
## Docs | ||
|
||
The `./docs/pages/docs` directory is autogenerated via [typedoc](https://typedoc.org) and [typedoc-plugin-markdown](https://github.com/tgreyuk/typedoc-plugin-markdown/tree/next/packages/typedoc-plugin-markdown). | ||
|
||
To rebuild the docs, run: | ||
|
||
```bash | ||
pnpm run docs | ||
``` | ||
|
||
Please don't run this command when submitting PRs to keep them uncluttered, unless you're making changes to the docs themselves. | ||
|
||
The docs folder is a normal [Next.js](https://nextjs.org) pages app built using [Nextra](https://nextra.site/). | ||
|
||
You can run the docs dev server to preview your changes via: | ||
|
||
```bash | ||
cd docs | ||
pnpm dev | ||
``` | ||
|
||
The docs are automatically deployed to [Vercel](https://vercel.com). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.