lib/utils/generate-imports.js
function generateImports (context) {
  const { files, tree } = getPageData(context)

  store.state.components = tree

  const output = files
    .slice()
    .map(file => `import '@/${file}'`)
    .join('\n')

  fs.ensureDirSync(path.join(context, '.temp'))
  fs.writeFileSync(path.join(context, '.temp/html.js'), output)
}
function generateImports (context) {
  const { files, tree } = getPageData(context)

  store.state.components = tree

  const output = files
    .slice()
    .map(file => `import '@/${file}'`)
    .join('\n')

  fs.ensureDirSync(path.join(context, '.temp'))
  fs.writeFileSync(path.join(context, '.temp/html.js'), output)
}
function generateImports ( context ) { const { files , tree } = getPageData ( context ) store . state . components = tree const output = files . slice ( ) . map ( file => ` ${ file } ` ) . join ( '\n' ) fs . ensureDirSync ( path . join ( context , '.temp' ) ) fs . writeFileSync ( path . join ( context , '.temp/html.js' ) , output ) }
Generate components docs index file
@param {string} context Project directory
Generate components docs index file