-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix most stuff * Whitespace * Upgrade spinners * Format * Wrap error in text * Fix devDeps * Remove ink-box * Eslint fix * Eslint * Eslint * Eslint * Fix return type missing * fix: update bundled ink * fix: update caniuse-lite so tests pass * since we started bundling ink resolution check was almost never true ... because `ink` module wasn't installed - it was bundled in `gatsby-cli` (yikes) * workaround rollup problem when trying to import cjs with default * some tests should be fixed * ink auto wraps output, so current ln splitting won't work well - just accumulate output as is and instead of checking exact output, replace spaces with any whitespace in matcher * fix "default" import thingies * add comment about nullable stdout Co-authored-by: Kyle Mathews <mathews.kyle@gmail.com> Co-authored-by: Adam Schay <adamschay@gmail.com> Co-authored-by: Michal Piechowiak <misiek.piechowiak@gmail.com>
- Loading branch information
1 parent
52027db
commit 1e702ae
Showing
15 changed files
with
152 additions
and
184 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
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
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
13 changes: 5 additions & 8 deletions
13
packages/gatsby-cli/src/reporter/loggers/ink/components/utils.tsx
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,14 +1,11 @@ | ||
import React, { FunctionComponent } from "react" | ||
import { Color, ColorProps } from "ink" | ||
|
||
export const ColorSwitcher: FunctionComponent<ColorProps> = ({ | ||
children, | ||
...props | ||
}) => <Color {...props}>{children}</Color> | ||
import { Text, TextProps } from "ink" | ||
|
||
export const createLabel = ( | ||
text: string, | ||
color: string | ||
): FunctionComponent<ColorProps> => (...props): JSX.Element => ( | ||
<ColorSwitcher {...{ [color]: true, ...props }}>{text}</ColorSwitcher> | ||
): FunctionComponent<TextProps> => (...props): JSX.Element => ( | ||
<Text color={color} {...props}> | ||
{text} | ||
</Text> | ||
) |
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
Oops, something went wrong.