From 0dc731e78dd1c6326b6c1ed1191eb155f9faaa88 Mon Sep 17 00:00:00 2001 From: Siddharth Suresh Date: Wed, 12 Oct 2022 20:34:33 +0530 Subject: [PATCH 1/4] Update cli-generate.mdx --- app/pages/docs/cli-generate.mdx | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/app/pages/docs/cli-generate.mdx b/app/pages/docs/cli-generate.mdx index 64bbbf3d..b5be2cc4 100644 --- a/app/pages/docs/cli-generate.mdx +++ b/app/pages/docs/cli-generate.mdx @@ -269,10 +269,30 @@ field to the `Task` model. blitz generate model task subheading:string ``` - +default ones (e.g. with different styles). You can specify it in your `app/blitz-server` +file by exporting the `cliConfig` object + +```ts +import type { BlitzCliConfig } from "blitz" +... +export const cliConfig: BlitzCliConfig = { + customTemplates: "app/templates", +} +``` + +#### Generate custom templates + +```bash +blitz generate custom-templates +``` +The above command will generate the default templates used by blitz to a directory of your choosing in order +to provide an easy starting point to use this feature. This command will also update the `cliConfig` +with the latest file path to provide immediate usage. + + + + + From 5fdff5e5d47d6880723516d9cc840807d5d6757b Mon Sep 17 00:00:00 2001 From: Siddharth Suresh Date: Wed, 12 Oct 2022 20:39:24 +0530 Subject: [PATCH 2/4] Update cli-generate.mdx --- app/pages/docs/cli-generate.mdx | 5 ----- 1 file changed, 5 deletions(-) diff --git a/app/pages/docs/cli-generate.mdx b/app/pages/docs/cli-generate.mdx index b5be2cc4..b4ba5fd3 100644 --- a/app/pages/docs/cli-generate.mdx +++ b/app/pages/docs/cli-generate.mdx @@ -291,8 +291,3 @@ blitz generate custom-templates The above command will generate the default templates used by blitz to a directory of your choosing in order to provide an easy starting point to use this feature. This command will also update the `cliConfig` with the latest file path to provide immediate usage. - - - - - From 85ea370c255814315c62e043e014840d5fbfaf43 Mon Sep 17 00:00:00 2001 From: Siddharth Suresh Date: Wed, 12 Oct 2022 20:42:08 +0530 Subject: [PATCH 3/4] Update cli-generate.mdx --- app/pages/docs/cli-generate.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/pages/docs/cli-generate.mdx b/app/pages/docs/cli-generate.mdx index b4ba5fd3..4c5fa594 100644 --- a/app/pages/docs/cli-generate.mdx +++ b/app/pages/docs/cli-generate.mdx @@ -289,5 +289,5 @@ export const cliConfig: BlitzCliConfig = { blitz generate custom-templates ``` The above command will generate the default templates used by blitz to a directory of your choosing in order -to provide an easy starting point to use this feature. This command will also update the `cliConfig` +to provide a starting point to use this feature. This command will also update the `cliConfig` with the latest file path to provide immediate usage. From ce4864f084d43443cf1823b1e9ff346a514bece2 Mon Sep 17 00:00:00 2001 From: Siddharth Suresh Date: Wed, 12 Oct 2022 20:46:07 +0530 Subject: [PATCH 4/4] Update cli-generate.mdx --- app/pages/docs/cli-generate.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/pages/docs/cli-generate.mdx b/app/pages/docs/cli-generate.mdx index 4c5fa594..1cc0b16d 100644 --- a/app/pages/docs/cli-generate.mdx +++ b/app/pages/docs/cli-generate.mdx @@ -289,5 +289,5 @@ export const cliConfig: BlitzCliConfig = { blitz generate custom-templates ``` The above command will generate the default templates used by blitz to a directory of your choosing in order -to provide a starting point to use this feature. This command will also update the `cliConfig` -with the latest file path to provide immediate usage. +to provide a starting point to use this feature. It will also update the `cliConfig` configuration, in the `app/blitz-server` file, +with the latest data to allow immediate usage.