Skip to content

Commit 990e6bc

Browse files
author
William Monk
committed
Replace README
1 parent 50d4ae5 commit 990e6bc

File tree

1 file changed

+190
-5
lines changed

1 file changed

+190
-5
lines changed

README.md

+190-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,192 @@
1-
# react-scripts
1+
# `react-scripts-ts` [![npm version](https://badge.fury.io/js/react-scripts-ts.svg)](https://badge.fury.io/js/react-scripts-ts) [![Build Status](https://travis-ci.org/wmonk/create-react-app-typescript.svg?branch=master)](https://travis-ci.org/wmonk/create-react-app-typescript)
22

3-
This package includes scripts and configuration used by [Create React App](https://github.com/facebookincubator/create-react-app).<br>
4-
Please refer to its documentation:
3+
Create React apps (with Typescript) with no build configuration.
54

6-
* [Getting Started](https://github.com/facebookincubator/create-react-app/blob/master/README.md#getting-started) – How to create a new app.
7-
* [User Guide](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md) – How to develop apps bootstrapped with Create React App.
5+
* [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.
7+
8+
_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! 🚀
9+
10+
## tl;dr
11+
12+
```sh
13+
npm install -g create-react-app
14+
15+
create-react-app my-app --scripts-version=react-scripts-ts
16+
cd my-app/
17+
npm start
18+
```
19+
20+
## Migration
21+
22+
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.
23+
24+
### From `<2.16.0` to `>=2.16.0`
25+
26+
Since `2.16.0`, the template uses different `tsconfig` files for both development and production mode. For the latter, unfortunately, the path resolver is not smart enough to fall back to the basic `tsconfig.json` in case the expected `tsconfig.prod.json` is not present, so you have to create this file manually like shown [here](https://github.com/wmonk/create-react-app-typescript/blob/master/packages/react-scripts/template/tsconfig.prod.json).
27+
28+
### From `<2.13.0` to `>=2.13.0`
29+
30+
Since `2.13.0`, `typescript` is listed as a peer dependency of `react-scripts-ts`. For projects generated with at least this version, the init script takes care of properly installing it as dev dependency to the generated projects. Older projects require manual installation, in case you have not already done that.
31+
32+
Using `npm`:
33+
```
34+
npm i -D typescript
35+
```
36+
37+
Using `yarn`:
38+
```
39+
yarn add -D typescript
40+
```
41+
42+
### From `<2.5.0` to `>=2.5.0`
43+
44+
Version `2.5.0` introduces a new config file for jest, that is necessary for the tests to run. If you were previously running a version older than `v2.5.0` and upgraded to `v2.5.0` or newer, you need to manually add the new file, or else you'll get an error similar to this when trying to run your tests:
45+
46+
```javascript
47+
Test suite failed to run
48+
49+
{
50+
"messageText": "Cannot read file 'C:\\[project]\\tsconfig.test.json': ENOENT: no such file or directory, open 'C:\\[project]\\tsconfig.test.json'.",
51+
"category": 1,
52+
"code": 5012
53+
}
54+
```
55+
56+
To fix this, create a new file *in the root of the project* called `tsconfig.test.json`, and paste [the content of this file into it](https://raw.githubusercontent.com/wmonk/create-react-app-typescript/master/packages/react-scripts/template/tsconfig.test.json). Everything should work now. For more info, please see [this issue](https://github.com/wmonk/create-react-app-typescript/issues/141).
57+
58+
## Changelog
59+
60+
### 2.17.0
61+
* Update migration instructions - @DorianGrey
62+
* tslint updates - @alexandrudanpop
63+
* Stop eslint includes - @aurerua
64+
* Resolve commited merge conflig - @AndrewKvalheim
65+
66+
### 2.16.0
67+
* Allow `moduleNameMapper` config override - @sebald
68+
* Fix travis build - @DorianGrey
69+
* Allow using different tsconfig file for dev and build - @DorianGrey
70+
71+
### 2.15.1
72+
* Fix duplicated mjs entry in Jest config - @StevenLangbroek
73+
* Allow `--watchAll` to be set - @DorianGrey
74+
75+
### 2.15.0
76+
* Replace TSLint rules with presets - @nielsdB97
77+
* Update file-loader exclusion rules - @winstonewert
78+
* Fix Uglifyjs settings - @meandmax
79+
* Merge react-script 1.1.x - @wmonk
80+
81+
### 2.14.0
82+
* README fixes - @kaminskypavel
83+
* README fixes - @adambowles
84+
* Remove unused JS files - @DorianGrey
85+
* README fixes - @stephtr
86+
* Added the abillity to import js and jsx files with ts-loader - @GeeWee
87+
* Uglifyjs update for es6 support - @thetric
88+
89+
### 2.13.0
90+
* Remove tslint-loader from prod builds - @DorianGrey
91+
* Include typescript as devDependency in boilerplate - @ianschmitz
92+
* Document custom module formats - @joshtynjala
93+
* Fix tsconfig.json - @diabelb
94+
95+
### 2.12.0
96+
* Update typescript to 2.6.2
97+
98+
### 2.11.0
99+
* Upgrade to [`react-scripts@1.0.17`](https://github.com/facebookincubator/create-react-app/releases/tag/v1.0.17)
100+
101+
### 2.10.0
102+
* README updates - StefanSchoof
103+
* README updates - DorianGrey
104+
* Add support for fork-ts-checker-webpack-plugin - johnnyreilly
105+
106+
### 2.9.0 - UNPUBLISHED
107+
This included changes that were not published by the facebook upstream, so was unpublished.
108+
109+
### 2.8.0
110+
* Update typescript to 2.5.3 - @nicolaserny
111+
112+
### 2.7.0
113+
* Merge react-scripts@1.0.13 - @JohnNilsson
114+
* Fix git tempalte - @hktonylee
115+
* Provide migration docs - @JReinhold
116+
* Updated dependencies - @swengorschewski
117+
* Fix tslint config - @comerc
118+
119+
### 2.6.0
120+
* Merge react-scripts@1.0.10 - @wmonk
121+
* Update component template - @pelotom
122+
123+
### 2.5.0
124+
* Support dynamic imports - thanks @nicolaserny, @DorianGrey
125+
* Fix up tsconfig - thanks @js-n
126+
* Fix readme typo - thanks @adambowles
127+
* Move to ts-jest - thanks @DorianGrey
128+
129+
### 2.4.0
130+
* Upgrade typescript to 2.4 and ts-loader to 2.2.1 - thanks @frederickfogerty
131+
* Fix readme typo - thanks @wrongway4you
132+
133+
### 2.3.2
134+
* Fix `typescript` version to 2.3.x until 2.4 @types are fixed
135+
136+
### 2.3.1
137+
138+
* All tsc to parse config (for `extend`) - Thanks to @DorianGrey
139+
* Fix various jest issues - thanks to @zinserjan
140+
* Fix code coverage - thanks to @zinserjan
141+
142+
### 2.2.0
143+
* Upgrade to [`react-scripts@1.0.6`](https://github.com/facebookincubator/create-react-app/)
144+
145+
### 2.1.0
146+
* Update to `tslint@5.2.0` - thanks to @mindjuice
147+
* Fix test setup issue - thanks to @jonmpqts
148+
* Add `source-map-loader` - thanks to @Place1
149+
* Update to `typescript@2.3.3` - thanks to @sjdweb
150+
151+
### 2.0.1
152+
* Fix issue with jest finding test files
153+
154+
### 2.0.0
155+
* Upgrade to [`react-scripts@1.x.x`](https://github.com/facebookincubator/create-react-app/blob/0d1521aabf5a0201ea1bcccc33e286afe048f820/CHANGELOG.md)
156+
157+
### 1.4.0
158+
* Upgrade to typescript@2.3.2 - thanks to @patrick91
159+
* Add tests around react-scripts-ts - thanks to @migerh
160+
161+
### 1.3.0
162+
* Upgrade to typescript@2.2.2 - thanks to @jeremistadler
163+
164+
### 1.1.8
165+
* Fix regression where no `@types` were being installed on init
166+
167+
### 1.1.7
168+
* Merge facebookincubator/create-react-app@0.9.5 into react-scripts-ts
169+
* Merge facebookincubator/create-react-app@0.9.4 into react-scripts-ts
170+
* Merge facebookincubator/create-react-app@0.9.3 into react-scripts-ts
171+
* Merge facebookincubator/create-react-app@0.9.2 into react-scripts-ts
172+
* Merge facebookincubator/create-react-app@0.9.1 into react-scripts-ts
173+
174+
### 1.1.6
175+
* Merge facebookincubator/create-react-app@0.9.0 into react-scripts-ts
176+
177+
### 1.0.6
178+
* Add missing `cli-highlight` dependency
179+
180+
### 1.0.5
181+
* Print file names when running `npm run build`
182+
* Add support for `setupTest.ts`
183+
* Highlight source code when erroring in `npm run build`
184+
185+
### 1.0.4
186+
* Change mentions of `eslint` to `tslint`
187+
188+
### 1.0.3
189+
* Remove hidden character from `tsconfig.json`
190+
191+
### 1.0.2
192+
* Copy `typescriptTransform.js` when running `npm run eject`

0 commit comments

Comments
 (0)