-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(cli/migrate): user-friendly cli output for
replace-remix-imports
- Loading branch information
Showing
5 changed files
with
143 additions
and
35 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
7 changes: 7 additions & 0 deletions
7
packages/remix-dev/cli/migrate/migrations/replace-remix-imports/messages.ts
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import chalk from "chalk"; | ||
|
||
export const detected = (message: string) => | ||
chalk.gray("🕵️ I detected " + message); | ||
|
||
export const because = (message: string) => | ||
chalk.gray(" ...because " + message); |
1 change: 0 additions & 1 deletion
1
packages/remix-dev/cli/migrate/migrations/replace-remix-imports/postinstall.ts
This file was deleted.
Oops, something went wrong.
6 changes: 6 additions & 0 deletions
6
packages/remix-dev/cli/migrate/migrations/replace-remix-imports/remixSetup.ts
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export const remixSetup = /\s*remix\s+setup\s*/; | ||
export const remixSetupRuntime = /\s*remix\s+setup\s+(\w+)\s*/; | ||
export const onlyRemixSetup = new RegExp(`^${remixSetup.source}$`); | ||
export const onlyRemixSetupRuntime = new RegExp( | ||
`^${remixSetupRuntime.source}$` | ||
); |
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