0.2.0 • Published 2 years ago

@altipla/directus-drizzle-schema v0.2.0

Weekly downloads
-
License
UNLICENSED
Repository
github
Last release
2 years ago

directus-drizzle-schema

Generate a Drizzle schema from a Directus instance.

Install

npm i -D @altipla/directus-drizzle-schema

Usage

Configure the download command in your package.json file:

{
  "scripts": {
    "dbpull": "directus-drizzle-schema --instance https://www.foo.com --out src/models/schema.ts"
  }
}

Configure a secret token in your local .env variables:

DIRECTUS_TOKEN=XYZ_TOKEN

And run the command every time you want to regenerate the schema file:

npm run dbpull
0.2.0

2 years ago

0.1.11

2 years ago

0.1.12

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago