code: function startInit(dirPath, options) {
    if (options.type === 'custom-component') {
      // 自定义组件
      if (options.force) {
        startInitCustomComponent(dirPath, options)
      } else {
        try {
          fs.accessSync(path.join(dirPath, './package.json'))
          // eslint-disable-next-line no-console
          console.log(`project already exists: ${dirPath}`)
        } catch (err) {
          startInitCustomComponent(dirPath, options)
        }
      }
    } else {
      // 其他 quickstart
      if (options.force) {
        initQuickstart(dirPath, options)
      } else {
        try {
          fs.accessSync(path.join(dirPath, './project.config.json'))
          // eslint-disable-next-line no-console
          console.log(`project already exists: ${dirPath}`)
        } catch (err) {
          initQuickstart(dirPath, options)
        }
      }
    }
  }
docs: 开始初始化