Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove command for removing site #577

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions create-app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,6 @@ Create a new Comet app with a different repository and branch:
npx @comet/create-app my-project -r https://github.com/my-company/comet-starter.git -b next
```

### Commands

The following commands can be used to customize the project setup:

- `remove-site`: Removes the site from the project.

Example usage:

```bash
npx @comet/create-app remove-site
```

## For developers

### Development
Expand Down
12 changes: 0 additions & 12 deletions create-app/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ import { Command } from "commander";
import kleur from "kleur";

import { createApp } from "./scripts/create-app/createApp";
import { removeSite } from "./scripts/remove-site/removeSite";
import { cwdIsCometProject } from "./util/cwdIsCometProject";
import { isValidNodeVersion } from "./util/isValidNodeVersion";
import { isValidProjectName } from "./util/isValidProjectName";

Expand Down Expand Up @@ -39,15 +37,5 @@ void (async () => {
})
.configureOutput({ outputError: (str, write) => write(kleur.bgRed(str)) });

program.addCommand(
new Command("remove-site").option("-v, --verbose", "Enables extra console logs for verbose output.").action((options) => {
if (!cwdIsCometProject()) {
program.error(`This command must be run from the root of a Comet project.`);
}

console.log("Removing site from project...");
removeSite(options.verbose);
}),
);
program.parse();
})();
22 changes: 0 additions & 22 deletions create-app/src/scripts/remove-site/removeSite.ts

This file was deleted.