Skip to content

Commit e36e417

Browse files
committed
small customizations
1 parent 9373bf2 commit e36e417

File tree

6 files changed

+55
-31
lines changed

6 files changed

+55
-31
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ This project is initialized with [Create React App](https://github.com/facebook/
2020

2121
The project now consists of 3 packages.
2222

23-
- www: create-react-app with TypeScript (react v16.8.0-alpha.0, react-scripts v2.1.3)
24-
- shared: react components with TypeScript (react v16.8.0-alpha.0)
25-
- utils: shared functions with TypeScript
23+
- **www**: create-react-app with TypeScript (react v16.8.0-alpha.0, react-scripts v2.1.3)
24+
- **shared**: react components with TypeScript (react v16.8.0-alpha.0)
25+
- **utils**: shared functions with TypeScript
2626

2727
## Get Started
2828

packages/shared/tsconfig.json

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22
"compilerOptions": {
33
"rootDir": "src",
44
"outDir": "build",
5-
"lib": ["dom", "dom.iterable", "esnext"],
5+
"lib": [
6+
"dom",
7+
"dom.iterable",
8+
"esnext"
9+
],
610
"esModuleInterop": true,
711
"allowSyntheticDefaultImports": true,
812
"strict": true,
@@ -13,10 +17,16 @@
1317
"noUnusedLocals": true,
1418
"noImplicitAny": true,
1519
"declaration": true,
20+
"skipLibCheck": true,
1621
"target": "es5",
1722
"module": "esnext",
1823
"jsx": "preserve"
1924
},
20-
"include": ["src"],
21-
"exclude": ["node_modules", "build"]
22-
}
25+
"include": [
26+
"src"
27+
],
28+
"exclude": [
29+
"**/node_modules/**",
30+
"build"
31+
]
32+
}

packages/utils/tsconfig.json

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22
"compilerOptions": {
33
"rootDir": "src",
44
"outDir": "build",
5-
"lib": ["dom", "dom.iterable", "esnext"],
5+
"lib": [
6+
"dom",
7+
"dom.iterable",
8+
"esnext"
9+
],
610
"esModuleInterop": true,
711
"allowSyntheticDefaultImports": true,
812
"strict": true,
@@ -13,10 +17,16 @@
1317
"noUnusedLocals": true,
1418
"noImplicitAny": true,
1519
"declaration": true,
20+
"skipLibCheck": true,
1621
"target": "es5",
1722
"module": "esnext",
1823
"jsx": "preserve"
1924
},
20-
"include": ["src"],
21-
"exclude": ["node_modules", "build"]
22-
}
25+
"include": [
26+
"src"
27+
],
28+
"exclude": [
29+
"**/node_modules/**",
30+
"build"
31+
]
32+
}

packages/www/src/App.tsx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,27 +6,22 @@ import React, { useEffect, useState } from 'react';
66

77
import logo from './logo.svg';
88

9-
function App() {
10-
const [isVisible, setIsVisible] = useState(true);
11-
9+
const App = () => {
1210
useEffect(() => {
1311
logger('Testing monorepo!');
1412
}, []);
1513

1614
return (
1715
<div className="App">
1816
<header className="App-header">
17+
<img src={logo} className="App-logo" alt="logo" />
1918
<Header>
2019
React (v16.8.0-alpha.0), Typescript, Yarn & Lerna Monorepo
2120
</Header>
2221
<p>
2322
Starting point for a Typescript, React, Yarn & Lerna monorepo project
2423
with full setup for ESLint and Prettier.
2524
</p>
26-
<button onClick={() => setIsVisible(!isVisible)}>
27-
Toggle logo visibility
28-
</button>
29-
{isVisible && <img src={logo} className="App-logo" alt="logo" />}
3025
</header>
3126
</div>
3227
);

packages/www/tsconfig.json

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
{
22
"compilerOptions": {
33
"target": "es5",
4-
"lib": ["dom", "dom.iterable", "esnext"],
4+
"lib": [
5+
"dom",
6+
"dom.iterable",
7+
"esnext"
8+
],
59
"allowJs": true,
610
"skipLibCheck": true,
711
"esModuleInterop": true,
@@ -15,6 +19,11 @@
1519
"noEmit": true,
1620
"jsx": "preserve"
1721
},
18-
"include": ["src"],
19-
"exclude": ["node_modules", "build"]
20-
}
22+
"include": [
23+
"src"
24+
],
25+
"exclude": [
26+
"**/node_modules/**",
27+
"build"
28+
]
29+
}

yarn.lock

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1951,9 +1951,9 @@
19511951
universal-user-agent "^4.0.0"
19521952

19531953
"@octokit/types@^2.0.0", "@octokit/types@^2.0.1", "@octokit/types@^2.11.1":
1954-
version "2.13.0"
1955-
resolved "https://registry.yarnpkg.com/@octokit/types/-/types-2.13.0.tgz#b2de9983d79a3d8a000d9bf90293ddbbe611e561"
1956-
integrity sha512-aSHYeR01V/ZDyU6BaCGqndC8qAjUBH/OFw3Y6EmHdP2uVFsgoPtxUJLPJEfhhr8f7F2cGS9QZ0tUqnfItHxKug==
1954+
version "2.14.0"
1955+
resolved "https://registry.yarnpkg.com/@octokit/types/-/types-2.14.0.tgz#f5afa004c37193afab66b407b7785a8d7c4f102a"
1956+
integrity sha512-1w2wxpN45rEXPDFeB7rGain7wcJ/aTRg8bdILITVnS0O7a4zEGELa3JmIe+jeLdekQjvZRbVfNPqS+mi5fKCKQ==
19571957
dependencies:
19581958
"@types/node" ">= 8"
19591959

@@ -3466,9 +3466,9 @@ caniuse-api@^3.0.0:
34663466
lodash.uniq "^4.5.0"
34673467

34683468
caniuse-lite@^1.0.0, caniuse-lite@^1.0.30000905, caniuse-lite@^1.0.30000929, caniuse-lite@^1.0.30001039, caniuse-lite@^1.0.30001043:
3469-
version "1.0.30001052"
3470-
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001052.tgz#33a5ddd13783cfe2c8a6a846ab983387d4edff75"
3471-
integrity sha512-b2/oWZwkpWzEB1+Azr2Z4FcpdDkH+9R4dn+bkwk/6eH9mRSrnZjhA6v32+zsV+TSqC0pp2Rxush2yUVTJ0dJTQ==
3469+
version "1.0.30001053"
3470+
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001053.tgz#b7ae027567ce2665b965b0437e4512b296ccd20d"
3471+
integrity sha512-HtV4wwIZl6GA4Oznse8aR274XUOYGZnQLcf/P8vHgmlfqSNelwD+id8CyHOceqLqt9yfKmo7DUZTh1EuS9pukg==
34723472

34733473
capture-exit@^1.2.0:
34743474
version "1.2.0"
@@ -4776,9 +4776,9 @@ [email protected]:
47764776
integrity sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=
47774777

47784778
electron-to-chromium@^1.3.103, electron-to-chromium@^1.3.413:
4779-
version "1.3.429"
4780-
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.429.tgz#0d1ef6710ba84de3710615280c1f6f79c8205b47"
4781-
integrity sha512-YW8rXMJx33FalISp0uP0+AkvBx9gfzzQ4NotblGga6Z8ZX00bg2e5FNWV8fyDD/VN3WLhEtjFXNwzdJrdaAHEQ==
4779+
version "1.3.430"
4780+
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.430.tgz#33914f7c2db771bdcf30977bd4fd6258ee8a2f37"
4781+
integrity sha512-HMDYkANGhx6vfbqpOf/hc6hWEmiOipOHGDeRDeUb3HLD3XIWpvKQxFgWf0tgHcr3aNv6I/8VPecplqmQsXoZSw==
47824782

47834783
elliptic@^6.0.0, elliptic@^6.5.2:
47844784
version "6.5.2"

0 commit comments

Comments
 (0)