-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor(Project-Scaffold): Change generator name for Next.js App
- Loading branch information
1 parent
57f9469
commit 56dbc13
Showing
13 changed files
with
45 additions
and
52 deletions.
There are no files selected for viewing
48 changes: 0 additions & 48 deletions
48
packages/project-scaffold/src/generators/create-next-app/index.ts
This file was deleted.
Oops, something went wrong.
13 changes: 13 additions & 0 deletions
13
packages/project-scaffold/src/generators/next-app-biome/index.ts
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,13 @@ | ||
import { type NodePlopAPI } from 'plop' | ||
|
||
export interface TAnswers { | ||
packageManager: 'npm' | 'pnpm' | 'bun' | ||
} | ||
|
||
export default function (plop: NodePlopAPI) { | ||
plop.setGenerator('next-app-biome', { | ||
description: 'Setup Biome for Next.js App', | ||
prompts: [], | ||
actions: [], | ||
}) | ||
} |
13 changes: 13 additions & 0 deletions
13
packages/project-scaffold/src/generators/next-app-clean/index.ts
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,13 @@ | ||
import { type NodePlopAPI } from 'plop' | ||
|
||
export interface TAnswers { | ||
packageManager: 'npm' | 'pnpm' | 'bun' | ||
} | ||
|
||
export default function (plop: NodePlopAPI) { | ||
plop.setGenerator('next-app-clean', { | ||
description: 'Clean Next.js App from Create Next App', | ||
prompts: [], | ||
actions: [], | ||
}) | ||
} |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
13 changes: 13 additions & 0 deletions
13
packages/project-scaffold/src/generators/next-app-structure/index.ts
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,13 @@ | ||
import { type NodePlopAPI } from 'plop' | ||
|
||
export interface TAnswers { | ||
packageManager: 'npm' | 'pnpm' | 'bun' | ||
} | ||
|
||
export default function (plop: NodePlopAPI) { | ||
plop.setGenerator('next-app-structure', { | ||
description: 'Setup Folder Structure for Next.js App (App Router)', | ||
prompts: [], | ||
actions: [], | ||
}) | ||
} |
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,6 +1,8 @@ | ||
import { type NodePlopAPI } from 'plop' | ||
|
||
export default async function (plop: NodePlopAPI) { | ||
await plop.load('./generators/create-next-app', {}, true) | ||
await plop.load('./generators/setup-prettier-eslint', {}, true) | ||
await plop.load('./generators/next-app-clean', {}, true) | ||
await plop.load('./generators/next-app-structure', {}, true) | ||
await plop.load('./generators/next-app-prettier-eslint', {}, true) | ||
await plop.load('./generators/next-app-biome', {}, true) | ||
} |