From 7caf1ae57a07864cbd53656b7825c29a0d96e7a9 Mon Sep 17 00:00:00 2001 From: Sergey Krylov Date: Tue, 19 Jul 2022 20:05:54 +0500 Subject: [PATCH] initial --- .gitignore | 26 ++++++++++++++++++++++++++ package.json | 42 ++++++++++++++++++++++++++++++++++++++++++ public/index.html | 14 ++++++++++++++ src/App.tsx | 11 +++++++++++ src/index.scss | 5 +++++ src/index.tsx | 11 +++++++++++ tsconfig.json | 26 ++++++++++++++++++++++++++ 7 files changed, 135 insertions(+) create mode 100644 .gitignore create mode 100644 package.json create mode 100644 public/index.html create mode 100644 src/App.tsx create mode 100644 src/index.scss create mode 100644 src/index.tsx create mode 100644 tsconfig.json diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..25380cb --- /dev/null +++ b/.gitignore @@ -0,0 +1,26 @@ +# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. + +# dependencies +/node_modules +/.pnp +.pnp.js + +# testing +/coverage + +# production +/build + +# misc +.DS_Store +.env.local +.env.development.local +.env.test.local +.env.production.local + +npm-debug.log* +yarn-debug.log* +yarn-error.log* + +/.idea +package-lock.json diff --git a/package.json b/package.json new file mode 100644 index 0000000..4481461 --- /dev/null +++ b/package.json @@ -0,0 +1,42 @@ +{ + "name": "match-game", + "version": "0.1.0", + "private": true, + "dependencies": { + "@types/node": "^16.11.45", + "@types/react": "^18.0.15", + "@types/react-dom": "^18.0.6", + "react": "^18.2.0", + "react-dom": "^18.2.0" + }, + "scripts": { + "start": "cross-env BROWSER=none PORT=8080 react-scripts start", + "build": "react-scripts build", + "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" + ] + }, + "devDependencies": { + "cross-env": "^7.0.3", + "react-scripts": "5.0.1", + "sass": "^1.53.0", + "typescript": "^4.7.4" + } +} diff --git a/public/index.html b/public/index.html new file mode 100644 index 0000000..0de9ba8 --- /dev/null +++ b/public/index.html @@ -0,0 +1,14 @@ + + + + + + + + Match Game + + + +
+ + diff --git a/src/App.tsx b/src/App.tsx new file mode 100644 index 0000000..2f7be08 --- /dev/null +++ b/src/App.tsx @@ -0,0 +1,11 @@ +import React from 'react'; + +function App() { + return ( +
+

React start

+
+ ); +} + +export default App; diff --git a/src/index.scss b/src/index.scss new file mode 100644 index 0000000..7fe479c --- /dev/null +++ b/src/index.scss @@ -0,0 +1,5 @@ +body { + margin: 0; + padding: 0; + box-sizing: border-box; +} diff --git a/src/index.tsx b/src/index.tsx new file mode 100644 index 0000000..968a9c2 --- /dev/null +++ b/src/index.tsx @@ -0,0 +1,11 @@ +import React from 'react'; +import ReactDOM from 'react-dom/client'; + +import './index.scss'; + +import App from './App'; + +const root = ReactDOM.createRoot( + document.getElementById('root') as HTMLElement +); +root.render(); diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..a273b0c --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,26 @@ +{ + "compilerOptions": { + "target": "es5", + "lib": [ + "dom", + "dom.iterable", + "esnext" + ], + "allowJs": true, + "skipLibCheck": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "strict": true, + "forceConsistentCasingInFileNames": true, + "noFallthroughCasesInSwitch": true, + "module": "esnext", + "moduleResolution": "node", + "resolveJsonModule": true, + "isolatedModules": true, + "noEmit": true, + "jsx": "react-jsx" + }, + "include": [ + "src" + ] +}