Skip to content

Commit

Permalink
Edit client files and package json at the src folder
Browse files Browse the repository at this point in the history
  • Loading branch information
bayan2002 committed Oct 11, 2022
1 parent 8af7d98 commit 1cdf5a3
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 156 deletions.
46 changes: 0 additions & 46 deletions Client/README.md

This file was deleted.

9 changes: 2 additions & 7 deletions Client/package.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,15 @@
{
"name": "client",
"name": "bms",
"version": "0.1.0",
"private": true,
"dependencies": {
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^13.5.0",
"@types/jest": "^27.5.2",
"@types/node": "^16.11.65",
"@types/react": "^18.0.21",
"@types/react-dom": "^18.0.6",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-scripts": "5.0.1",
"typescript": "^4.8.4",
"web-vitals": "^2.1.4"
"typescript": "^4.8.4"
},
"scripts": {
"start": "react-scripts start",
Expand Down
29 changes: 2 additions & 27 deletions Client/public/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="en">
<html lang="ar">
<head>
<meta charset="utf-8" />
<link rel="icon" href="" />
Expand All @@ -10,34 +10,9 @@
content="Web site created using create-react-app"
/>
<link rel="apple-touch-icon" href="" />
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
-->
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<!--
Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build.
Only files inside the `public` folder can be referenced from the HTML.
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>React App</title>
<title>BMS</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<!--
This HTML file is a template.
If you open it directly in the browser, you will see an empty page.
You can add webfonts, meta tags, or analytics to this file.
The build step will place the bundled scripts into the <body> tag.
To begin the development, run `npm start` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`.
-->
</body>
</html>
25 changes: 0 additions & 25 deletions Client/public/manifest.json

This file was deleted.

3 changes: 0 additions & 3 deletions Client/public/robots.txt

This file was deleted.

38 changes: 0 additions & 38 deletions Client/src/App.css

This file was deleted.

2 changes: 1 addition & 1 deletion Client/src/App.tsx → Client/src/App/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import './App.css';
import './style.css';

function App() {
return (
Expand Down
Empty file added Client/src/App/style.css
Empty file.
3 changes: 0 additions & 3 deletions Client/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
import React from 'react';
import ReactDOM from 'react-dom/client';
import './index.css';
import App from './App';


const root = ReactDOM.createRoot(
document.getElementById('root') as HTMLElement
);
root.render(
<App />
);

15 changes: 9 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
{
"name": "bms",
"version": "1.0.0",
"description": "- Building owners and managers face hardships to manage users' services, their payment schedules, and their history manually. That would cause huge problems like wasting some time and effort. Managers encounter these problems to track the users' histories, and all of these operations are done with paperwork that is not durable.",
"description": "Building owners and managers face hardships to manage users' services, their payment schedules, and their history manually. That would cause huge problems like wasting some time and effort. Managers encounter these problems to track the users' histories, and all of these operations are done with paperwork that is not durable",
"main": "index.js",
"scripts": {
"start.server": "cross-env NODE_ENV=PRODUCTION ts-node-esm --transpile-only ./Server/index.ts",
"start.client": "cd Client && npm start",
"dev": "cross-env NODE_ENV=DEVELOPMENT ts-node-dev --respawn --transpile-only ./Server/index.ts",
"test": "cross-env NODE_ENV=TESTING jest",
"eslint:fix": "eslint --fix"
"start": "NODE_ENV=production node dist/index.js",
"dev": "cross-env NODE_ENV=development ts-node-dev server/index.ts",
"client": "cd client/ && npm start",
"test": "cross-env NODE_ENV=test jest -i",
"build": "tsc -p .",
"heroku-postbuild": "npm run build && cd client/ && npm i && npm run build",
"eslint:fix": "eslint --fix",
"lint": "eslint --ext .ts server/ && eslint --ext .tsx client/src/"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 1cdf5a3

Please sign in to comment.