-
Notifications
You must be signed in to change notification settings - Fork 399
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: replace chalk with smaller and faster ansis
- Loading branch information
Showing
19 changed files
with
86 additions
and
74 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
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,24 +1,22 @@ | ||
import * as chalk from 'chalk'; | ||
import { bgCyan, bgGreen, bgRed, cyan, green, red } from 'ansis'; | ||
|
||
export const TSC_NO_ERRORS_MESSAGE = | ||
'Found 0 errors. Watching for file changes.'; | ||
|
||
export const TSC_COMPILATION_STARTED_MESSAGE = | ||
'Starting compilation in watch mode...'; | ||
|
||
export const SWC_LOG_PREFIX = chalk.cyan('> ') + chalk.bgCyan.bold(' SWC '); | ||
export const SWC_LOG_PREFIX = cyan('> ') + bgCyan.bold(' SWC '); | ||
|
||
export const TSC_LOG_PREFIX = chalk.cyan('> ') + chalk.bgCyan.bold(' TSC '); | ||
export const TSC_LOG_ERROR_PREFIX = chalk.red('> ') + chalk.bgRed.bold(' TSC '); | ||
export const TSC_LOG_SUCCESS_PREFIX = | ||
chalk.green('> ') + chalk.bgGreen.bold(' TSC '); | ||
export const TSC_LOG_PREFIX = cyan('> ') + bgCyan.bold(' TSC '); | ||
export const TSC_LOG_ERROR_PREFIX = red('> ') + bgRed.bold(' TSC '); | ||
export const TSC_LOG_SUCCESS_PREFIX = green('> ') + bgGreen.bold(' TSC '); | ||
|
||
export const INITIALIZING_TYPE_CHECKER = | ||
chalk.bgCyan.bold(' TSC ') + chalk.cyan(' Initializing type checker...'); | ||
bgCyan.bold(' TSC ') + cyan(' Initializing type checker...'); | ||
|
||
export const FOUND_NO_ISSUES_METADATA_GENERATION_SKIPPED = | ||
TSC_LOG_SUCCESS_PREFIX + chalk.green(' Found 0 issues.'); | ||
TSC_LOG_SUCCESS_PREFIX + green(' Found 0 issues.'); | ||
|
||
export const FOUND_NO_ISSUES_GENERATING_METADATA = | ||
TSC_LOG_SUCCESS_PREFIX + | ||
chalk.green(' Found 0 issues. Generating metadata...'); | ||
TSC_LOG_SUCCESS_PREFIX + green(' Found 0 issues. Generating metadata...'); |
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
Oops, something went wrong.