Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

optimize(create-farm): Remove child process log output remove chalk library optimize code size #781

Merged
merged 7 commits into from
Nov 25, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
chore: update code
  • Loading branch information
ErKeLost committed Nov 25, 2023
commit 54323c397dfd282b1a6008f8209cbc9680b542ef
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"editor.tabSize": 2
"editor.tabSize": 2,
"editor.inlineSuggest.showToolbar": "onHover"
}
2 changes: 1 addition & 1 deletion packages/core/src/utils/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export async function compilerHandler(
logger.info(
`⚡️ Build completed in ${bold(
green(`${elapsedTime}ms`)
)} ${persistentCacheFlag}! Resources emitted to ${bold(
)} ${persistentCacheFlag} Resources emitted to ${bold(
green(config.config.output.path)
)}.`
);
Expand Down
6 changes: 5 additions & 1 deletion packages/create-farm/utils/color.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,11 @@ export function gradientString(text: string, colors: any) {
return output;
}

function interpolateColor(color1: number[], color2: number[], factor: number) {
export function interpolateColor(
color1: number[],
color2: number[],
factor: number
) {
return [
Math.round(color1[0] + (color2[0] - color1[0]) * factor),
Math.round(color1[1] + (color2[1] - color1[1]) * factor),
Expand Down
Loading