Commit Graph

191 Commits

Author SHA1 Message Date
Gustav Wengel
ec0a39e080 Added the abillity to import js and jsx files with ts-loader (#242)
* added js and jsx to things that ts-loader loads

* removed spaces and made prettier runnable on windows

* run jsx specs too

* added isejecting

* added dependencies and babeltransform

* bumped jest version#

* does it work without cache?

* cache?

* added ts

* updates ts-jest

* readd caching

* removed ts as a devdependency

* added babel to handle js files

* added prod env

* prod is handled by babel loader

* added ts as devdep

* cache node modules

* fixed legal
2018-02-13 10:00:43 +01:00
Ian Schmitz
3a40ac03b0 Include TypeScript as devDependency in boilerplate output 2018-01-18 17:57:23 -08:00
Will Monk
e637c79284 Update createJestConfig.js 2018-01-13 13:38:13 +00:00
William Monk
13c0e7fe6a Readd transformIgnorePatterns 2018-01-12 21:09:12 +00:00
William Monk
bb74fb6aea Update JestConfig Creation 2018-01-11 22:02:02 +00:00
William Monk
6f0c62f43c Fix 2018-01-11 09:26:49 +00:00
William Monk
237c0faf6d Fix Missing Variable 2018-01-11 09:14:12 +00:00
William Monk
1061fdef87 Merge facebookincubator/create-react-app@1.0.17 2018-01-11 09:00:42 +00:00
Joe Haddad
5c8000f300 Add .mjs support (#3239) 2017-10-28 21:48:42 +01:00
Sophie Alpert
2e82ebb337 BSD+Patents -> MIT (#3189)
* File headers BSD+Patents -> MIT

* BSD+Patents -> MIT
2017-09-26 10:30:05 +01:00
Ade Viankakrisna Fadlil
44cfbccfda Rerun prettier and pin version (#3058)
* rerun prettier for all files

* pin prettier to 1.6.1
2017-09-10 01:12:38 -04:00
Stéphane Goetz
b2593b64aa Make formatWebpackMessages return all messages (#2834)
* Move the reduction of the messages to a single place in the place it is used.

* Fix variable name
2017-09-09 22:25:58 +02:00
Ade Viankakrisna Fadlil
e08b789c2e Format UglifyJs error (#2650)
* format UglifyJs error

* move formatBuildError to react-dev-utils

* fix readme

* use regex for plucking the path from stack

* make path human readable and fallback to show error if regex not matched

* rename to printBuildError and add link to the docs

* fix link indentation

* improve readibility + shorten link
2017-09-09 22:25:57 +02:00
Mostafa Hajizadeh
31e3ffea78 Add "node" to Jest's moduleFileExtensions (#2738)
Jest's default value for this option is ["js", "json", "jsx", "node"].
CRA's current value is ["web.js", "js", "json", "web.jsx", "jsx"], which
is missing one of default ones: "node". This change fixes that.

This "node" extension is used in packages that use native code.
2017-09-09 22:25:19 +02:00
Swen Gorschewski
6ae7751218 Install typings as dev dependencies
Fixes #142
2017-08-17 10:34:30 +02:00
Stéphane Goetz
badfc2a8d9 Make formatWebpackMessages return all messages (#2834)
* Move the reduction of the messages to a single place in the place it is used.

* Fix variable name
2017-08-08 21:37:04 -04:00
William Monk
7014aeddda Fix Code Review 2017-08-07 16:20:05 +02:00
Dan Abramov
10bd98cbe5 Reformat source code with Prettier 1.5.2 2017-08-07 16:16:16 +02:00
Evan Jones
e8e2926e87 Better React Native Web support (#2511)
* Better React Native Web support

* Adding better react-native-web support for jest testing
2017-08-07 16:16:16 +02:00
Dan Abramov
853642676e Put react-scripts in dependencies, not devDependencies (#2657)
* Put react-scripts in dependencies, not devDependencies

* Sort dependencies on eject

* Remove CI check
2017-08-07 16:10:59 +02:00
Dan Abramov
a9c8b817f3 Warn about large bundle sizes (#2648) 2017-08-07 16:10:41 +02:00
Dan Abramov
88e03cefd3 Set npm loglevel to 'error' (#2635) 2017-08-07 16:05:30 +02:00
Dan Abramov
7478e24973 Don't run yarn after ejecting (#2634) 2017-08-07 16:05:30 +02:00
Paweł Jędrzejczyk
d585b5abda add check to filter out custom scripts in eject command (#2562) 2017-08-07 16:05:30 +02:00
Joe Haddad
96709b727f Fix a potential issue (#2569) 2017-08-07 16:02:05 +02:00
varnav
1f4db46b9e Check if CI variable is set to 'false' (#2501)
* Fix incorrect check if CI variable is set to true

Originally build would fail on warnings with any value of CI environment variable. Now it will correctly check if it's true.

Discussed here: https://github.com/facebookincubator/create-react-app/issues/2453

* Check for "not false" instead of "not true"

After discussion we decided that this will be closer to current functionality and not break anything.
2017-08-07 16:02:05 +02:00
Dan Abramov
993fd306c5 Consistently set environment variables (#2382) 2017-08-07 15:59:41 +02:00
Jin Zheng
6a48c7cab0 Print file sizes with correct build folder path. (#2361)
* Print file sizes with correct build folder path.

* Just use the print the basename.
2017-08-07 15:59:41 +02:00
Ade Viankakrisna Fadlil
b643f5710a Format UglifyJs error (#2650)
* format UglifyJs error

* move formatBuildError to react-dev-utils

* fix readme

* use regex for plucking the path from stack

* make path human readable and fallback to show error if regex not matched

* rename to printBuildError and add link to the docs

* fix link indentation

* improve readibility + shorten link
2017-08-01 21:57:50 -04:00
nicolaserny
e1224ed94b Add tsconfig.test.json (instead of using deprecated TS_CONFIG) 2017-07-25 09:24:44 +02:00
nicolaserny
5028178683 Fix tests 2017-07-24 15:44:14 +02:00
DorianGrey
6fa3b6ae49 Use ts-jest instead of custom solution for transforming ts files. 2017-07-13 08:21:20 +02:00
Mostafa Hajizadeh
16f0d4a56c Add "node" to Jest's moduleFileExtensions (#2738)
Jest's default value for this option is ["js", "json", "jsx", "node"].
CRA's current value is ["web.js", "js", "json", "web.jsx", "jsx"], which
is missing one of default ones: "node". This change fixes that.

This "node" extension is used in packages that use native code.
2017-07-07 11:37:32 +01:00
Dan Abramov
a171d93064 Reformat source code with Prettier 1.5.2 2017-06-28 16:23:16 +01:00
Evan Jones
6ab0ec0075 Better React Native Web support (#2511)
* Better React Native Web support

* Adding better react-native-web support for jest testing
2017-06-28 15:29:58 +01:00
Dan Abramov
9559ba486e Put react-scripts in dependencies, not devDependencies (#2657)
* Put react-scripts in dependencies, not devDependencies

* Sort dependencies on eject

* Remove CI check
2017-06-28 14:04:26 +01:00
Dan Abramov
7cf4de71fa Warn about large bundle sizes (#2648) 2017-06-28 00:00:49 +01:00
Dan Abramov
3747144f9a Set npm loglevel to 'error' (#2635) 2017-06-27 15:39:42 +01:00
Dan Abramov
bed875c83d Don't run yarn after ejecting (#2634) 2017-06-27 15:09:46 +01:00
Paweł Jędrzejczyk
0644e80d36 add check to filter out custom scripts in eject command (#2562) 2017-06-27 14:11:14 +01:00
Jan-André Zinser
106599d23f Fix code-coverage reports for ts/tsx 2017-06-23 12:12:52 +02:00
Joe Haddad
31a4d14b33 Fix a potential issue (#2569) 2017-06-19 13:27:02 -04:00
varnav
5b38c5439d Check if CI variable is set to 'false' (#2501)
* Fix incorrect check if CI variable is set to true

Originally build would fail on warnings with any value of CI environment variable. Now it will correctly check if it's true.

Discussed here: https://github.com/facebookincubator/create-react-app/issues/2453

* Check for "not false" instead of "not true"

After discussion we decided that this will be closer to current functionality and not break anything.
2017-06-19 12:36:28 -04:00
William Monk
6fcb0143a4 Merge pull request #82 from zinserjan/fix-tsx-extension
Fix transform ignore pattern for tsx
2017-06-13 22:38:52 +01:00
Jan-André Zinser
ad6144942f Fix transform ignore pattern for tsx 2017-06-07 21:27:56 +02:00
Matthew Leffler
5589c0c2e4 Allow loading modules from json files
This adds supports for such packages as:

- [`babel-core`](https://github.com/babel/babel/blob/7ca8170/packages/babel-core/src/index.js#L5)
- [`normalize-package-data`](d8a6a0c17c/lib/fixer.js (L8))
2017-06-06 14:00:40 -06:00
Dan Abramov
2069e8ac43 Consistently set environment variables (#2382) 2017-05-27 12:37:07 +01:00
Jin Zheng
b60f55c6bf Print file sizes with correct build folder path. (#2361)
* Print file sizes with correct build folder path.

* Just use the print the basename.
2017-05-25 16:18:29 +01:00
William Monk
6bd33bd2ec Merge remote-tracking branch 'facebook/master' 2017-05-25 08:38:39 +01:00
Thomas Gish
712d6dbb61 Fix setupTests extension 2017-05-22 12:51:09 -07:00