mirror of
https://github.com/wahyd4/vuepress.git
synced 2026-08-12 06:46:24 +10:00
Breaking changes: - Plugin option`enhanceDevServer` was removed. New plugin option API: - beforeDevServer - afterDevServer
20 lines
417 B
JavaScript
20 lines
417 B
JavaScript
'use strict'
|
|
|
|
/**
|
|
* Module dependencies.
|
|
*/
|
|
|
|
const AppContext = require('./AppContext')
|
|
const { logger } = require('@vuepress/shared-utils')
|
|
|
|
/**
|
|
* Expose prepare.
|
|
*/
|
|
|
|
module.exports = async function prepare (sourceDir, cliOptions, isProd) {
|
|
logger.wait('Extracting site metadata...')
|
|
const appContext = AppContext.getInstance(sourceDir, cliOptions, isProd)
|
|
await appContext.process()
|
|
return appContext
|
|
}
|