-
-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(nx-prisma): better executors schemas descriptions
- Loading branch information
Showing
34 changed files
with
201 additions
and
94 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
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,60 +1,59 @@ | ||
{ | ||
"$schema": "http://json-schema.org/schema", | ||
"executors": { | ||
"deploy": { | ||
"implementation": "./src/executors/deploy/executor", | ||
"schema": "./src/executors/deploy/schema.json", | ||
"description": "Applies all pending migrations, and creates the database if it does not exist" | ||
}, | ||
"validate": { | ||
"implementation": "./src/executors/validate/executor", | ||
"schema": "./src/executors/validate/schema.json", | ||
"description": "Validates your prisma schema" | ||
"description": "The migrate deploy command applies all pending migrations, and creates the database if it does not exist. Primarily used in non-development environments." | ||
}, | ||
"generate": { | ||
"implementation": "./src/executors/generate/executor", | ||
"schema": "./src/executors/generate/schema.json", | ||
"description": "Generates assets like Prisma Client based on the generator and data model blocks defined in your schema.prisma file" | ||
"description": "The generate command generates assets like Prisma Client based on the generator and data model blocks defined in your schema.prisma file." | ||
}, | ||
"migrate": { | ||
"implementation": "./src/executors/migrate/executor", | ||
"schema": "./src/executors/migrate/schema.json", | ||
"description": "Syncs Prisma Migrations" | ||
"description": "The migrate dev command updates your database using migrations during development and creates the database if it does not exist." | ||
}, | ||
"pull": { | ||
"implementation": "./src/executors/pull/executor", | ||
"schema": "./src/executors/pull/schema.json", | ||
"description": "Connects to your database and adds Prisma models to your Prisma schema that reflect the current database schema" | ||
"description": "The db pull command connects to your database and adds Prisma models to your Prisma schema that reflect the current database schema." | ||
}, | ||
"push": { | ||
"implementation": "./src/executors/push/executor", | ||
"schema": "./src/executors/push/schema.json", | ||
"description": "Pushes the state of your Prisma schema file to the database without using migrations. It creates the database if the database does not exist." | ||
"description": "The db push command pushes the state of your Prisma schema file to the database without using migrations. It creates the database if the database does not exist." | ||
}, | ||
"reset": { | ||
"implementation": "./src/executors/reset/executor", | ||
"schema": "./src/executors/reset/schema.json", | ||
"description": "Deletes and recreates the database, or performs a 'soft reset' by removing all data, tables, indexes, and other artifacts" | ||
"description": "This command deletes and recreates the database, or performs a 'soft reset' by removing all data, tables, indexes, and other artifacts." | ||
}, | ||
"resolve": { | ||
"implementation": "./src/executors/resolve/executor", | ||
"schema": "./src/executors/resolve/schema.json", | ||
"description": "Allows you to solve migration history issues in production by marking a failed migration as already applied (supports baselining) or rolled back" | ||
"description": "The migrate resolve command allows you to solve migration history issues in production by marking a failed migration as already applied (supports baselining) or rolled back." | ||
}, | ||
"seed": { | ||
"implementation": "./src/executors/seed/executor", | ||
"schema": "./src/executors/seed/schema.json", | ||
"description": "Seed your database using Prisma Client" | ||
"description": "Seed your database." | ||
}, | ||
"status": { | ||
"implementation": "./src/executors/status/executor", | ||
"schema": "./src/executors/status/schema.json", | ||
"description": "Looks up the migrations and shows the DB status" | ||
"description": "The prisma migrate status command looks up the migrations in migrations folder and the entries in the _prisma_migrations table and compiles information about the state of the migrations in your database." | ||
}, | ||
"studio": { | ||
"implementation": "./src/executors/studio/executor", | ||
"schema": "./src/executors/studio/schema.json", | ||
"description": "The studio command allows you to interact with and manage your data interactively" | ||
"description": "The studio command allows you to interact with and manage your data interactively. It does this by starting a local web server with a web app configured with your project's data schema and records." | ||
}, | ||
"validate": { | ||
"implementation": "./src/executors/validate/executor", | ||
"schema": "./src/executors/validate/schema.json", | ||
"description": "Validates the Prisma Schema Language of the Prisma schema file." | ||
} | ||
} | ||
} |
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,25 +1,25 @@ | ||
{ | ||
"name": "@nx-tools/nx-prisma", | ||
"version": "5.0.3", | ||
"version": "6.0.0-alpha.1", | ||
"type": "commonjs", | ||
"author": "gperdomor <[email protected]>", | ||
"contributors": [ | ||
"wSedlacek" | ||
], | ||
"repository": "https://github.com/gperdomor/nx-tools", | ||
"bugs": "https://github.com/gperdomor/nx-tools/issues", | ||
"license": "MIT", | ||
"main": "src/index.js", | ||
"generators": "./generators.json", | ||
"main": "./src/index.js", | ||
"typings": "./src/index.d.ts", | ||
"executors": "./executors.json", | ||
"generators": "./generators.json", | ||
"dependencies": { | ||
"@nx-tools/core": "5.0.3", | ||
"semver": "7.5.4" | ||
"@nx-tools/core": "6.0.0-alpha.1" | ||
}, | ||
"peerDependencies": { | ||
"@nx/devkit": "^16.0.0", | ||
"@nx/workspace": "^16.0.0", | ||
"prisma": "^4.5.0 || ^5.0.0", | ||
"ts-node": "*", | ||
"prisma": "^5.0.0", | ||
"ts-node": "^10.0.0", | ||
"tslib": "^2.5.3" | ||
} | ||
} |
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,4 +1,12 @@ | ||
/** | ||
* This file was automatically generated by json-schema-to-typescript. | ||
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, | ||
* and run json-schema-to-typescript to regenerate this file. | ||
*/ | ||
|
||
import { PrismaBase } from '../../interfaces'; | ||
|
||
// eslint-disable-next-line @typescript-eslint/no-empty-interface | ||
export interface DeployExecutorSchema extends PrismaBase {} | ||
/** | ||
* Applies all pending migrations, and creates the database if it does not exist. | ||
*/ | ||
export type DeployExecutorSchema = PrismaBase; |
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
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
Oops, something went wrong.