-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename project from thoughtbelt to Belt (#32)
[Ticket](https://trello.com/c/uzf7Yj1p/31-finalize-name-of-the-thoughtbelt-tool). This is currently in a private Trello board, will be migrating this project to GitHub as the repo becomes public. * [x] Rename repo to "belt" * [x] Publish npm package "create-belt-app" * [x] Update references to thoughtbelt in the code * [x] Test the published package to ensure it works as expected * [x] `npx create-belt-app MyApp` then `npx belt <cmd>` works * [x] `npx create-belt-app MyApp --yarn` (bundles with yarn), then `yarn belt <cmd>` works * [x] [solution in comment] `yarn create belt-app MyApp` (bundles with yarn), then `yarn belt <cmd>` works * This currently results in an error when run with yarn 1.22.19 (I believe v1 is now deprecated though...) (output below) * [x] [solution in comment] `bunx create belt-app MyApp`, then `bunx belt <cmd>` works * Results in same error as yarn, even references `~/.config/yarn/global` 🤔 <details> <summary>❌ yarn create belt-app error</summary> ``` success Installed "[email protected]" with binaries: - create-belt-app - belt 👖 Belt 👖 Perform project setup and redundant tasks without your pants falling down! /Users/shanson/.config/yarn/global/node_modules/wrap-ansi/index.js:2 const stringWidth = require('string-width'); ^ Error [ERR_REQUIRE_ESM]: require() of ES Module /Users/shanson/.config/yarn/global/node_modules/string-width/index.js from /Users/shanson/.config/yarn/global/node_modules/wrap-ansi/index.js not supported. Instead change the require of /Users/shanson/.config/yarn/global/node_modules/string-width/index.js in /Users/shanson/.config/yarn/global/node_modules/wrap-ansi/index.js to a dynamic import() which is available in all CommonJS modules. at Object.<anonymous> (/Users/shanson/.config/yarn/global/node_modules/wrap-ansi/index.js:2:21) { code: 'ERR_REQUIRE_ESM' } Node.js v21.1.0 error Command failed. Exit code: 1 Command: /Users/shanson/.yarn/bin/create-belt-app Arguments: NewApp0202-yarn-create Directory: /Users/shanson/dev ``` </details>
- Loading branch information
Stephen Hanson
authored
Feb 2, 2024
1 parent
5c8eafa
commit 0690c13
Showing
7 changed files
with
50 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: thoughtbelt CI | ||
name: Belt CI | ||
|
||
on: | ||
push: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters