Skip to content
This repository was archived by the owner on Sep 7, 2022. It is now read-only.

Commit 140301f

Browse files
committed
Merge branch 'master' into fix-peer-dependencies
2 parents b66d9b2 + 48bcfe7 commit 140301f

File tree

2 files changed

+37
-29
lines changed

2 files changed

+37
-29
lines changed

README.md

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,28 @@
33
Create React apps (with Typescript) with no build configuration.
44

55
* [Getting Started](#tldr) – How to create a new app.
6-
* [User Guide](https://github.com/wmonk/create-react-app-typescript/blob/master/packages/react-scripts/template/README.md) – How to develop apps bootstrapped with react scripts ts.
6+
* [User Guide](https://github.com/wmonk/create-react-app-typescript/blob/master/template/README.md) – How to develop apps bootstrapped with react scripts ts.
77

88
_Do you know react and want to try out typescript? Or do you know typescript and want to try out react?_ Get all the benefits from `create-react-app` but you use typescript! 🚀
99

10-
## tl;dr
10+
## Quick Overview
1111

1212
```sh
13-
npm install -g create-react-app
14-
15-
create-react-app my-app --scripts-version=react-scripts-ts
16-
cd my-app/
13+
npx create-react-app my-app --scripts-version=react-scripts-ts
14+
cd my-app
1715
npm start
16+
17+
# or with yarn
18+
yarn create react-app my-app --scripts-version=react-scripts-ts
19+
cd my-app
20+
yarn start
1821
```
1922

23+
*([npx](https://medium.com/@maybekatz/introducing-npx-an-npm-package-runner-55f7d4bd282b) comes with npm 5.2+ and higher, see [instructions for older npm versions](https://gist.github.com/gaearon/4064d3c23a77c74a3614c498a8bb1c5f))*
24+
25+
Then open [http://localhost:3000/](http://localhost:3000/) to see your app.<br>
26+
When you’re ready to deploy to production, create a minified bundle with `npm run build`.
27+
2028
## Migration
2129

2230
In general, most upgrades won't require any migration steps to work, but if you experience problems after an upgrade, please file an issue, and we'll add it to the list of migration steps below.

package.json

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -21,45 +21,45 @@
2121
"react-scripts-ts": "./bin/react-scripts-ts.js"
2222
},
2323
"dependencies": {
24-
"autoprefixer": "8.5.0",
24+
"autoprefixer": "7.1.6",
2525
"babel-core": "6.26.3",
2626
"babel-jest": "23.4.2",
27-
"babel-loader": "7.1.5",
28-
"babel-preset-react-app": "^3.1.1",
27+
"babel-loader": "7.1.2",
28+
"babel-preset-react-app": "^3.1.2",
2929
"babel-runtime": "6.26.0",
30-
"case-sensitive-paths-webpack-plugin": "2.1.2",
31-
"chalk": "2.4.1",
32-
"css-loader": "0.28.11",
33-
"dotenv": "5.0.1",
30+
"case-sensitive-paths-webpack-plugin": "2.1.1",
31+
"chalk": "1.1.3",
32+
"css-loader": "0.28.7",
33+
"dotenv": "4.0.0",
3434
"dotenv-expand": "4.2.0",
35-
"extract-text-webpack-plugin": "4.0.0-beta.0",
36-
"file-loader": "1.1.11",
35+
"extract-text-webpack-plugin": "3.0.2",
36+
"file-loader": "1.1.5",
3737
"fork-ts-checker-webpack-plugin": "0.4.9",
38-
"fs-extra": "5.0.0",
39-
"html-webpack-plugin": "3.2.0",
38+
"fs-extra": "3.0.1",
39+
"html-webpack-plugin": "2.29.0",
4040
"jest": "23.5.0",
4141
"object-assign": "4.1.1",
42-
"postcss-flexbugs-fixes": "3.3.1",
43-
"postcss-loader": "2.1.5",
42+
"postcss-flexbugs-fixes": "3.2.0",
43+
"postcss-loader": "2.0.8",
4444
"promise": "8.0.1",
4545
"raf": "3.4.0",
46-
"react-dev-utils": "^5.0.0",
47-
"resolve": "1.6.0",
4846
"source-map-loader": "^0.2.1",
49-
"style-loader": "0.21.0",
50-
"sw-precache-webpack-plugin": "0.11.5",
47+
"react-dev-utils": "^5.0.2",
48+
"resolve": "1.6.0",
49+
"style-loader": "0.19.0",
50+
"sw-precache-webpack-plugin": "0.11.4",
5151
"ts-jest": "23.1.4",
52-
"ts-loader": "4.5.0",
52+
"ts-loader": "^2.3.7",
5353
"tsconfig-paths-webpack-plugin": "^2.0.0",
5454
"tslint": "^5.7.0",
5555
"tslint-config-prettier": "^1.10.0",
5656
"tslint-react": "^3.2.0",
5757
"uglifyjs-webpack-plugin": "1.2.5",
58-
"url-loader": "1.0.1",
59-
"webpack": "4.8.3",
60-
"webpack-dev-server": "3.1.5",
61-
"webpack-manifest-plugin": "2.0.3",
62-
"whatwg-fetch": "2.0.4"
58+
"url-loader": "0.6.2",
59+
"webpack": "3.8.1",
60+
"webpack-dev-server": "2.11.3",
61+
"webpack-manifest-plugin": "1.3.2",
62+
"whatwg-fetch": "2.0.3"
6363
},
6464
"devDependencies": {
6565
"react": "^15.5.4",

0 commit comments

Comments
 (0)