create-t2c-app v0.3.1
Create T2C App
The best way to start a new web project is with create-t2c-app
. This CLI tool allows you to quickly scaffold a Next.js project with great defaults for TypeScript, ESLint, and more. To get started, run the following command:
Installation
Interactive Mode
Run the CLI interactively to create a new project:
npx create-t2c-app@latest
# or
yarn dlx create-t2c-app
# or
pnpm dlx create-t2c-app
# or
bun x create-t2c-app
You will be asked for the name of your project followed by a few other questions:
Should we create the project as a monorepo? ... Yes / No
Selecting Yes sets up a monorepo powered by Turborepo.
Should we initialize a Git repository and stage the changes? ... Yes / No
Selecting Yes initializes a Git repository and stages the initial changes.
Should we run the install command for you? ... Yes / No
Selecting Yes installs dependencies using your chosen package manager.
Non-Interactive Mode
You can also use command-line arguments to set up a project without prompts. Run create-t2c-app --help
to see available options:
Usage: create-t2c-app [options] [dir]
A CLI for creating web applications with great defaults
Arguments:
dir The name of the application/workspace, as well as the name of the directory to create
Options:
-v, --version Display the version number
--mono Explicitly tell the CLI to create a monorepo (default: false)
--noGit Explicitly tell the CLI to not initialize a new git repo in the project (default: false)
--noInstall Explicitly tell the CLI no not run the package manager's install command (default: false)
-y, --default Bypass the CLI and use all default options to bootstrap a new project. (default: false)
-h, --help display help for command
Why use Create T2C App?
There are plenty of great CLI tools out there like create-t3-app
, but I made create-t2c-app
to give me (and hopefully you!) an easy way to start projects with my ideal setup. Here are my favorite defaults:
- Preconfigured to easily add components using our component CLI.
- Monorepo and standalone project support in a single CLI.
- Strict ESLint rules for best practices and code quality.
- Custom import sorting using Prettier.
- Commit linting with Commitlint and Husky.
If these defaults align with your workflow, create-t2c-app
might be the perfect starting point for your projects!
Documentation
Vists https://design.time2code.dev/docs/primitives/create-app-cli to view the documentation.
License
Licensed under the MIT license