Commit Graph

165 Commits

Author SHA1 Message Date
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
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
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
Jan-André Zinser
106599d23f Fix code-coverage reports for ts/tsx 2017-06-23 12:12:52 +02: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
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
Dan Abramov
25f81f2bea Files in public/ folder should not be requested through proxy (#2326) 2017-05-22 17:04:17 +01:00
William Monk
b9b585f147 Fix jest tests 2017-05-22 15:15:37 +01:00
William Monk
66e05f42e4 Fix @type Installing 2017-05-22 13:31:27 +01:00
Pavol Madar
0d1521aabf Remove connect-history-api-fallback and cross-spawn dependencies from react-scripts (#751) (#2320) 2017-05-22 12:46:51 +01:00
William Monk
25f6f8a250 v2.0.0-alpha 2017-05-22 09:08:49 +01:00
William Monk
32f52bebfe Merge remote-tracking branch 'facebook/master' 2017-05-21 21:27:47 +01:00
pmadar
a1749f9154 Remove unnecessary dependencies(#751) (#2283)
* Remove unnecessary dependencies(#751)

* Sort alphabetically
2017-05-20 19:08:58 +01:00
Milo Kang
a257e7d0fa Ejecting should ensure you have clean git status (#2221)
* Ejecting should ensure you have clean git status

* Rename function

* Style

* Minor changes

- extract function
- exclude error output for missing git
- more descriptive error message
- no need to mutate answer
- fix answering "no" to return 0 exit code
2017-05-20 18:55:16 +01:00
Dan Abramov
e8063322e0 Shut down server silently, as it is too noisy 2017-05-19 20:08:05 +01:00
Dan Abramov
2023e44126 Shame on me 2017-05-19 16:37:41 +01:00
Dan Abramov
e0b444e517 Gracefully shut down the server on signals (#2246) 2017-05-19 14:59:28 +01:00
Dan Abramov
43b819c2bb "rule keywords" => "keywords" 2017-05-18 22:46:30 +01:00
Dan Abramov
8dc9217b61 Move more logic from react-scripts to react-dev-utils (#2209)
* Show warnings for builds

* Move WebpackDevServer helpers into react-dev-utils
2017-05-18 12:26:18 +01:00
Dan Abramov
c82c4f0561 Refactor and improve build output (#2202) 2017-05-18 01:24:42 +01:00
Dan Abramov
e280254d72 Handle errors from port detector (#2182) 2017-05-16 16:57:45 +01:00
Dan Abramov
46eeabca7e Tweak colors for better contrast on Windows (#2180) 2017-05-16 16:45:12 +01:00
Ryan Sullivan
10a180be9b Make coverage and snapshot Jest options overridable in package.json (#1830)
* Override Jest config collectCoverageFrom with package.json

* Protect against overriding other options

* Better error message

* Create Jest config early on eject

* Tweak wording

* Dry it up
2017-05-16 05:13:19 +01:00
Tom Dunlap
c5e5eb5e33 Only run tests in <rootDir>/src (#544) (#1808)
* Only run tests in <rootDir>/src (#544)

* updates Jest to 19.0.2

* removes testPathIgnorePatterns from jest config

* adds testMatch to jest config to only match files in src

* Bump babel-jest to 19.0.0 to match jest 19.0.2
2017-05-15 19:46:18 -05:00
Rogelio Guzman
71e0960476 Update to Jest 19 (#1614)
* Upgrade to Jest 19

* Use testMatch

* Correct version
2017-05-15 14:35:18 -04:00
Dan Abramov
f87e61337a Make error/warning output more useful (#2161) 2017-05-15 18:09:05 +01:00
Joe Haddad
ac63130a42 Show network address on start (#2155)
* Show network address on start

* Tweak visual representation
2017-05-15 14:20:11 +01:00
Joe Haddad
4dc7c86511 Prefer localhost as an address (#2154) 2017-05-14 22:04:05 -04:00
Joe Haddad
281e8d23f8 Add support for IPv6 hosts 2017-05-14 21:25:21 -04:00
James Blight
71a27c0f8b Allow custom proxies in development (#1790)
* Change proxy handling to allow multiple proxies to be specified in package.json.

* Up webpack-dev-server to 2.4.2

Webpack Dev Server version 2.4.2 handles the external websocket upgrade
for all proxies

* Fix the listen() call

* Switch to correct default host

* Remove promises and extract to react-dev-utils

* oops
2017-05-14 21:12:54 -04:00
Dan Abramov
21349c542b Tweak error and warning output (#2152)
* Tweak error and warning output

* Add a colon
2017-05-15 01:07:59 +01:00
Siddharth Doshi
f17448e9e5 Add custom eslint formatter (#2138)
* Add custom eslint formatter

* Add formatter docs

* Update formatter docs

* Slightly tweak it

* Update README.md
2017-05-15 00:42:13 +01:00