From e744f6fdfc7250e1cbff0426a91da23ca052ff08 Mon Sep 17 00:00:00 2001 From: Thomas Osmonson Date: Mon, 20 Jul 2020 09:25:25 -0500 Subject: [PATCH] refactor: move things around --- {src/lib => lib}/md-loader.js | 2 +- {src/lib => lib}/remark-paragraph-alerts.js | 0 {src/lib => lib}/remark-shiki.js | 0 next.config.js | 4 ++-- 4 files changed, 3 insertions(+), 3 deletions(-) rename {src/lib => lib}/md-loader.js (95%) rename {src/lib => lib}/remark-paragraph-alerts.js (100%) rename {src/lib => lib}/remark-shiki.js (100%) diff --git a/src/lib/md-loader.js b/lib/md-loader.js similarity index 95% rename from src/lib/md-loader.js rename to lib/md-loader.js index 4e9aba25..49bd3561 100644 --- a/src/lib/md-loader.js +++ b/lib/md-loader.js @@ -33,7 +33,7 @@ module.exports = async function (src) { const { content, data } = fm(src); const headings = getHeadings(content); const code = - `import { Layout as DefaultLayout } from '@components/Layouts/default-layout'; + `import { Layout as DefaultLayout } from '@components/layouts/default-layout'; export const meta = ${JSON.stringify({ ...data, headings })}; const Layout = ({ children, ...props }) => ( {children} diff --git a/src/lib/remark-paragraph-alerts.js b/lib/remark-paragraph-alerts.js similarity index 100% rename from src/lib/remark-paragraph-alerts.js rename to lib/remark-paragraph-alerts.js diff --git a/src/lib/remark-shiki.js b/lib/remark-shiki.js similarity index 100% rename from src/lib/remark-shiki.js rename to lib/remark-shiki.js diff --git a/next.config.js b/next.config.js index 47d7e27f..7fc693e2 100755 --- a/next.config.js +++ b/next.config.js @@ -10,7 +10,7 @@ const remarkPlugins = [ { resolveFrom: path.join(__dirname, 'src/common/_includes') }, ], require('remark-squeeze-paragraphs'), - require('./src/lib/remark-paragraph-alerts'), + require('./lib/remark-paragraph-alerts'), require('remark-external-links'), require('remark-emoji'), require('remark-images'), @@ -37,7 +37,7 @@ module.exports = withBundleAnalyzer({ remarkPlugins, }, }, - path.join(__dirname, './src/lib/md-loader'), + path.join(__dirname, './lib/md-loader'), ], });