UNPKG

530 BJavaScriptView Raw
1/**
2 * Print anything in the start.
3 *
4 * @param {string} blockName The block name.
5 * @param {string} blockDir The block directory.
6 */
7
8'use strict';
9
10const chalk = require( 'chalk' );
11
12module.exports = ( blockName, blockDir ) => {
13 console.log( '\n' );
14 console.log(
15 '📦 ',
16 chalk.black.bgYellow(
17 ` Creating a WP Gutenberg Block plugin called: ${ chalk.bgGreen(
18 ` ${ blockName } `
19 ) }\n`
20 ),
21 chalk.dim( `\n In the directory: ${ blockDir }\n` ),
22 chalk.dim( 'This might take a couple of minutes.\n' )
23 );
24};