From 5847198e2382c6bf3fedbca03ad2fcf71243290a Mon Sep 17 00:00:00 2001 From: eug-vs Date: Fri, 13 Nov 2020 20:11:33 +0300 Subject: feat: initial commit --- .gitignore | 2 ++ README.md | 2 ++ package.json | 36 ++++++++++++++++++++++++++++++++++++ public/index.html | 43 +++++++++++++++++++++++++++++++++++++++++++ src/index.tsx | 14 ++++++++++++++ src/react-app-env.d.ts | 1 + tsconfig.json | 26 ++++++++++++++++++++++++++ 7 files changed, 124 insertions(+) create mode 100644 .gitignore create mode 100644 README.md create mode 100644 package.json create mode 100644 public/index.html create mode 100644 src/index.tsx create mode 100644 src/react-app-env.d.ts create mode 100644 tsconfig.json diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..dd87e2d --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +node_modules +build diff --git a/README.md b/README.md new file mode 100644 index 0000000..13cac1e --- /dev/null +++ b/README.md @@ -0,0 +1,2 @@ +# facms-kit + diff --git a/package.json b/package.json new file mode 100644 index 0000000..3ea1d34 --- /dev/null +++ b/package.json @@ -0,0 +1,36 @@ +{ + "name": "famcs-kit", + "version": "0.0.0", + "dependencies": { + "@types/jest": "^26.0.15", + "@types/node": "^12.0.0", + "@types/react": "^16.9.53", + "@types/react-dom": "^16.9.8", + "react": "^17.0.1", + "react-dom": "^17.0.1", + "react-scripts": "4.0.0", + "typescript": "^4.0.3", + "web-vitals": "^0.2.4" + }, + "scripts": { + "start": "react-scripts start", + "build": "react-scripts build" + }, + "eslintConfig": { + "extends": [ + "react-app" + ] + }, + "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 new file mode 100644 index 0000000..aa069f2 --- /dev/null +++ b/public/index.html @@ -0,0 +1,43 @@ + + + + + + + + + + + + + React App + + + +
+ + + diff --git a/src/index.tsx b/src/index.tsx new file mode 100644 index 0000000..e79cac9 --- /dev/null +++ b/src/index.tsx @@ -0,0 +1,14 @@ +import React from 'react'; +import ReactDOM from 'react-dom'; + +const App: React.FC = () => { + return

Hello, world!

+}; + +ReactDOM.render( + + + , + document.getElementById('root') +); + diff --git a/src/react-app-env.d.ts b/src/react-app-env.d.ts new file mode 100644 index 0000000..6431bc5 --- /dev/null +++ b/src/react-app-env.d.ts @@ -0,0 +1 @@ +/// diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..7b1d3c6 --- /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" + }, + "include": [ + "src" + ] +} -- cgit v1.2.3