element-plus/build/utils/gulp.ts
三咲智子 f868d9afa3
feat(build): add full bundle locale (#5399)
* feat: add full bundle locale

* refactor: build
2022-01-17 11:19:11 +08:00

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}`))