diff --git a/blog/globals.js b/src/globals.js similarity index 100% rename from blog/globals.js rename to src/globals.js diff --git a/blog/helpers/topics.js b/src/helpers/topics.js similarity index 100% rename from blog/helpers/topics.js rename to src/helpers/topics.js diff --git a/tests/topics.test.js b/tests/topics.test.js index 72f5b0a..e24eb70 100644 --- a/tests/topics.test.js +++ b/tests/topics.test.js @@ -1,4 +1,4 @@ -const topics = require("../blog/helpers/topics") +const topics = require("../src/helpers/topics") describe("Test topics handlebars helper", () => { it("single topic supported", () => { diff --git a/webpack.config.js b/webpack.config.js index 6a53c9b..ddc5745 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -12,7 +12,7 @@ const path = require("path") const autoprefixer = require("autoprefixer") const HTMLWebpackPlugin = require("html-webpack-plugin") const MiniCSSExtractPlugin = require("mini-css-extract-plugin") -const globals = require("./blog/globals") +const globals = require("./src/globals") // webpack config object // noinspection WebpackConfigHighlighting @@ -135,7 +135,7 @@ module.exports = { test: /\.hbs$/, loader: "handlebars-loader", options: { - helperDirs: path.join(__dirname, "blog/helpers"), + helperDirs: path.join(__dirname, "src/helpers"), precompileOptions: { knownHelpersOnly: false, } diff --git a/webpack.dev.config.js b/webpack.dev.config.js index 20e968f..6f355c5 100644 --- a/webpack.dev.config.js +++ b/webpack.dev.config.js @@ -14,7 +14,7 @@ const MiniCSSExtractPlugin = require("mini-css-extract-plugin") const HTMLWebpackPlugin = require("html-webpack-plugin") const autoprefixer = require("autoprefixer"); const baseConfig = require("./webpack.config") -const globals = require("./blog/globals") +const globals = require("./src/globals") const sidebar_authenticated = {user: globals.user, authenticated: true} const sidebar_can_comment = {...sidebar_authenticated, can_comment: true} @@ -149,7 +149,7 @@ module.exports = { test: /\.hbs$/, loader: "handlebars-loader", options: { - helperDirs: path.join(__dirname, "blog/helpers"), + helperDirs: path.join(__dirname, "src/helpers"), precompileOptions: { knownHelpersOnly: false, }