🎥 Make videos programmatically with React
change output
Samuel45bcc81f4eb6
diff --git a/packages/cli/src/log.ts b/packages/cli/src/log.tsindex 2ca8bfcb71..b98cdb13e2 100644--- a/packages/cli/src/log.ts+++ b/packages/cli/src/log.ts@@ -24,4 +24,10 @@ export const Log = {return console.error(chalk.red(...args));}},+ Green: (...args: Parameters<typeof console.log>) => {+ return console.log(chalk.green(...args));+ },+ Cyan: (...args: Parameters<typeof console.log>) => {+ return console.log(chalk.cyan(...args));+ },};diff --git a/packages/cli/src/render.tsx b/packages/cli/src/render.tsxindex 8ef1430a54..9269e442e0 100644--- a/packages/cli/src/render.tsx+++ b/packages/cli/src/render.tsx@@ -28,6 +28,7 @@ import {getUserPassedFileExtension} from './user-passed-output-location';import {warnAboutFfmpegVersion} from './warn-about-ffmpeg-version';export const render = async () => {+ const startTime = new Date().getTime();const file = parsedCli._[1];const fullPath = path.join(process.cwd(), file);@@ -277,10 +278,12 @@ export const render = async () => {Log.Error('Do you have minimum required Node.js version?');process.exit(1);}- Log.Info('\n▶️ Your video is ready - hit play!');+ Log.Green('\n✅ Well done, Your video is ready!');} else {- Log.Info('\n▶️ Your image sequence is ready!');+ Log.Green('\n✅ Well done, Your image sequence is ready!');}- Log.Info(absoluteOutputFile);+ Log.Info('\n- Total render time :', Math.round((new Date().getTime() - startTime)/1000), 'second(s)');+ Log.Info('-', outputFile, 'can be found in :');+ Log.Cyan(' ▶️', absoluteOutputFile, '\n')await closeBrowserPromise;};