UNPKG

jschemer

Version:

A Node.js library to generate documentation for JSON Schemas

21 lines (15 loc) 757 B
const { copyFile } = require(`fs`).promises; const path = require(`path`); /** * Copies the files from dependencies into the project folders as needed * @return {Promise} */ async function copyFiles() { const srcGFMPath = path.join(__dirname, `../node_modules/github-markdown-css/github-markdown.css`); const destGFMPath = path.join(__dirname, `../components/readme/markdown.less`); await copyFile(srcGFMPath, destGFMPath); const srcHighlightingCSSPath = path.join(__dirname, `../node_modules/highlight.js/styles/atom-one-light.css`); const destHighlightingCSSPath = path.join(__dirname, `../components/readme/atom-one-light.less`); await copyFile(srcHighlightingCSSPath, destHighlightingCSSPath); } module.exports = copyFiles;