INNER CODE UNIT · JavaScript
docsExternalPlugins
codeceptjs/CodeceptJS · Bunoshfile.js:157
export async function docsExternalPlugins() {
say('Building Vue plugin docs')
const resp = await axios.get('https://raw.githubusercontent.com/codecept-js/vue-cli-plugin-codeceptjs-puppeteer/master/README.md')
await writeToFile('docs/vue.md', line => {
line`---\npermalink: /vue\nlayout: Section\nsidebar: false\ntitle: Testing Vue Apps\n---\n\n`
line`${resp.data}`
})
}
/**
* Copy helpers into docs/build and inline webapi partials (optionally preserving CodeceptJS types for typings).
* @param {boolean} [forTypings=false] - Keep CodeceptJS.* type names instead of expanding them.
*/
export async function buildLibWithDocs(forTypings = false) {
task.stopOnFailures()
const files = fs.readdirSync('lib/helper').filter(f => path.extname(f) === '.js')
ensureDir('docs/build')