0.1.1 • Published 1 year ago

idea-drizzle v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

💡 Idea Drizzle

Transforms ideas to implemented Drizzle code.

Install

$ npm i idea-drizzle

Usage

In your .idea file, add the following plugin settings.

plugin "idea-ts" {
  lang "ts"
  enums "./modules/enums"
  types "./modules/[name]/types"
}

plugin "idea-assert" {
  output "./modules/[name]/assert"
}

plugin "idea-drizzle" {
  lang "ts"
  engine "pg"
  url "env(DATABASE_URL)"
  actions "./modules/[name]/actions"
  schema "./modules/[name]/schema"
  store "./modules/store"
}

Configurations

NameTypeDescription
langstringtransforms to js or ts
enginestringdatabase engine to use
urlstringdatabase URL location
actionsstringpath to put generated actions code
schemastringpath to put generated schema code
storestringpath to put generated store code
0.1.1

1 year ago

0.1.0

1 year ago