diff --git a/.env.development b/.env.development new file mode 100644 index 0000000..2a83dba --- /dev/null +++ b/.env.development @@ -0,0 +1 @@ +S_PIPES_APP_TITLE=SPipes Editor Dev \ No newline at end of file diff --git a/.env.production b/.env.production new file mode 100644 index 0000000..97828a1 --- /dev/null +++ b/.env.production @@ -0,0 +1 @@ +S_PIPES_APP_TITLE=SPipes Editor \ No newline at end of file diff --git a/build-utils/addons/webpack.bundleanalyzer.js b/build-utils/addons/webpack.bundleanalyzer.js deleted file mode 100644 index 69b251e..0000000 --- a/build-utils/addons/webpack.bundleanalyzer.js +++ /dev/null @@ -1,9 +0,0 @@ -const BundleAnalyzerPlugin = require("webpack-bundle-analyzer").BundleAnalyzerPlugin; - -module.exports = { - plugins: [ - new BundleAnalyzerPlugin({ - analyzerMode: "server", - }), - ], -}; diff --git a/build-utils/build-validations.js b/build-utils/build-validations.js deleted file mode 100644 index a06cff9..0000000 --- a/build-utils/build-validations.js +++ /dev/null @@ -1,6 +0,0 @@ -const chalk = require("chalk"); -const ERR_NO_ENV_FLAG = chalk.red(`You must pass an --env.env flag into your build for webpack to work!`); - -module.exports = { - ERR_NO_ENV_FLAG, -}; diff --git a/build-utils/common-paths.js b/build-utils/common-paths.js deleted file mode 100644 index 98aa593..0000000 --- a/build-utils/common-paths.js +++ /dev/null @@ -1,8 +0,0 @@ -const path = require("path"); -const PROJECT_ROOT = path.resolve(__dirname, "../"); - -module.exports = { - projectRoot: PROJECT_ROOT, - outputPath: path.join(PROJECT_ROOT, "dist"), - appEntry: path.join(PROJECT_ROOT, "src"), -}; diff --git a/build-utils/webpack.common.js b/build-utils/webpack.common.js deleted file mode 100644 index 22bb836..0000000 --- a/build-utils/webpack.common.js +++ /dev/null @@ -1,49 +0,0 @@ -const commonPaths = require("./common-paths"); - -const webpack = require("webpack"); -const HtmlWebpackPlugin = require("html-webpack-plugin"); - -const config = { - entry: { - vendor: ["semantic-ui-react"], - }, - output: { - path: commonPaths.outputPath, - publicPath: "/", - }, - module: { - rules: [ - { - test: /\.(js)$/, - exclude: /node_modules/, - use: ["babel-loader"], - }, - ], - }, - optimization: { - splitChunks: { - cacheGroups: { - styles: { - name: "styles", - test: /\.css$/, - chunks: "all", - enforce: true, - }, - vendor: { - chunks: "initial", - test: "vendor", - name: "vendor", - enforce: true, - }, - }, - }, - }, - plugins: [ - new HtmlWebpackPlugin({ - template: `public/index.html`, - favicon: `public/favicon.ico`, - }), - ], -}; - -module.exports = config; diff --git a/build-utils/webpack.dev.js b/build-utils/webpack.dev.js deleted file mode 100644 index c54560c..0000000 --- a/build-utils/webpack.dev.js +++ /dev/null @@ -1,60 +0,0 @@ -const commonPaths = require("./common-paths"); - -const webpack = require("webpack"); - -const port = process.env.PORT || 3000; - -const config = { - mode: "development", - entry: { - app: `${commonPaths.appEntry}/index.js`, - }, - output: { - filename: "[name].[hash].js", - }, - resolve: { - alias: {}, - }, - devtool: "inline-source-map", - module: { - rules: [ - { - test: /\.css$/, - use: [ - { - loader: "style-loader", - }, - { - loader: "css-loader", - options: { - modules: true, - localsConvention: "camelCase", - sourceMap: true, - }, - }, - ], - }, - ], - }, - plugins: [new webpack.HotModuleReplacementPlugin()], - devServer: { - host: "localhost", - port: port, - historyApiFallback: true, - hot: true, - open: true, - proxy: { - "/rest": { - target: "http://localhost:18115/og_spipes", - ws: true, - }, - "/notifications": { - target: "ws://localhost:18115/og_spipes/rest", - changeOrigin: true, - ws: true, - }, - }, - }, -}; - -module.exports = config; diff --git a/build-utils/webpack.prod.js b/build-utils/webpack.prod.js deleted file mode 100644 index d1a052a..0000000 --- a/build-utils/webpack.prod.js +++ /dev/null @@ -1,46 +0,0 @@ -const commonPaths = require("./common-paths"); - -const webpack = require("webpack"); -const MiniCssExtractPlugin = require("mini-css-extract-plugin"); - -const config = { - mode: "production", - entry: { - app: [`${commonPaths.appEntry}/index.js`], - }, - output: { - filename: "static/[name].[hash].js", - }, - devtool: "source-map", - module: { - rules: [ - { - test: /\.css$/, - use: [ - { - loader: MiniCssExtractPlugin.loader, - }, - { - loader: "css-loader", - options: { - modules: true, - importLoaders: 1, - localsConvention: "camelCase", - sourceMap: true, - }, - }, - { - loader: "postcss-loader", - }, - ], - }, - ], - }, - plugins: [ - new MiniCssExtractPlugin({ - filename: "styles/[name].[hash].css", - }), - ], -}; - -module.exports = config; diff --git a/public/index.html b/index.html similarity index 90% rename from public/index.html rename to index.html index 039073b..91fae56 100755 --- a/public/index.html +++ b/index.html @@ -12,10 +12,10 @@ integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous" /> - - - -