lizi-wxapp-cli
Version:
微信小程序快速创建cli脚手架
20 lines (15 loc) • 447 B
text/typescript
import chalk from 'chalk'
import Create from './create'
export default class CreateComponent extends Create {
constructor() {
super()
this.typeName = '组件'
this.typeRoot = this.componentRoot
}
public async create(): Promise<any> {
super.create().then(loading => {
loading.succeed(chalk.green(`创建【${this._name}】${this.typeName}成功`))
})
}
}
export const CreateComponentFs = new CreateComponent()