Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
SDE-ADNAN committed Jan 5, 2024
1 parent 4837fa6 commit ba6a1fe
Show file tree
Hide file tree
Showing 24 changed files with 176 additions and 3 deletions.
2 changes: 1 addition & 1 deletion server/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ app.use('/jarvis/admin', adminRoutes);

// for serving clientside react pages ( which are built using "npm run build" or "vite build")
app.use(express.static("public"));
app.use("*", (req, res) => {
app.use("/*", (req, res) => {
res.sendFile(path.join(__dirname, "/public/index.html"))
})

Expand Down
2 changes: 1 addition & 1 deletion server/dist/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ app.use('/jarvis/admin', admin_1.default);
// })
// for serving clientside react pages ( which are built using "npm run build" or "vite build")
app.use(express_1.default.static("public"));
app.use("*", (req, res) => {
app.use("/*", (req, res) => {
res.sendFile(path_1.default.join(__dirname, "/public/index.html"));
});
mongoose_1.default
Expand Down
2 changes: 1 addition & 1 deletion server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"main": "./dist/app.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "cd ../admin-client && sudo rm -rf ../server/dist/public && sudo mkdir -p ../server/dist/public && cd ./build && sudo cp -r * ../../server/dist/public && cd ../../server && node ./dist/app.js",
"start": "npm run prepare-deploy && cd ../admin-client && sudo rm -rf ../server/dist/public && sudo mkdir -p ../server/dist/public && cd ./build && sudo cp -r * ../../server/dist/public && cd ../../server && node ./dist/app.js",
"dev": "NODE_ENV=development nodemon ./dist/app.js",
"prepare-deploy":"cd ../admin-client && npm run build && cd ../server && tsc"
},
Expand Down
1 change: 1 addition & 0 deletions server/public/_redirects
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/* /index.html 200
23 changes: 23 additions & 0 deletions server/public/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"files": {
"main.css": "/static/css/main.4e78bcf6.css",
"main.js": "/static/js/main.ac978201.js",
"static/media/bgfinaldark.jpg": "/static/media/bgfinaldark.b0e59fa0ba58246be184.jpg",
"static/media/bgfinallight.jpg": "/static/media/bgfinallight.4f070915fbd0bf061862.jpg",
"static/media/add.png": "/static/media/add.90b950d171bb0b3986d1.png",
"static/media/logo.png": "/static/media/logo.3c3caf3bbb73bd7d0eec.png",
"static/media/remove.png": "/static/media/remove.3c662b752278fc52f408.png",
"static/media/hidden.png": "/static/media/hidden.22c6a09acdf28a7b5e22.png",
"static/media/view.png": "/static/media/view.0b5c67b9c9c6e2b4b7d1.png",
"static/media/icons8-edit-512.svg": "/static/media/icons8-edit-512.2e57f723038d450219929250767e121d.svg",
"index.html": "/index.html",
"static/media/subtask.svg": "/static/media/subtask.0aee0a3293406f3c959e65a1925a9502.svg",
"static/media/rightarrow.svg": "/static/media/rightarrow.87f8be47de5397f44ad09947d6186828.svg",
"main.4e78bcf6.css.map": "/static/css/main.4e78bcf6.css.map",
"main.ac978201.js.map": "/static/js/main.ac978201.js.map"
},
"entrypoints": [
"static/css/main.4e78bcf6.css",
"static/js/main.ac978201.js"
]
}
Binary file added server/public/favicon.ico
Binary file not shown.
1 change: 1 addition & 0 deletions server/public/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="manifest" href="/manifest.json"/><title>Todo App</title><script defer="defer" src="/static/js/main.ac978201.js"></script><link href="/static/css/main.4e78bcf6.css" rel="stylesheet"></head><body><div id="root"></div><div id="modal-root"></div><div id="loader"></div></body></html>
15 changes: 15 additions & 0 deletions server/public/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"short_name": "React App",
"name": "Create React App Sample",
"icons": [
{
"src": "favicon.ico",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
}
],
"start_url": ".",
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
}
3 changes: 3 additions & 0 deletions server/public/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# https://www.robotstxt.org/robotstxt.html
User-agent: *
Disallow:
2 changes: 2 additions & 0 deletions server/public/static/css/main.4e78bcf6.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions server/public/static/css/main.4e78bcf6.css.map

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions server/public/static/js/main.ac978201.js

Large diffs are not rendered by default.

111 changes: 111 additions & 0 deletions server/public/static/js/main.ac978201.js.LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
/**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/**
* @license React
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/**
* @license React
* use-sync-external-store-shim.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/**
* @license React
* use-sync-external-store-shim/with-selector.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/**
* @remix-run/router v1.14.1
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/

/**
* React Router DOM v6.21.1
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/

/**
* React Router v6.21.1
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/

/** @license React v16.13.1
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
1 change: 1 addition & 0 deletions server/public/static/js/main.ac978201.js.map

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ba6a1fe

Please sign in to comment.