/
githubmirror
/
gutenberg
Обзор
Документация
Войти
/
githubmirror
/
gutenberg
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
trunk
packages/create-block/lib/init-wp-scripts.js
24 строки
584 B
Marco Ciampini
ESLint: Replace strict config with bulk suppressions (#81248)
07 авг 2026, 14:34
Не верифицирован
07 авг 2026, 14:34
7f43eaf
Код
Авторство
О чём код?
const { command } = require( 'execa' ); const { info } = require( './log' ); module.exports = async ( { rootDirectory } ) => { info( '' ); info( 'Installing `@wordpress/scripts` package. It might take a couple of minutes...' ); await command( 'npm install @wordpress/scripts --save-dev', { cwd: rootDirectory, } ); info( '' ); info( 'Formatting JavaScript files.' ); await command( 'npm run format', { cwd: rootDirectory, } ); info( '' ); info( 'Compiling block and generating blocks manifest.' ); await command( 'npm run build', { cwd: rootDirectory, } ); };