Skip to content
Closed
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
*.log


# environment variables
Expand Down
7 changes: 7 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@
"problemMatcher": [],
"label": "changeset",
"detail": "changeset"
},
{
"type": "npm",
"script": "test",
"problemMatcher": [],
"label": "test",
"detail": "vitest"
}
]
}
4 changes: 3 additions & 1 deletion apps/www/content/docs/arkenv/coercion.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ import arkenv from "arkenv";
const env = arkenv(
{ TAGS: "string[]" },
{
arrayFormat: "json",
coerce: {
arrayFormat: "json",
},
env: { TAGS: '["web", "app"]' }
}
);
Expand Down
8 changes: 4 additions & 4 deletions arkenv.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,6 @@
"path": "packages/internal/scope",
"name": " @repo/scope"
},
{
"path": "packages/internal/keywords",
"name": " @repo/keywords"
},
{
"path": "tooling",
"name": "tooling"
Expand Down Expand Up @@ -129,6 +125,10 @@
"path": "examples/with-standard-schema",
"name": " with-standard-schema"
},
{
"path": "examples/without-arktype",
"name": " without-arktype"
},
{
"path": "examples/stackblitz",
"name": " stackblitz"
Expand Down
3 changes: 2 additions & 1 deletion examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ This directory contains a collection of example projects that demonstrate variou
| -------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------ |
| [basic](https://github.com/yamcodes/arkenv/tree/main/examples/basic) | Minimal example of _using ArkEnv in a [Node.js](https://nodejs.org/) app_ for learning the fundamentals. |
| [with-standard-schema](https://github.com/yamcodes/arkenv/tree/main/examples/with-standard-schema) | Example of _mixing ArkType with [Standard Schema](https://standardschema.dev/) validators like [Zod](https://zod.dev/)_. |
| [without-arktype](https://github.com/yamcodes/arkenv/tree/main/examples/without-arktype) | Example of _using ArkEnv without ArkType_, using [Zod](https://zod.dev/) for validation. |
| [with-bun](https://github.com/yamcodes/arkenv/tree/main/examples/with-bun) | Minimal example of _using ArkEnv in a [Bun](https://bun.sh/) app_. |
| [with-bun-react](https://github.com/yamcodes/arkenv/tree/main/examples/with-bun-react) | Minimal example of _using ArkEnv in a [Bun + React](https://bun.com/docs/guides/ecosystem/react) full-stack app_. |
| [with-vite-react](https://github.com/yamcodes/arkenv/tree/main/examples/with-vite-react) | Minimal example of _using ArkEnv in a [Vite](https://vite.dev/) + [React](https://react.dev/) app_. |
| [with-solid-start](https://github.com/yamcodes/arkenv/tree/main/examples/with-solid-start) | Minimal example of _using ArkEnv in a [SolidStart](https://start.solidjs.com) app_. |
| [with-solid-start](https://github.com/yamcodes/arkenv/tree/main/examples/with-solid-start) | Minimal example of _using ArkEnv in a [SolidStart](https://start.solidjs.com) app_. |

> These examples are written in TypeScript, [the recommended way to work with ArkEnv](https://github.com/yamcodes/arkenv/blob/main/packages/arkenv/README.md#typescript-requirements). That said, ArkEnv works with plain JavaScript. See the [basic-js](https://github.com/yamcodes/arkenv/tree/main/examples/basic-js) example for details and tradeoffs.

Expand Down
Loading
Loading