mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-04 12:17:37 +08:00
f868d9afa3
* feat: add full bundle locale * refactor: build
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}`))
|