mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
9 lines
294 B
TypeScript
9 lines
294 B
TypeScript
import { run } from './process'
|
|
import type { TaskFunction } from 'gulp'
|
|
|
|
export const withTaskName = <T extends TaskFunction>(name: string, fn: T) =>
|
|
Object.assign(fn, { displayName: name })
|
|
|
|
export const runTask = (name: string) =>
|
|
withTaskName(name, () => run(`pnpm run build ${name}`))
|