From 6e21758518758dd01d03a689684980c0da1b5eee Mon Sep 17 00:00:00 2001 From: gounthar Date: Wed, 28 Jun 2023 19:25:16 +0200 Subject: [PATCH] chore(node): New react App --- package.json | 26 ++++++++- public/index.html | 25 ++++---- public/logo192.png | Bin 0 -> 5347 bytes public/logo512.png | Bin 0 -> 9664 bytes public/manifest.json | 16 +++++- public/robots.txt | 3 + src/App.css | 36 +++++++----- src/App.js | 32 ++++++----- src/App.test.js | 10 ++-- src/index.css | 12 +++- src/index.js | 17 ++++-- src/logo.svg | 8 +-- src/registerServiceWorker.js | 108 ----------------------------------- src/reportWebVitals.js | 13 +++++ src/setupTests.js | 5 ++ 15 files changed, 142 insertions(+), 169 deletions(-) create mode 100755 public/logo192.png create mode 100755 public/logo512.png create mode 100755 public/robots.txt delete mode 100755 src/registerServiceWorker.js create mode 100755 src/reportWebVitals.js create mode 100755 src/setupTests.js diff --git a/package.json b/package.json index 5d50e98e7..90884b6cd 100755 --- a/package.json +++ b/package.json @@ -3,14 +3,36 @@ "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", "react": "^18.2.0", "react-dom": "^18.2.0", - "react-scripts": "^5.0.1" + "react-scripts": "5.0.1", + "web-vitals": "^2.1.4" }, "scripts": { "start": "react-scripts start", "build": "react-scripts build", - "test": "react-scripts test --env=jsdom", + "test": "react-scripts test", "eject": "react-scripts eject" + }, + "eslintConfig": { + "extends": [ + "react-app", + "react-app/jest" + ] + }, + "browserslist": { + "production": [ + ">0.2%", + "not dead", + "not op_mini all" + ], + "development": [ + "last 1 chrome version", + "last 1 firefox version", + "last 1 safari version" + ] } } diff --git a/public/index.html b/public/index.html index 7bee02710..aa069f27c 100755 --- a/public/index.html +++ b/public/index.html @@ -1,15 +1,20 @@ - + - - - + + + + + + - - +