From f7a26dbc6ad328179a6fe2e2ccdc5e3801446218 Mon Sep 17 00:00:00 2001 From: Alejandro Lembke Barrientos Date: Wed, 13 Apr 2022 20:12:15 +0000 Subject: [PATCH] PR-753737: moviendo toda la logica de front-end a src. --- .gitignore | 11 +++++++---- .babelrc => src/.babelrc | 0 .env.example => src/.env.example | 0 LICENSE => src/LICENSE | 0 PRNameGenerator.ts => src/PRNameGenerator.ts | 0 src/{ => frontend}/components/App.jsx | 0 src/{ => frontend}/index.js | 0 src/{ => frontend}/styles/global.sass | 0 package-lock.json => src/package-lock.json | 0 package.json => src/package.json | 0 {public => src/public}/index.html | 0 webpack.config.dev.js => src/webpack.config.dev.js | 6 +++--- webpack.config.js => src/webpack.config.js | 4 ++-- 13 files changed, 12 insertions(+), 9 deletions(-) rename .babelrc => src/.babelrc (100%) rename .env.example => src/.env.example (100%) rename LICENSE => src/LICENSE (100%) rename PRNameGenerator.ts => src/PRNameGenerator.ts (100%) rename src/{ => frontend}/components/App.jsx (100%) rename src/{ => frontend}/index.js (100%) rename src/{ => frontend}/styles/global.sass (100%) rename package-lock.json => src/package-lock.json (100%) rename package.json => src/package.json (100%) rename {public => src/public}/index.html (100%) rename webpack.config.dev.js => src/webpack.config.dev.js (90%) rename webpack.config.js => src/webpack.config.js (94%) diff --git a/.gitignore b/.gitignore index 6ebfbcb..7d5efcd 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,9 @@ #node_modules ignore -node_modules +src/node_modules +server/node_modules #.envs -.env -#build -/build \ No newline at end of file +src/.env +server/.env +#builds +src/build +server/build \ No newline at end of file diff --git a/.babelrc b/src/.babelrc similarity index 100% rename from .babelrc rename to src/.babelrc diff --git a/.env.example b/src/.env.example similarity index 100% rename from .env.example rename to src/.env.example diff --git a/LICENSE b/src/LICENSE similarity index 100% rename from LICENSE rename to src/LICENSE diff --git a/PRNameGenerator.ts b/src/PRNameGenerator.ts similarity index 100% rename from PRNameGenerator.ts rename to src/PRNameGenerator.ts diff --git a/src/components/App.jsx b/src/frontend/components/App.jsx similarity index 100% rename from src/components/App.jsx rename to src/frontend/components/App.jsx diff --git a/src/index.js b/src/frontend/index.js similarity index 100% rename from src/index.js rename to src/frontend/index.js diff --git a/src/styles/global.sass b/src/frontend/styles/global.sass similarity index 100% rename from src/styles/global.sass rename to src/frontend/styles/global.sass diff --git a/package-lock.json b/src/package-lock.json similarity index 100% rename from package-lock.json rename to src/package-lock.json diff --git a/package.json b/src/package.json similarity index 100% rename from package.json rename to src/package.json diff --git a/public/index.html b/src/public/index.html similarity index 100% rename from public/index.html rename to src/public/index.html diff --git a/webpack.config.dev.js b/src/webpack.config.dev.js similarity index 90% rename from webpack.config.dev.js rename to src/webpack.config.dev.js index 307e003..e52182f 100644 --- a/webpack.config.dev.js +++ b/src/webpack.config.dev.js @@ -1,11 +1,11 @@ const path = require('path'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const MiniCssExtractPlugin = require('mini-css-extract-plugin'); -const { config: { portDev, portReloadDev } } = require('./src/config') +const { config: { portDev, portReloadDev } } = require('./config') module.exports = { - entry: './src/index.js', + entry: './frontend/index.js', output: { path: path.resolve(__dirname, 'build'), filename: 'bundle.js', @@ -50,7 +50,7 @@ module.exports = { ], devServer: { static: { - directory: path.join(__dirname, 'dist') + directory: path.join(__dirname, 'build') }, allowedHosts: "all", compress: true, diff --git a/webpack.config.js b/src/webpack.config.js similarity index 94% rename from webpack.config.js rename to src/webpack.config.js index 9fdb70d..d24fecc 100644 --- a/webpack.config.js +++ b/src/webpack.config.js @@ -6,7 +6,7 @@ const TerserPlugin = require('terser-webpack-plugin'); const { CleanWebpackPlugin } = require('clean-webpack-plugin'); module.exports = { - entry: './src/index.js', + entry: './frontend/index.js', output: { path: path.resolve(__dirname, 'build'), filename: 'bundle.js', @@ -16,7 +16,7 @@ module.exports = { extensions: ['.js', '.jsx'], alias: { '@components': path.resolve(__dirname, 'src/components/'), - '@styles': path.resolve(__dirname, 'src/styles/'), + '@styles': path.resolve(__dirname, 'frontend/styles/'), } }, mode: 'production',