Skip to content

Commit

Permalink
Change messaging
Browse files Browse the repository at this point in the history
  • Loading branch information
rebeccahum committed Dec 11, 2023
1 parent ead035d commit e28cfb4
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions src/bin/vip-deploy-app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ export async function deployAppCmd( arg: string[] = [], opts: Record< string, un
const env = opts.env as AppEnvironment;

const [ fileName ] = arg;
let fileMeta = await getFileMeta( fileName );
const fileMeta = await getFileMeta( fileName );
const basename = fileMeta.basename as string;

Check failure on line 112 in src/bin/vip-deploy-app.ts

View workflow job for this annotation

GitHub Actions / Lint

This assertion is unnecessary since it does not change the type of the expression

debug( 'Options: ', opts );
debug( 'Args: ', arg );
Expand All @@ -123,10 +124,10 @@ export async function deployAppCmd( arg: string[] = [], opts: Record< string, un

// Upload file as different name to avoid overwriting existing same named files
const datePrefix = new Date()
.toISOString()
// eslint-disable-next-line no-useless-escape
.replace( /[\-T:\.Z]/g, '' )
.slice( 0, 14 );
.toISOString()
// eslint-disable-next-line no-useless-escape
.replace( /[\-T:\.Z]/g, '' )
.slice( 0, 14 );
fileMeta.basename = `${ datePrefix }-${ fileMeta.basename }`;

const deployMessage = ( opts.message as string ) ?? '';
Expand Down Expand Up @@ -248,7 +249,15 @@ Processing the file for deployment to your environment...

progressTracker.stepSuccess( 'deploy' );
progressTracker.stopPrinting();
console.log( `\nSuccessfully deployed ${ fileName } to ${ domain }. All set!` );
console.log(
`\n✅ ${ chalk.bold(
chalk.underline( chalk.magenta( basename ) )
) } has been sent for deployment to ${ chalk.bold(
chalk.blue( domain )
) }. Please check ${ chalk.bold(
'VIP Dashboard'
) } (under 'Code > Deployments') for deployment status.`
);
}

// Command examples for the `vip deploy app` help prompt
Expand Down

0 comments on commit e28cfb4

Please sign in to comment.