diff options
| author | 2023-11-03 21:25:40 +0800 | |
|---|---|---|
| committer | 2023-11-03 21:25:40 +0800 | |
| commit | 9029588590bea8b10451575c5142dcde77ecd1b5 (patch) | |
| tree | 04cf8aee56c23fd225ff19d340f7cee621d874ef /packages/create-turbo/src/cli.ts | |
| parent | 94071d7ce16c56641d67d488e2bac6be84ffe731 (diff) | |
| download | HydroRoll-9029588590bea8b10451575c5142dcde77ecd1b5.tar.gz HydroRoll-9029588590bea8b10451575c5142dcde77ecd1b5.zip | |
chore: delete useless files
Diffstat (limited to 'packages/create-turbo/src/cli.ts')
| -rw-r--r-- | packages/create-turbo/src/cli.ts | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/packages/create-turbo/src/cli.ts b/packages/create-turbo/src/cli.ts deleted file mode 100644 index 1290a13..0000000 --- a/packages/create-turbo/src/cli.ts +++ /dev/null @@ -1,65 +0,0 @@ -#!/usr/bin/env node - -import chalk from "chalk"; -import { Command } from "commander"; -import notifyUpdate from "./utils/notifyUpdate"; -import { turboGradient, error } from "./logger"; - -import { create } from "./commands"; -import cliPkg from "../package.json"; - -const createTurboCli = new Command(); - -// create -createTurboCli - .name(chalk.bold(turboGradient("create-turbo"))) - .description("Create a new Turborepo") - .usage(`${chalk.bold("<project-directory> <package-manager>")} [options]`) - .argument("[project-directory]") - .argument("[package-manager]") - .option( - "--skip-install", - "Do not run a package manager install after creating the project", - false - ) - .option( - "--skip-transforms", - "Do not run any code transformation after creating the project", - false - ) - .option( - "-e, --example [name]|[github-url]", - ` - An example to bootstrap the app with. You can use an example name - from the official Turborepo repo or a GitHub URL. The URL can use - any branch and/or subdirectory -` - ) - .option( - "-p, --example-path <path-to-example>", - ` - In a rare case, your GitHub URL might contain a branch name with - a slash (e.g. bug/fix-1) and the path to the example (e.g. foo/bar). - In this case, you must specify the path to the example separately: - --example-path foo/bar -` - ) - .version(cliPkg.version, "-v, --version", "output the current version") - .helpOption() - .action(create); - -createTurboCli - .parseAsync() - .then(notifyUpdate) - .catch(async (reason) => { - console.log(); - if (reason.command) { - error(`${chalk.bold(reason.command)} has failed.`); - } else { - error("Unexpected error. Please report it as a bug:"); - console.log(reason); - } - console.log(); - await notifyUpdate(); - process.exit(1); - }); |
