An open API service indexing awesome lists of open source software.

https://github.com/exodes/turbo-generator

Next.js 13 generator for Turborepo
https://github.com/exodes/turbo-generator

generator nextjs13 plop-generators reactjs turborepo

Last synced: 14 days ago
JSON representation

Next.js 13 generator for Turborepo

Awesome Lists containing this project

README

          

# Turborepo Generator

## What's inside?

This is a template repository for Turborepo. It contains a generator script that will create NextJS 13 boilerplate files for you to get started with Turborepo.

## Getting Started

1. Use the following command to download the generator script:

```bash
npx degit eXodes/turbo-generator/turbo ./turbo --force
```

2. Update `./turbo/generators/_utils/_prompts` according to your project needs.

### Supported Commands

`turbo gen api ` - Generates a new API route

`turbo gen page ` - Generates a new Next page component

`turbo gen layout ` - Generates a new Next layout component

`turbo gen component ` - Generates a new React component

`turbo gen hook ` - Generates a new React hook

`turbo gen context ` - Generates a new React context

`turbo gen function ` - Generates a new utility function

## Useful Links

Learn more about the power of Turborepo:

- [Tasks](https://turbo.build/repo/docs/core-concepts/monorepos/running-tasks)
- [Caching](https://turbo.build/repo/docs/core-concepts/caching)
- [Remote Caching](https://turbo.build/repo/docs/core-concepts/remote-caching)
- [Filtering](https://turbo.build/repo/docs/core-concepts/monorepos/filtering)
- [Configuration Options](https://turbo.build/repo/docs/reference/configuration)
- [CLI Usage](https://turbo.build/repo/docs/reference/command-line-reference)