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()
