PR-753737: Se saca el proyecto al directorio Raíz y se actualizan dependencias.

This commit is contained in:
Alejandro Lembke Barrientos 2022-04-28 21:37:20 +00:00
parent 76272cf3a8
commit 7e9c52049a
42 changed files with 3875 additions and 3237 deletions

9
.gitignore vendored
View File

@ -1,9 +1,6 @@
#node_modules ignore
client/node_modules
server/node_modules
node_modules
#.envs
client/.env
server/.env
.env
#builds
client/build
server/build
build

View File

@ -1,8 +1,6 @@
const config = {
env: process.env.ENV ? process.env.ENV : 'production',
port: process.env.PORT ? process.env.PORT : 80,
// portDev: process.env.PORT_DEV ? process.env.PORT_DEV : 3000,
// portReloadDev: process.env.PORT_RELOAD_DEV,
};
module.exports = { config: config };

View File

File diff suppressed because it is too large Load Diff

View File

@ -67,7 +67,7 @@
"@types/jest": "^27.4.1",
"@types/node": "^17.0.25",
"@types/react": "^18.0.5",
"@types/react-dom": "^18.0.1",
"@types/react-dom": "^18.0.0",
"@types/webpack-hot-middleware": "^2.25.6",
"@typescript-eslint/eslint-plugin": "^5.20.0",
"@typescript-eslint/parser": "^5.20.0",
@ -83,10 +83,11 @@
"eslint-webpack-plugin": "^3.1.1",
"file-loader": "^6.2.0",
"identity-obj-proxy": "^3.0.0",
"jest": "^27.5.1",
"jest": "^28.0.2",
"jest-environment-jsdom": "^28.0.2",
"jest-fetch-mock": "^3.0.3",
"mini-css-extract-plugin": "^2.6.0",
"react-refresh": "^0.12.0",
"react-refresh": "^0.13.0",
"redux-devtools-extension": "^2.13.9",
"sass": "^1.50.0",
"sass-loader": "^12.6.0",

View File

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

View File

Before

Width:  |  Height:  |  Size: 5.2 KiB

After

Width:  |  Height:  |  Size: 5.2 KiB

View File

Before

Width:  |  Height:  |  Size: 9.4 KiB

After

Width:  |  Height:  |  Size: 9.4 KiB

View File

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

View File

@ -2,8 +2,8 @@ import fs from 'fs';
const getHashManifest = () => {
try {
const baseUrl = __dirname.replace(/\/client(.*)/,'');
const fullURL = `${baseUrl}/client/build/assets/manifest-hash.json` ;
const baseUrl = __dirname.replace(/\/server(.*)/,'');
const fullURL = `${baseUrl}/assets/manifest-hash.json` ;
return JSON.parse(fs.readFileSync(fullURL));
}catch(err){
console.error(err);

View File

@ -44,8 +44,8 @@ if(env === 'development'){
heartbeat: 1000,
}));
}else{
const baseUrl = __dirname.replace(/\/client(.*)/,'');
const fullURL = `${baseUrl}/client/build` ;
const baseUrl = __dirname.replace(/\/server(.*)/,'');
const fullURL = `${baseUrl}` ;
app
.use((req, res, next) => {
if(!req.hashManifest) req.hashManifest = getHashManifest();