Next Builder is a CLI tool designed to streamline the process of creating organized components and pages in a Next.js v14 project using TypeScript and the app router. It automates the creation of files and directories, ensuring a consistent structure and
npm install next-buildersh
npm install -g next-builder
`
$3
To create a new page, use the cp (create page) command. The command will generate the necessary files and directories based on the provided options.
$3
Yeni bir sayfa oluşturmak için cp (create page) komutunu kullanın. Komut, sağlanan seçeneklere göre gerekli dosya ve dizinleri oluşturacaktır.
#### Example Usage:
`sh
Create a new page with the name 'MyPage'
'MyPage' adında yeni bir sayfa oluşturun
next-builder cp MyPage
Folders structure for this example : app/(pages)/MyPage
Create a new page with an author name and group
Yaratıcı ismi ve grup ile yeni bir sayfa oluşturun
next-builder cp MyPage -a "Author Name" -g "MyGroup"
Folders structure for this example : app/(pages)/(MyGroup)/MyPage
Create a new page in a specific directory
Belirli bir dizinde yeni bir sayfa oluşturun
next-builder cp MyPage -d "my-directory"
Folders structure for this example : app/(pages)/my-directory/MyPage
Create a new page with parallel routing enabled
Paralel yönlendirme etkin olan yeni bir sayfa oluşturun
next-builder cp MyPage -p -d parallel
Folders structure for this example : app/(pages)/parallel/@MyPage
`
$3
To create a new component, use the cc (create component) command. The command will generate the necessary files and directories based on the provided options.
$3
Yeni bir bileşen oluşturmak için cc (create component) komutunu kullanın. Komut, sağlanan seçeneklere göre gerekli dosya ve dizinleri oluşturacaktır.
#### Example Usage:
``sh