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
7 changes: 7 additions & 0 deletions .changeset/poor-animals-jog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@varlock/1password-plugin": patch
"@env-spec/parser": patch
"varlock": minor
---

unify resolvers with decorators, new plugin system, 1pass plugin
3 changes: 3 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ updates:
- packages/integrations/*
schedule:
interval: weekly
ignore:
# issue with latest -- https://github.com/sindresorhus/exit-hook/issues/42
- dependency-name: "exit-hook"
# https://docs.github.com/en/code-security/dependabot/working-with-dependabot/dependabot-options-reference#groups--
# 1 PR per week and group
groups:
Expand Down
8 changes: 6 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
PRs are always welcome.
PRs are always welcome.

**First, please read our [Code of Conduct](CODE_OF_CONDUCT.md).**

Expand Down Expand Up @@ -31,7 +31,11 @@ pnpm build:libs
- [packages/vscode-plugin](./packages/vscode-plugin) - VSCode extension for @env-spec
- [packages/integrations/nextjs](./packages/integrations/nextjs) - Next.js integration for varlock

> See the README.md for each package for more details.
> See the README.md for each package for more details.


## Debugging

It is often useful to enable source maps in traces during local development.

To do so run `export NODE_OPTIONS=--enable-source-maps` in your active terminal.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ APP_ENV=development # default value, can override

# API port
# @type=port @example=3000
API_PORT=
API_PORT=

# API url including _expansion_ referencing another env var
# @required @type=url
API_URL=http://localhost:${API_PORT}
API_URL=http://localhost:${API_PORT}

# API key with validation, securely fetched from 1Password
# @required @sensitive @type=string(startsWith=sk-)
Expand All @@ -49,7 +49,7 @@ SOME_SERVICE_API_URL=https://api.someservice.com

## Installation

You can get started with varlock by installing the CLI:
You can get started with varlock by installing the CLI:

```bash
# Run the installation wizard, which will install as a dependency in a JavaScript project
Expand All @@ -67,13 +67,13 @@ See the full [installation docs](https://varlock.dev/getting-started/installatio

## Workflow

Validate your `.env.schema` and pretty print your environment variables with:
Validate your `.env.schema` and pretty print your environment variables with:

```bash
varlock load
```

If you need to pass resolved env vars into another process, you can run:
If you need to pass resolved env vars into another process, you can run:

```bash
varlock run -- python script.py
Expand All @@ -85,7 +85,7 @@ Or you can integrate more deeply with one of our [integrations](https://varlock.

Varlock is built on top of @env-spec, a new DSL for attaching a schema and additional functionality to .env files using JSDoc style comments. The @env-spec package contains a parser and info about the spec itself.

- @env-spec [docs](https://varlock.dev/env-spec/overview/)
- @env-spec [docs](https://varlock.dev/env-spec/overview/)
- @env-spec [RFC](https://github.com/dmno-dev/varlock/discussions/17)


Expand Down
3 changes: 2 additions & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import pluginN from 'eslint-plugin-n';

// fix renamed rule
if (airbnb.rules['@stylistic/func-call-spacing']) {
// @ts-ignore
airbnb.rules['@stylistic/function-call-spacing'] = airbnb.rules['@stylistic/func-call-spacing'];
// @ts-ignore
delete airbnb.rules['@stylistic/func-call-spacing'];
Expand Down Expand Up @@ -44,7 +45,7 @@ export default tseslint.config(
'packages/eslint-custom-rules',
'packages/env-spec-parser/src/grammar.js',
'packages/varlock-website/.astro',
'**/.dmno/.typegen',
'packages/varlock/env-graph/test/plugins',
'**/*.ignore',
'**/.vercel',
'**/.netlify',
Expand Down
3 changes: 0 additions & 3 deletions example-monorepo/.gitignore

This file was deleted.

Loading