Skip to content

Update from upstream repo wmonk/create-react-app-typescript@master #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 47 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
29c8b00
exclude coverage from tslint.json
alexandrudanpop Jun 12, 2018
7e2a0be
Merge pull request #340 from alexandrudanpop/#339_tslint_fix
wmonk Jun 12, 2018
c27879b
Use correct tsconfig file for TsconfigPathsPlugin
DorianGrey May 15, 2018
6edb4ff
Resolve merge conflict
AndrewKvalheim Jun 25, 2018
26e43db
fix: do not add ESLint config to ejected app
aurerua Jun 28, 2018
608e0e2
Merge pull request #351 from aurerua/master
wmonk Jul 2, 2018
e4b1f94
Merge pull request #347 from AndrewKvalheim/patch-1
DorianGrey Jul 5, 2018
75ee15f
Update README For 2.17.0
wmonk Aug 5, 2018
2ffd32b
v2.17.0
wmonk Aug 5, 2018
aadae6a
fix: don't let uglify-es inline functions with arguments
ppvg Aug 6, 2018
5b4e661
Makes getting started a one-liner
codereviewvideos Aug 23, 2018
e2f8470
(chore) tune up TypeScript compiler
r3nya Aug 24, 2018
54255b0
Add tslib
r3nya Aug 25, 2018
393cf6c
fix(jest,npm): Explicitly set testURL for jest; remove npm cache clea…
DorianGrey Aug 28, 2018
ce416aa
Merge pull request #381 from r3nya/patch-1
DorianGrey Aug 28, 2018
8b5b8ae
Merge pull request #377 from ppvg/master
DorianGrey Aug 28, 2018
7329dd5
Lift all react-scripts-ts content to root
wmonk Aug 5, 2018
a2f15fb
Update Tests For CI
wmonk Aug 5, 2018
798da0a
Update package version before testing
wmonk Aug 5, 2018
eb1533d
Update verdaccio
wmonk Aug 5, 2018
ea7b9cb
Update Verdaccio Again
Aug 31, 2018
382b748
Remove Kitchen Sink Stuff
Aug 31, 2018
52a51b4
Update Test Stuff
Aug 31, 2018
50d4ae5
Merge pull request #227 from wmonk/break-fork-link
wmonk Aug 31, 2018
990e6bc
Replace README
Aug 31, 2018
29867a0
Update dependencies to match upstream
Aug 31, 2018
b60cbad
Update More Dependencies
Aug 31, 2018
92b112a
Reset Package Versions
wmonk Sep 2, 2018
55ea269
Downgrade TS Packages
wmonk Sep 2, 2018
c716736
Update README.md
wmonk Sep 2, 2018
4c49969
Merge pull request #380 from codereviewvideos/patch-1
wmonk Sep 2, 2018
0dfd82f
Update README
wmonk Sep 2, 2018
48bcfe7
Update README.md
wmonk Sep 2, 2018
2fc595c
Fix links in migration instructions
csantero Sep 4, 2018
f3c855e
Fixed link to the tsconfig.prod.json example
ajhool Sep 4, 2018
d567326
Merge pull request #393 from ajhool/readme-link-fix
wmonk Sep 4, 2018
067b8fc
Merge pull request #391 from csantero/patch-1
wmonk Sep 4, 2018
6b92ca6
added a wider range of common image formats
JoshuaRabiu Sep 16, 2018
aaac716
Update config for Jest
r3nya Sep 27, 2018
24ebcd4
Merge pull request #401 from JoshuaScript/JoshuaScript-patch-1
DorianGrey Sep 28, 2018
88f8aa1
Update createJestConfig.js
r3nya Sep 28, 2018
10a5957
Merge pull request #406 from r3nya/patch-1
wmonk Sep 28, 2018
4d530db
3.0.0
Sep 28, 2018
2cb3de9
3.1.0
Sep 28, 2018
f936f01
chore(package): update description, repository, and bugs.url
bitjson Oct 12, 2018
eb34688
Merge pull request #420 from bitjson/master
DorianGrey Oct 12, 2018
ef987c1
Update README.md
wmonk Dec 12, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 1 addition & 18 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,10 @@
dist: trusty
language: node_js
node_js:
- 8
- 9
cache:
directories:
- node_modules
- packages/create-react-app/node_modules
- packages/react-scripts/node_modules
install: true
script:
- 'if [ $TEST_SUITE = "simple" ]; then tasks/e2e-simple.sh; fi'
- 'if [ $TEST_SUITE = "kitchensink" ]; then tasks/e2e-kitchensink.sh; fi'
- 'if [ $TEST_SUITE = "old-node" ]; then tasks/e2e-old-node.sh; fi'
# Disabled for the moment, since it requires additional work to be done.
# - 'if [ $TEST_SUITE = "installs" ]; then tasks/e2e-installs.sh; fi'
env:
matrix:
- TEST_SUITE=simple
- TEST_SUITE=kitchensink
# See comment above
# - TEST_SUITE=installs
matrix:
include:
- node_js: 6
env: TEST_SUITE=kitchensink
- 'tasks/e2e-simple.sh'
1,374 changes: 0 additions & 1,374 deletions CHANGELOG-0.x.md

This file was deleted.

Empty file removed CHANGELOG.md
Empty file.
3 changes: 0 additions & 3 deletions CODE_OF_CONDUCT.md

This file was deleted.

132 changes: 0 additions & 132 deletions CONTRIBUTING.md

This file was deleted.

21 changes: 0 additions & 21 deletions LICENSE

This file was deleted.

39 changes: 31 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,46 @@
### ⛔ DEPRECATED ⛔
`create-react-app` now supports typescript natively - [read the guide for adding typescript](https://facebook.github.io/create-react-app/docs/adding-typescript) to existing projects.

For existing `react-scripts-ts` users who would like to upgrade, [follow this guide](https://vincenttunru.com/migrate-create-react-app-typescript-to-create-react-app/).

I have chosen to archive this repository, if you need to contact me, i'm on twitter @willmonk.

---

# `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)

Create React apps (with Typescript) with no build configuration.

* [Getting Started](#tldr) – How to create a new app.
* [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.
* [User Guide](https://github.com/wmonk/create-react-app-typescript/blob/master/template/README.md) – How to develop apps bootstrapped with react scripts ts.

_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! 🚀

## tl;dr
## Quick Overview

```sh
npm install -g create-react-app

create-react-app my-app --scripts-version=react-scripts-ts
cd my-app/
npx create-react-app my-app --scripts-version=react-scripts-ts
cd my-app
npm start

# or with yarn
yarn create react-app my-app --scripts-version=react-scripts-ts
cd my-app
yarn start
```

*([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))*

Then open [http://localhost:3000/](http://localhost:3000/) to see your app.<br>
When you’re ready to deploy to production, create a minified bundle with `npm run build`.

## Migration

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.

### From `<2.16.0` to `>=2.16.0`

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).
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/template/tsconfig.prod.json).

### From `<2.13.0` to `>=2.13.0`

Expand Down Expand Up @@ -53,10 +70,16 @@ Test suite failed to run
}
```

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).
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/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).

## Changelog

### 2.17.0
* Update migration instructions - @DorianGrey
* tslint updates - @alexandrudanpop
* Stop eslint includes - @aurerua
* Resolve commited merge conflig - @AndrewKvalheim

### 2.16.0
* Allow `moduleNameMapper` config override - @sebald
* Fix travis build - @DorianGrey
Expand Down
6 changes: 0 additions & 6 deletions appveyor.cleanup-cache.txt

This file was deleted.

42 changes: 0 additions & 42 deletions appveyor.yml

This file was deleted.

File renamed without changes.
67 changes: 0 additions & 67 deletions bootstrap.js

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading