diff --git a/packages/create-block/lib/index.js b/packages/create-block/lib/index.js index aa00ce44712bdb..d57c87c73b4491 100644 --- a/packages/create-block/lib/index.js +++ b/packages/create-block/lib/index.js @@ -91,6 +91,8 @@ program ( { name } ) => ! Object.keys( optionsValues ).includes( name ) ); + log.info( '' ); + log.info( "Let's customize your block:" ); const answers = await inquirer.prompt( prompts ); await scaffold( blockTemplate, { ...defaultValues, diff --git a/packages/create-block/lib/init-wp-scripts.js b/packages/create-block/lib/init-wp-scripts.js index ac2ec27d6ff876..f375cd82398841 100644 --- a/packages/create-block/lib/init-wp-scripts.js +++ b/packages/create-block/lib/init-wp-scripts.js @@ -13,7 +13,7 @@ module.exports = async ( { slug } ) => { const cwd = join( process.cwd(), slug ); info( '' ); - info( 'Installing packages. It might take a couple of minutes.' ); + info( 'Installing packages. It might take a couple of minutes...' ); await command( 'npm install @wordpress/scripts --save-dev', { cwd, } ); diff --git a/packages/create-block/lib/templates.js b/packages/create-block/lib/templates.js index d17e7678cc950b..cb8b01a303debf 100644 --- a/packages/create-block/lib/templates.js +++ b/packages/create-block/lib/templates.js @@ -16,6 +16,7 @@ const lazyImport = require( '@wordpress/lazy-import' ); * Internal dependencies */ const CLIError = require( './cli-error' ); +const { info } = require( './log' ); const prompts = require( './prompts' ); const predefinedBlockTemplates = { @@ -94,12 +95,16 @@ const getBlockTemplate = async ( templateName ) => { } try { + info( '' ); + info( 'Downloading template files. It might take some time...' ); + const { defaultValues = {}, templatesPath } = await lazyImport( templateName ); if ( ! isObject( defaultValues ) || ! templatesPath ) { throw new Error(); } + return { defaultValues, outputTemplates: await getOutputTemplates( templatesPath ),