/
githubmirror
/
gutenberg
Обзор
Документация
Войти
/
githubmirror
/
gutenberg
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
trunk
packages/env/lib/commands/stop.js
24 строки
777 B
Marco Ciampini
ESLint: Replace strict config with bulk suppressions (#81248)
07 авг 2026, 14:34
Не верифицирован
07 авг 2026, 14:34
7f43eaf
Код
Авторство
О чём код?
'use strict'; const path = require( 'path' ); const { loadConfig } = require( '../config' ); const { getRuntime, detectRuntime } = require( '../runtime' ); /** * Stops the development server. * * @param {Object} options * @param {Object} options.spinner A CLI spinner which indicates progress. * @param {boolean} options.debug True if debug mode is enabled. * @param {string|null} options.config Path to a custom .wp-env.json configuration file. */ module.exports = async function stop( { spinner, debug, config: customConfigPath, } ) { const config = await loadConfig( path.resolve( '.' ), customConfigPath ); const runtime = getRuntime( await detectRuntime( config.workDirectoryPath ) ); await runtime.stop( config, { spinner, debug } ); };