Skip to content

Commit

Permalink
Rename project to thoughtbelt (#2)
Browse files Browse the repository at this point in the history
* CLI is invoked with 'belt' so shorter to type
* CLI now invokes the 'react-native' command by default, no need to run eg. 'belt react-native eslint'
  • Loading branch information
stevehanson committed May 9, 2023
1 parent 4217bb8 commit f7d9cc7
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 15 deletions.
17 changes: 9 additions & 8 deletions README.md
@@ -1,22 +1,24 @@
# Suspenders CLI
# thoughtbelt CLI

Perform project setup and redundant tasks without your pants falling down!

This project is still in very early stages. Track this project [in Trello](https://trello.com/b/AGqz2thm/react-native-cli) or in Slack (`#proj-react-native-cli`).

## Usage

This package is not yet available on NPM. For now, you can run the CLI locally Only the scaffolding is in place right now.

Ensure you have a recent version of Node.js installed, then install dependencies:

```
yarn install
```

Only the scaffolding is in place right now. Some example commands:
Then, run some commands, eg.:

```
> yarn suspenders react-native eslint
> yarn suspenders react-native prettier
> bin/belt eslint
> bin/belt prettier
```

## Contributing
Expand All @@ -25,15 +27,14 @@ See the [CONTRIBUTING](./CONTRIBUTING.md) document. Thank you, [contributors](ht

## License

Suspenders CLI is Copyright © 2023 Stephen Hanson and thoughtbot. It is free
software, and may be redistributed under the terms specified in the
[LICENSE](/LICENSE) file.
thoughtbelt is Copyright © 2023 thoughtbot. It is free software, and may be
redistributed under the terms specified in the [LICENSE](/LICENSE) file.

### About thoughtbot

<img src="https://thoughtbot.com/thoughtbot-logo-for-readmes.svg" width="375" />

Suspenders CLI is maintained and funded by thoughtbot, inc.
thoughtbelt is maintained and funded by thoughtbot, inc.
The names and logos for thoughtbot are trademarks of thoughtbot, inc.

We love open source software! See [our other projects][community] or
Expand Down
3 changes: 3 additions & 0 deletions bin/belt
@@ -0,0 +1,3 @@
#!/usr/bin/env bash

node -r ts-node/register ./react-native/react-native.ts "$@"
2 changes: 1 addition & 1 deletion index.ts
@@ -1,7 +1,7 @@
import { program } from "commander";

program
.name("suspenders")
.name("thoughtbelt")
.description(
"Perform project setup and redundant tasks without your pants falling down!"
)
Expand Down
4 changes: 2 additions & 2 deletions package.json
@@ -1,10 +1,10 @@
{
"name": "suspenders-cli",
"name": "thoughtbelt",
"version": "1.0.0",
"description": "Monorepo for project bootstrapping CLIs",
"main": "index.js",
"scripts": {
"suspenders": "node -r ts-node/register ./index.ts",
"belt": "bin/belt",
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "Stephen Hanson",
Expand Down
11 changes: 7 additions & 4 deletions react-native/react-native.ts
Expand Up @@ -3,8 +3,11 @@ import { program } from "commander";
console.log("React Native 🎉");

program
.description('Perform React Native and Expo setup and redundant tasks without your pants falling down!')
.name("thoughtbelt")
.description(
"Perform React Native and Expo setup and redundant tasks without your pants falling down!"
)
.command("eslint", "Configure ESLint", { executableFile: "eslint.ts" })
.command("prettier", "Configure Prettier", { executableFile: "prettier.ts" });

program.parse();
.command("prettier", "Configure Prettier", { executableFile: "prettier.ts" })
.showHelpAfterError()
.parse();

0 comments on commit f7d9cc7

Please sign in to comment.