Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Create React apps using typescript with no build configuration.

License

NotificationsYou must be signed in to change notification settings

littleLane/create-react-app-typescript

 
 

Repository files navigation

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

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 fromcreate-react-app but you use typescript! 🚀

tl;dr

npm install -g create-react-appcreate-react-app my-app --scripts-version=react-scripts-tscd my-app/npm start

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.13.0 to>=2.13.0

Since2.13.0,typescript is listed as a peer dependency ofreact-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.

Usingnpm:

npm i -D typescript

Usingyarn:

yarn add -D typescript

From<2.5.0 to>=2.5.0

Version2.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 thanv2.5.0 and upgraded tov2.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:

Testsuitefailedtorun{"messageText":"Cannot read file 'C:\\[project]\\tsconfig.test.json': ENOENT: no such file or directory, open 'C:\\[project]\\tsconfig.test.json'.","category":1,"code":5012}

To fix this, create a new filein the root of the project calledtsconfig.test.json, and pastethe content of this file into it. Everything should work now. For more info, please seethis issue.

Changelog

2.13.0

  • Remove tslint-loader from prod builds - @DorianGrey
  • Include typescript as devDependency in boilerplate - @ianschmitz
  • Document custom module formats - @joshtynjala
  • Fix tsconfig.json - @diabelb

2.12.0

  • Update typescript to 2.6.2

2.11.0

2.10.0

  • README updates - StefanSchoof
  • README updates - DorianGrey
  • Add support for fork-ts-checker-webpack-plugin - johnnyreilly

2.9.0 - UNPUBLISHED

This included changes that were not published by the facebook upstream, so was unpublished.

2.8.0

  • Update typescript to 2.5.3 - @nicolaserny

2.7.0

  • Merge react-scripts@1.0.13 - @JohnNilsson
  • Fix git tempalte - @hktonylee
  • Provide migration docs - @JReinhold
  • Updated dependencies - @swengorschewski
  • Fix tslint config - @comerc

2.6.0

  • Merge react-scripts@1.0.10 - @wmonk
  • Update component template - @pelotom

2.5.0

  • Support dynamic imports - thanks @nicolaserny, @DorianGrey
  • Fix up tsconfig - thanks @js-n
  • Fix readme typo - thanks @adambowles
  • Move to ts-jest - thanks @DorianGrey

2.4.0

  • Upgrade typescript to 2.4 and ts-loader to 2.2.1 - thanks @frederickfogerty
  • Fix readme typo - thanks @wrongway4you

2.3.2

  • Fixtypescript version to 2.3.x until 2.4 @types are fixed

2.3.1

  • All tsc to parse config (forextend) - Thanks to @DorianGrey
  • Fix various jest issues - thanks to @zinserjan
  • Fix code coverage - thanks to @zinserjan

2.2.0

2.1.0

  • Update totslint@5.2.0 - thanks to @mindjuice
  • Fix test setup issue - thanks to @jonmpqts
  • Addsource-map-loader - thanks to @Place1
  • Update totypescript@2.3.3 - thanks to @sjdweb

2.0.1

  • Fix issue with jest finding test files

2.0.0

1.4.0

  • Upgrade to typescript@2.3.2 - thanks to @patrick91
  • Add tests around react-scripts-ts - thanks to @migerh

1.3.0

  • Upgrade to typescript@2.2.2 - thanks to @jeremistadler

1.1.8

  • Fix regression where no@types were being installed on init

1.1.7

  • Merge facebookincubator/create-react-app@0.9.5 into react-scripts-ts
  • Merge facebookincubator/create-react-app@0.9.4 into react-scripts-ts
  • Merge facebookincubator/create-react-app@0.9.3 into react-scripts-ts
  • Merge facebookincubator/create-react-app@0.9.2 into react-scripts-ts
  • Merge facebookincubator/create-react-app@0.9.1 into react-scripts-ts

1.1.6

  • Merge facebookincubator/create-react-app@0.9.0 into react-scripts-ts

1.0.6

  • Add missingcli-highlight dependency

1.0.5

  • Print file names when runningnpm run build
  • Add support forsetupTest.ts
  • Highlight source code when erroring innpm run build

1.0.4

  • Change mentions ofeslint totslint

1.0.3

  • Remove hidden character fromtsconfig.json

1.0.2

  • CopytypescriptTransform.js when runningnpm run eject

About

Create React apps using typescript with no build configuration.

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript98.4%
  • Shell1.2%
  • Other0.4%

[8]ページ先頭

©2009-2025 Movatter.jp