added type script and folder structure

This commit is contained in:
Nikhil Nandgopal 2019-01-21 23:41:08 +05:30
parent 262db46a24
commit 822dd6fb5d
15 changed files with 919 additions and 3 deletions

File diff suppressed because it is too large Load Diff

View File

@ -7,16 +7,25 @@
"@blueprintjs/datetime": "^3.6.0",
"@blueprintjs/icons": "^3.5.0",
"@blueprintjs/table": "^3.4.0",
"@types/jest": "^23.3.13",
"@types/node": "^10.12.18",
"@types/react": "^16.7.20",
"@types/react-dom": "^16.0.11",
"axios": "^0.18.0",
"flow-bin": "^0.91.0",
"husky": "^1.3.1",
"lint-staged": "^8.1.0",
"prettier": "^1.16.0",
"react": "^16.7.0",
"react-dnd": "^7.0.2",
"react-dnd-html5-backend": "^7.0.2",
"react-dom": "^16.7.0",
"react-redux": "^6.0.0",
"react-router": "^4.3.1",
"react-router-dom": "^4.3.1",
"react-scripts": "2.1.3",
"redux-saga": "^1.0.0"
"redux-saga": "^1.0.0",
"typescript": "^3.2.4"
},
"scripts": {
"start": "react-scripts start",

View File

@ -1,5 +1,5 @@
import React, { Component } from 'react';
import logo from './logo.svg';
import logo from './assets/images/logo.svg';
import './App.css';
class App extends Component {
@ -9,7 +9,7 @@ class App extends Component {
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<p>
Edit <code>src/App.js</code> and save to reload.
Edit <code>{"src/App.tsx"}</code> and save to reload.
</p>
<a
className="App-link"

View File

View File

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

View File

1
app/client/src/react-app-env.d.ts vendored Normal file
View File

@ -0,0 +1 @@
/// <reference types="react-scripts" />

View File

@ -0,0 +1,8 @@
import { combineReducers } from "redux";
import entityReducer from "./entityReducers";
import uiReducer from "./uiReducers";
export default combineReducers({
entities: entityReducer,
ui: uiReducer
});

View File

25
app/client/tsconfig.json Normal file
View File

@ -0,0 +1,25 @@
{
"compilerOptions": {
"target": "es5",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "preserve"
},
"include": [
"src"
]
}