Skip to content

Commit

Permalink
add dist folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Max-im committed Aug 1, 2023
1 parent 70e0f5a commit b6c5a9c
Show file tree
Hide file tree
Showing 114 changed files with 2,224 additions and 10 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
PORT: 5000
SECRET_OR_KEY: test_secret

building:
deploy:
needs: [testing]
runs-on: ubuntu-latest

Expand All @@ -67,17 +67,17 @@ jobs:
with:
node-version: "14.x"

- name: Build server
run: cd ./server && npm install && tsc
# - name: Build server
# run: cd ./server && npm install && tsc

- name: Install dependencies
run: cd ./client && npm install
# - name: Install dependencies
# run: cd ./client && npm install

- name: Build
run: cd ./client && npm run build
# - name: Build
# run: cd ./client && npm run build

- name: Copy
run: cd ./client && cp -r build/ ../server/dist
# - name: Copy
# run: cd ./client && cp -r build/ ../server/dist

- name: Deploy
uses: johnbeynon/[email protected]
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@ node_modules
server/config
client/build
server/src/build
server/dist
.env
package
30 changes: 30 additions & 0 deletions server/dist/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const server_1 = __importDefault(require("./server"));
const server = (0, server_1.default)();
function main() {
return __awaiter(this, void 0, void 0, function* () {
try {
const port = process.env.PORT || 5000;
yield server.listen(port);
console.log(`Server run on port ${port}`);
}
catch (e) {
console.error(e);
process.exit(1);
}
});
}
main();
54 changes: 54 additions & 0 deletions server/dist/build/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"files": {
"main.css": "/static/css/main.d39404c5.css",
"main.js": "/static/js/main.5d87b70d.js",
"static/css/598.b0249848.chunk.css": "/static/css/598.b0249848.chunk.css",
"static/js/598.cb23f7bd.chunk.js": "/static/js/598.cb23f7bd.chunk.js",
"static/css/867.61af701d.chunk.css": "/static/css/867.61af701d.chunk.css",
"static/js/867.e06c2dfa.chunk.js": "/static/js/867.e06c2dfa.chunk.js",
"static/js/721.9088ac4a.chunk.js": "/static/js/721.9088ac4a.chunk.js",
"static/css/256.65401392.chunk.css": "/static/css/256.65401392.chunk.css",
"static/js/256.06b6e6c0.chunk.js": "/static/js/256.06b6e6c0.chunk.js",
"static/css/416.941b1227.chunk.css": "/static/css/416.941b1227.chunk.css",
"static/js/416.8802534b.chunk.js": "/static/js/416.8802534b.chunk.js",
"static/css/990.3292c2db.chunk.css": "/static/css/990.3292c2db.chunk.css",
"static/js/990.337b3b20.chunk.js": "/static/js/990.337b3b20.chunk.js",
"static/js/419.2ee2f2de.chunk.js": "/static/js/419.2ee2f2de.chunk.js",
"static/js/704.7ff277ca.chunk.js": "/static/js/704.7ff277ca.chunk.js",
"static/css/45.c367a0e9.chunk.css": "/static/css/45.c367a0e9.chunk.css",
"static/js/45.4ed1f2a3.chunk.js": "/static/js/45.4ed1f2a3.chunk.js",
"static/css/564.8ca7bd63.chunk.css": "/static/css/564.8ca7bd63.chunk.css",
"static/js/564.30db0f57.chunk.js": "/static/js/564.30db0f57.chunk.js",
"static/js/391.edd22a17.chunk.js": "/static/js/391.edd22a17.chunk.js",
"static/js/886.c6bc5c5f.chunk.js": "/static/js/886.c6bc5c5f.chunk.js",
"static/media/card.svg": "/static/media/card.7c621daa45265160602e9ac860b95a8f.svg",
"static/media/coffee.svg": "/static/media/coffee.9048a1b494d0607b77ab63706ce9f702.svg",
"index.html": "/index.html",
"static/media/patreon-svgrepo-com.svg": "/static/media/patreon-svgrepo-com.5d5c7b26577ee7e8fd77792007d5421d.svg",
"main.d39404c5.css.map": "/static/css/main.d39404c5.css.map",
"main.5d87b70d.js.map": "/static/js/main.5d87b70d.js.map",
"598.b0249848.chunk.css.map": "/static/css/598.b0249848.chunk.css.map",
"598.cb23f7bd.chunk.js.map": "/static/js/598.cb23f7bd.chunk.js.map",
"867.61af701d.chunk.css.map": "/static/css/867.61af701d.chunk.css.map",
"867.e06c2dfa.chunk.js.map": "/static/js/867.e06c2dfa.chunk.js.map",
"721.9088ac4a.chunk.js.map": "/static/js/721.9088ac4a.chunk.js.map",
"256.65401392.chunk.css.map": "/static/css/256.65401392.chunk.css.map",
"256.06b6e6c0.chunk.js.map": "/static/js/256.06b6e6c0.chunk.js.map",
"416.941b1227.chunk.css.map": "/static/css/416.941b1227.chunk.css.map",
"416.8802534b.chunk.js.map": "/static/js/416.8802534b.chunk.js.map",
"990.3292c2db.chunk.css.map": "/static/css/990.3292c2db.chunk.css.map",
"990.337b3b20.chunk.js.map": "/static/js/990.337b3b20.chunk.js.map",
"419.2ee2f2de.chunk.js.map": "/static/js/419.2ee2f2de.chunk.js.map",
"704.7ff277ca.chunk.js.map": "/static/js/704.7ff277ca.chunk.js.map",
"45.c367a0e9.chunk.css.map": "/static/css/45.c367a0e9.chunk.css.map",
"45.4ed1f2a3.chunk.js.map": "/static/js/45.4ed1f2a3.chunk.js.map",
"564.8ca7bd63.chunk.css.map": "/static/css/564.8ca7bd63.chunk.css.map",
"564.30db0f57.chunk.js.map": "/static/js/564.30db0f57.chunk.js.map",
"391.edd22a17.chunk.js.map": "/static/js/391.edd22a17.chunk.js.map",
"886.c6bc5c5f.chunk.js.map": "/static/js/886.c6bc5c5f.chunk.js.map"
},
"entrypoints": [
"static/css/main.d39404c5.css",
"static/js/main.5d87b70d.js"
]
}
Binary file added server/dist/build/favicon.ico
Binary file not shown.
1 change: 1 addition & 0 deletions server/dist/build/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="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap"/><link rel="apple-touch-icon" href="/logo192.png"/><link rel="manifest" href="/manifest.json"/><title>Logger Store</title><script defer="defer" src="/static/js/main.5d87b70d.js"></script><link href="/static/css/main.d39404c5.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
Binary file added server/dist/build/logo192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added server/dist/build/logo512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions server/dist/build/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"short_name": "React App",
"name": "Create React App Sample",
"icons": [
{
"src": "favicon.ico",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
},
{
"src": "logo192.png",
"type": "image/png",
"sizes": "192x192"
},
{
"src": "logo512.png",
"type": "image/png",
"sizes": "512x512"
}
],
"start_url": ".",
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
}
3 changes: 3 additions & 0 deletions server/dist/build/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/dist/build/static/css/256.65401392.chunk.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions server/dist/build/static/css/256.65401392.chunk.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions server/dist/build/static/css/416.941b1227.chunk.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions server/dist/build/static/css/416.941b1227.chunk.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions server/dist/build/static/css/45.c367a0e9.chunk.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions server/dist/build/static/css/45.c367a0e9.chunk.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions server/dist/build/static/css/564.8ca7bd63.chunk.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions server/dist/build/static/css/564.8ca7bd63.chunk.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions server/dist/build/static/css/598.b0249848.chunk.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions server/dist/build/static/css/598.b0249848.chunk.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions server/dist/build/static/css/867.61af701d.chunk.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions server/dist/build/static/css/867.61af701d.chunk.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b6c5a9c

Please sign in to comment.