-
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.
clean up and standardize READMEs (#185)
* clean up and standardize READMEs * Update packages/docs-site/README.md Co-authored-by: Phil Miller <[email protected]> * add changeset --------- Co-authored-by: Theo Ephraim <[email protected]>
- Loading branch information
1 parent
68b7f01
commit 29dcfc2
Showing
17 changed files
with
318 additions
and
69 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
"@dmno/encrypted-vault-plugin": patch | ||
"@dmno/fastify-integration": patch | ||
"@dmno/cloudflare-platform": patch | ||
"@dmno/nextjs-integration": patch | ||
"@dmno/astro-integration": patch | ||
"@dmno/remix-integration": patch | ||
"@dmno/vite-integration": patch | ||
"@dmno/netlify-platform": patch | ||
"@dmno/1password-plugin": patch | ||
"@dmno/bitwarden-plugin": patch | ||
"@dmno/infisical-plugin": patch | ||
"@dmno/vercel-platform": patch | ||
"@dmno/configraph": patch | ||
"dmno": patch | ||
--- | ||
|
||
update readmes |
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 |
---|---|---|
@@ -1,9 +1,7 @@ | ||
# DMNO Core [![npm](https://img.shields.io/npm/v/dmno?label=dmno)](https://www.npmjs.com/package/dmno) | ||
|
||
Welcome to `dmno` (core) which powers `dmno`, and currently includes the config engine, CLI, and associated tools. | ||
Welcome to `dmno` core which powers `dmno`, and currently includes the config engine, CLI, and associated tools. | ||
|
||
Check out the [docs](https://dmno.dev/docs) for more information on how to use DMNO. | ||
|
||
*** THIS IS PREVIEW SOFTWARE AND SUBJECT TO RAPID CHANGE *** | ||
|
||
If you have any questions, please reach out to us on [Discord](https://chat.dmno.dev). |
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
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
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 |
---|---|---|
@@ -1,9 +1,76 @@ | ||
Check out the [docs](https://dmno.dev/docs/platforms/cloudflare/) for more information on how to use [DMNO](https://dmno.dev) with [Cloudflare](https://cloudflare.com/). | ||
|
||
*** THIS IS PREVIEW SOFTWARE AND SUBJECT TO RAPID CHANGE *** | ||
|
||
If you have any questions, please reach out to us on [Discord](https://chat.dmno.dev). | ||
|
||
---- | ||
|
||
# @dmno/cloudflare-platform [![npm](https://img.shields.io/npm/v/@dmno/cloudflare-platform)](https://www.npmjs.com/package/@dmno/cloudflare-platform) | ||
|
||
### Installation | ||
|
||
```bash | ||
npm add @dmno/cloudflare-platform | ||
``` | ||
|
||
### Example Usage | ||
|
||
```typescript | ||
import { CloudflareWranglerEnvSchema, DmnoWranglerEnvSchema } from '@dmno/cloudflare-platform'; | ||
import { OnePasswordDmnoPlugin } from '@dmno/1password-plugin'; | ||
import { | ||
DmnoBaseTypes, defineDmnoService, pickFromSchemaObject, switchBy, | ||
} from 'dmno'; | ||
|
||
// initialize our 1Password plugin | ||
const opSecrets = new OnePasswordDmnoPlugin('1pass', { | ||
fallbackToCliBasedAuth: true, | ||
}); | ||
|
||
export default defineDmnoService({ | ||
schema: { | ||
// config that affects wrangler directly | ||
...pickFromSchemaObject(CloudflareWranglerEnvSchema, { | ||
CLOUDFLARE_ACCOUNT_ID: { | ||
value: opSecrets.itemByReference('op://Shared/Cloudflare/account id'), | ||
}, | ||
CLOUDFLARE_API_TOKEN: { | ||
value: opSecrets.itemByReference('op://Shared/Cloudflare/workers api token'), | ||
}, | ||
}), | ||
|
||
// special config that controls wrangler via `dwrangler` cli wrapper (all optional) | ||
...pickFromSchemaObject(DmnoWranglerEnvSchema, { | ||
WRANGLER_ENV: {}, // passed as --env | ||
WRANGLER_DEV_IP: { value: 'custom.host.local' }, // passed as --ip | ||
WRANGLER_DEV_PORT: { value: 8881 }, // passed as --port | ||
WRANGLER_DEV_URL: {}, // will be populated with full dev URL | ||
WRANGLER_LIVE_RELOAD: { value: true }, // passed as `--live-reload` | ||
WRANGLER_DEV_ACTIVE: {}, // true when running `dwrangler dev` or `dwrangler pages dev` | ||
WRANGLER_BUILD_ACTIVE: {}, // true when dwrangler is performing a build for deployment | ||
}), | ||
|
||
// ... rest of your app config | ||
SOME_VAR: { | ||
value: switchBy('WRANGLER_DEV_ACTIVE', { // use info from wrangler to affect other config | ||
_default: 'dev value', | ||
false: 'prod value', | ||
}), | ||
}, | ||
}, | ||
}); | ||
``` | ||
|
||
### `dwrangler` wrapper | ||
|
||
Our Cloudflare platform integration also provides a thin wrapper called `dwrangler` that injects the config into the `wrangler` cli. In most cases, you can just use `dwrangler` in your package.json scripts instead of `wrangler`. | ||
|
||
```json | ||
{ | ||
"scripts": { | ||
"dev": "dwrangler dev", | ||
"deploy": "dwrangler deploy" | ||
} | ||
} | ||
``` | ||
|
||
> Read more about the `dwrangler` wrapper and all the additional features DMNO unlocks in the [docs](https://dmno.dev/docs/platforms/cloudflare/). |
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 |
---|---|---|
@@ -1,9 +1,36 @@ | ||
Check out the [docs](https://dmno.dev/docs/platforms/netlify/) for more information on how to use [DMNO](https://dmno.dev) with [Netlify](https://netlify.com/). | ||
|
||
*** THIS IS PREVIEW SOFTWARE AND SUBJECT TO RAPID CHANGE *** | ||
|
||
If you have any questions, please reach out to us on [Discord](https://chat.dmno.dev). | ||
|
||
---- | ||
|
||
# @dmno/netlify-platform [![npm](https://img.shields.io/npm/v/@dmno/netlify-platform)](https://www.npmjs.com/package/@dmno/netlify-platform) | ||
|
||
This package provides a set of prebuilt types and environment variables for Netlify. | ||
|
||
## Installation | ||
|
||
```bash | ||
npm add @dmno/netlify-platform | ||
``` | ||
|
||
### Example Usage | ||
|
||
```typescript | ||
import { defineDmnoService, switchBy, pickFromSchemaObject } from 'dmno'; | ||
import { NetlifyEnvSchema } from '@dmno/netlify-platform/types'; | ||
|
||
export default defineDmnoService({ | ||
schema: { | ||
...pickFromSchemaObject(NetlifyEnvSchema, 'CONTEXT', 'BUILD_ID'), | ||
APP_ENV: { | ||
value: switchBy('CONTEXT', { | ||
_default: 'local', | ||
'deploy-preview': 'staging', | ||
'branch-deploy': 'staging', | ||
production: 'production', | ||
}), | ||
}, | ||
}, | ||
}); | ||
``` |
Oops, something went wrong.