Commit Graph

483 Commits

Author SHA1 Message Date
Kévin Dunglas
15d8e53daf Remove an useless negation in registerServiceWorker.js (#3150) 2017-10-28 22:01:24 +01:00
Nik Nyby
70e0c08ef7 Remove output.path from dev webpack config (#3158)
According to this parameter's comment, it's unused but webpack-dev-server crashes without it. However, webpack-dev-server is running fine for me without this parameter.
2017-10-28 21:58:09 +01:00
Joe Haddad
5c8000f300 Add .mjs support (#3239) 2017-10-28 21:48:42 +01:00
Ryan Sullivan
4add16dc77 Add documentation for Enzyme 3 integration (#3286)
This resolves #3272.
2017-10-28 21:44:27 +01:00
Satya van Heummen
1fa16ace5f Make uglify work in Safari 10.0 - fixes #3280 (#3281)
Implement settings as suggested here:
https://github.com/mishoo/UglifyJS2/tree/harmony#mangle-options

To solve this Safari bug:
https://bugs.webkit.org/show_bug.cgi?id=171041
2017-10-28 21:42:41 +01:00
Ryan Sullivan
8c7b6e766e Fix favicon sizes value in manifest (#3287)
Fixes #3284.
2017-10-28 21:39:26 +01:00
Dan Abramov
d98b7565b4 Bump dependencies (#3342)
* Bump dependencies

* Downgrade source-map back to 0.5.x

Not sure what changed there but our bundle snapshot doesn't match with minor changes.
I couldn't figure out how to update it, and also whether we need to tweak getPrettyURL in response.
2017-10-28 21:34:47 +01:00
Aaron Shafovaloff
c51258b8a8 recommend react-snap; react-snapshot isn't upgraded for React 16 (#3328) 2017-10-28 21:18:01 +01:00
Dan Abramov
fe4dc744d7 Polyfill rAF in test environment (#3340) 2017-10-28 17:57:27 +01:00
Dan Abramov
c66c296fd1 Use React 16 in development 2017-10-28 17:10:07 +01:00
Dan Abramov
aa322d0893 Clarify the npm precompilation advice
It's confusing: https://mobile.twitter.com/brianleroux/status/923581596720013312

h/t @brianleroux
2017-10-26 18:34:58 +01:00
Lorenzo Palmes
54f7da9bb9 Update eslint-plugin-react (#3146)
* update eslint-plugin-react to 7.3.0

* Updated eslint-plugin-react to 7.4.0
2017-10-23 16:18:54 -04:00
Matt Phillips
72a02c7feb Add jest coverage configuration docs (#3279) 2017-10-21 17:33:04 -04:00
Josh Branchaud
a0c515c8ad Update link to Jest Expect docs (#3303)
The existing link lands on a 'this page has moved' placeholder that
doesn't redirect to the correct location. This PR replaces it with the
currently working URL.
2017-10-19 13:59:10 -04:00
Joe Haddad
1a3017b717 Update README.md 2017-10-17 14:37:28 -04:00
Alex
2d0ef6a436 Fix dead link to Jest "expect" docs (#3289)
Closes #3291
2017-10-17 11:19:44 -04:00
André Ericson
86b4b6ab85 Add external links to deployment services (#3265) 2017-10-11 10:27:40 -04:00
Jonny Buchanan
a0030fcf2d Update style-loader and disable inclusion of its HMR code in builds (#3236) 2017-10-05 20:02:32 -04:00
Joshua Wiens
62f0a83c5e Update url-loader to 0.6.2 for mime ReDoS vuln (#3246)
- Changelog: https://github.com/webpack-contrib/url-loader/blob/master/CHANGELOG.md
 - Reference issue:  https://nodesecurity.io/advisories/535

Fixes #3244
2017-10-05 19:49:07 -04:00
Joe Haddad
01a0d737c7 Fix Windows compatibility (#3232)
* Windows compatibility

* Use regex for mutli-replace
2017-10-02 23:45:20 -04:00
Joe Lim
1e98d0f428 Watch for changes in src/**/node_modules (#3230)
* Allow the dev server to watch for changes in src/node_modules

* fix eslint error

* fix broken regex

* handle trailing slash edge case for file paths

Closes #2760
Fixes #3223
2017-10-02 22:57:02 -04:00
Petr Huřťák
c00358376b More spec compliant HTML template (#2914)
Changed

`<!doctype html>`

to

`<!DOCTYPE html>`

According to the spec it should be uppercase (but parsing is case insensitive)
2017-09-28 23:03:27 -04:00
David Beitey
8c8bbca7ca Minor change to highlight dev proxy behaviour (#3075) 2017-09-28 23:02:22 -04:00
Robert Panzer
a34701b718 Correct manual proxy documentation (#3185)
Correct manual proxy documentation
2017-09-28 22:59:51 -04:00
Joe Haddad
b2c0b3f74b Publish
- babel-preset-react-app@3.0.3
 - create-react-app@1.4.1
 - eslint-config-react-app@2.0.1
 - react-dev-utils@4.1.0
 - react-error-overlay@2.0.2
 - react-scripts@1.0.14
2017-09-26 20:19:49 -04:00
Sophie Alpert
2e82ebb337 BSD+Patents -> MIT (#3189)
* File headers BSD+Patents -> MIT

* BSD+Patents -> MIT
2017-09-26 10:30:05 +01:00
Nik Nyby
376fd432ce Update webpack-dev-server to 2.8.2 (#3157)
It doesn't look like there is any backwards incompatibility:

https://github.com/webpack/webpack-dev-server/releases
2017-09-21 22:48:41 -04:00
Rick Beerendonk
700c8cd4d4 Part of class fields to stage 3 (#2908)
* Class fields to stage 3

Per 2017.07.27 TC39
0bbbb08c3c

* Be explicit that only the public part of the unified field proposal is available.
2017-09-20 09:01:06 -04:00
Kristie Howard
b67ef01ade Update unclear wording in webpack config docs (#3160) 2017-09-19 22:00:44 -04:00
David Leger
206f9e84e6 Resolved issue #2971 (#2989)
* Resolved issue #2971

- changed h2 to h1 in template to adhere to accessibility guidelines.
- Added h1 styles to maintain same font size.

* Added header tag to template

Corrected templete to use semantically correct header tag for header instead of div

* Added className for App-title

- Added className="App-title" to h1 tag
- Changed CSS selector to target class instead of element
2017-09-12 22:32:57 -04: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
Dan Abramov
c22dc70926 Publish
- react-dev-utils@4.0.1
 - react-error-overlay@2.0.1
 - react-scripts@1.0.13
2017-09-02 13:58:21 -07:00
Anthony
6644054fc3 provide empty mock for child_process so importing libraries with it works (#3033) 2017-09-02 13:41:40 -07:00
Tharaka Wijebandara
1df16109c9 Fix error overlay 'Object.assign' issue in IE by including polyfills before webpack client (#3046) 2017-09-01 12:54:58 -07:00
Dan Abramov
a51be9582a Publish
- react-dev-utils@4.0.0
 - react-error-overlay@2.0.0
 - react-scripts@1.0.12
2017-08-27 19:26:52 -07:00
Sylvain Baronnet
2cbb76018a Default Favicon lossless optimisation (#2917) 2017-08-27 20:17:21 -06:00
Christophe Hurpeau
fbbc64fce2 update babel-runtime dependency in react-error-overlay and react-scripts (#2991)
* update babel-runtime dependency in react-error-overlay and react-scripts

`babel-runtime@6.23.0` have a dependency on `regenerator-runtime@0.10.5`
`babel-runtime@6.26.0` on `regenerator-runtime@0.11.0`

> npm ls regenerator-runtime

```
└─┬ react-scripts@1.0.11
  ├─┬ babel-core@6.25.0
  │ └─┬ babel-runtime@6.26.0
  │   └── regenerator-runtime@0.11.0
  ├─┬ babel-eslint@7.2.3
  │ └─┬ babel-traverse@6.26.0
  │   └─┬ babel-runtime@6.26.0
  │     └── regenerator-runtime@0.11.0
  ├─┬ babel-runtime@6.23.0
  │ └── regenerator-runtime@0.10.5
  └─┬ react-error-overlay@1.0.10
    └─┬ babel-runtime@6.23.0
      └── regenerator-runtime@0.10.5
```

* fix requested changes
2017-08-27 20:12:11 -06:00
Tharaka Wijebandara
ecd1f0544b Convert react-error-overlay to React (#2515)
* Convert react-error-overlay to React

* Update compile-time error overlay to use react-error-overlay components

 * Refactor react-error-overlay components to container and presentational components.

 * Make the compile-time error overlay a part of react-error-overlay package.

 * Use react-error-overlay as dependency in react-dev-utils to show compile-time errors.

* Run Prettier

* Move the function name fix into StackFrame itself

* Fix clicking on source code snippet to open the code in editor

* Use exact objects + minor style tweak

* Don't linkify frames that don't exist on the disk

* Fix lint

* Consolidate iframe rendering logic

* Remove circular dependency between react-dev-utils and react-error-overlay

* Fix lint

* Fix decoupling of react-dev-utils and react-error-overlay by moving middleware

* Deduplicate identical errors
2017-08-27 19:45:55 -06:00
Ekaterina Prigara
5ea6de91c2 Docs: debugging in WebStorm (#2986)
* Debugging in WebStorm

* Fixed formatting for shortcuts

* Added note about default URL
2017-08-21 11:40:52 -04:00
Pier-Luc Gendreau
6efab2e12d Remove Modulus from user guide (#2948)
The service was rebranded to xervo.io and was completely shut down in April 2017
2017-08-14 11:51:38 +02:00
Thomas Bassetto
10c1f577da Update README.md (#2927)
Fixing a small typo.
2017-08-09 08:57:37 -04:00
Joe Haddad
bfaee410c5 Publish
- babel-preset-react-app@3.0.2
 - create-react-app@1.4.0
 - eslint-config-react-app@2.0.0
 - react-dev-utils@3.1.0
 - react-error-overlay@1.0.10
 - react-scripts@1.0.11
2017-08-08 23:39:58 -04:00
Joe Haddad
9b23be825a Update dev deps (#2923)
* Bump deps

* Fix linter errors

* Whoops

* Try to bump webpack

* Update peer deps to min for eslint 4.x
2017-08-08 23:15:34 -04:00
Joe Haddad
4cdd5ac427 Update README.md 2017-08-08 21:55:13 -04:00
Ade Viankakrisna Fadlil
1e3a64fa43 Use env variable to disable source maps (#2818)
* use env variable to disable source maps

* Rename to use SOURCE_MAP with explicit value

* Update webpack.config.prod.js
2017-08-08 21:53:37 -04: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
Konstantin Tarkus
2766bbd1ff Fix the order of arguments in spawned child proc (#2913)
* Fix the order of arguments in spawned child proc

* Update react-scripts.js

* Remove a comma

* Update react-scripts.js
2017-08-08 21:35:26 -04:00
themre
e12d053c27 Feature/webpack 3 4 (#2875)
* bump wp3

* try bump babel-loader

* bump 3.4.1
2017-08-02 10:33:13 +01:00
iamdoron
24b18aedd9 Allow importing package.json (#2468)
* Allow importing package.json

* Remove package.json import from App.js template

* fix importing package.json

* Rename variable to reflect path is relative to root

* Check for both package & package.json in ModuleScopePlugin

* Use regex to check relative path to package.json

* Strictly enforce package.json extension on scope plugin

* Add allowedPaths to ModuleScopePlugin ctor and use it to allow app package.json

* Remove package.json import from App.js template

* Add package.json to react-scripts/template, show package version and name in the template

* Remove import package.json from template

* Remove template/package.json and its references in code

* Update ModuleScopePlugin.js

* Update README.md
2017-08-01 22:50:58 -04: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