зеркало из https://github.com/microsoft/just.git
adding a webpack CLI init task
This commit is contained in:
Родитель
b7be70942e
Коммит
2285c2e9d6
|
@ -12,4 +12,4 @@ export * from './upgradeStackTask';
|
|||
export * from './copyInstructionsTask';
|
||||
export * from './prettierTask';
|
||||
export * from './eslintTask';
|
||||
export * from './webpackCLITask';
|
||||
export * from './webpackCliTask';
|
||||
|
|
|
@ -9,7 +9,7 @@ import { tryRequire } from '../tryRequire';
|
|||
* @returns TaskFunction
|
||||
*/
|
||||
export function webpackCliInitTask(customScaffold?: string, auto: Boolean = false): TaskFunction {
|
||||
return async function webpackCli() {
|
||||
return function webpackCli() {
|
||||
const init = tryRequire('@webpack-cli/init').default;
|
||||
if (!init) {
|
||||
logger.warn('webpack-cli init requires three dependencies: @webpack-cli/init (preferred - as a devDependency)');
|
||||
|
|
Загрузка…
Ссылка в новой задаче