Dan Abramov
3a42ff9009
Provide empty Node mocks for fs, net, tls ( #672 )
2016-09-18 14:09:12 +03:00
Vincent Taing
4a0f39ae80
Crash the app if it does not find index.html or index.js ( #653 )
2016-09-18 11:25:32 +03:00
Dan Abramov
0be495fdb4
Clarify why we use find-cache-dir
2016-09-18 00:50:22 +03:00
Dan Abramov
feae8f05d4
Promote no-undef to be treated as an error ( #669 )
...
Fixes #498
2016-09-17 23:08:58 +03:00
Dan Harper
a5bf07476b
add audio support ( #665 )
2016-09-17 22:20:49 +03:00
Vesa Laakso
e333b8b86c
Exempt variables prefixed with underscore from no-unused-vars rule ( #640 )
...
* Split no-unused-vars ESLint config to multiple lines
* Exempt variables prefixed with underscore from no-unused-vars rule
This is useful when e.g. using object spread operator to remove only a
certain field from the object.
For example, this can be used to ignore a property from React
component's `this.props`:
render() {
const { someAttribute: _unused, ...rest } = this.props;
return <pre>{ JSON.stringify(rest) }</pre>;
}
2016-09-17 00:38:42 +03:00
Moti Zilberman
07105bfd87
Resolve app paths from realpath of CWD, fix #637 ( #648 )
...
* Resolve app paths from realpath of CWD, fix #637
* Use new resolveApp() for NODE_PATH too
2016-09-17 00:13:38 +03:00
Marek Suscak
2c6f1da4d0
Add support for *.jpeg file extension. ( #624 )
2016-09-11 15:48:58 +03:00
Khoa Nguyen
66702915e6
Avoid tons of *.json.gzip-files created in project root when running with docker node ( #620 )
...
* Specify cache directory for babel loader
* Use `react-scripts` for folder name instead
2016-09-10 23:16:43 +03:00
Jeremy Gayed
49e4f64620
Adds JSX extension support ( #563 )
...
* Adds JSX extension support
* PR changes
* Add testRegex
* Add note about not recommending JSX, link to issue
2016-09-03 15:33:54 +01:00
Gael du Plessix
a94b2523bd
Add src/setupTests.js to specify environment setup for Jest ( #545 ) ( #548 )
2016-09-02 20:27:09 +01:00
Dan Abramov
c71337f63b
Tweak how NODE_PATH is handled
2016-09-02 17:52:58 +01:00
Jimmy Miller
82066ac4d6
Added ability to specify multiple directories in node_path.
2016-09-02 17:21:53 +01:00
Jimmy Miller
6e94bd8426
Removed NODE_PATH from env.js
...
env.js is only for variables injected into the app.
2016-09-02 17:10:29 +01:00
Jimmy Miller
afe25dfe5c
Made webpack respect NODE_PATH environment variable
...
Fixes : #253
2016-09-02 17:10:29 +01:00
Jiansen HE
6c8713b7d1
tagging dev-only code (@remove-on-publish-begin/end) and pre-eject-only code (@remove-on-eject-begin/end) #257 ( #257 )
2016-09-02 16:34:34 +01:00
Dan Abramov
48aa7ab74b
Update deps
2016-09-01 20:40:15 +01:00
Dan Abramov
5645aa921d
Resolve babel-runtime relative to the config ( #535 )
...
This makes generators work with Jest.
Fixes #255 .
Replaces #262 .
2016-09-01 18:01:11 +01:00
Dan Abramov
6fe904cd8f
Disable react-constant-elements because of bugs ( #534 )
...
Disabled because of issues:
* https://github.com/facebookincubator/create-react-app/issues/525
* https://phabricator.babeljs.io/search/query/pCNlnC2xzwzx/
TODO: Enable again when these issues are resolved.
2016-09-01 17:51:28 +01:00
Dan Abramov
67fe75926a
Update Jest ( #530 )
...
* Update Jest
* Remove default snapshot test
* Fix a few things
* Add a simple default test
* App.spec.js -> App.test.js
* Fix e2e test
* Bump Jest
2016-09-01 02:08:27 +01:00
Sophia
497371b619
removing no-return-assign lint rule ( #528 ) ( #529 )
2016-08-31 22:24:34 +01:00
Cory House
f1134810a0
Typo fix ( #526 )
2016-08-31 16:28:19 +01:00
Ville Immonen
c27570ede4
Allow importing static file outside src and node_modules folders ( #504 )
...
Remove the `include` setting from webpack loaders for CSS, JSON and other static assets.
This way it's possible to import files from a separate config folder, a parent directory etc.
2016-08-28 18:49:25 +01:00
Kristóf Poduszló
01825465c6
Started using babel-preset-latest ( #490 )
...
* Started using babel-preset-latest
* Updated babel dependencies
* Remove redundant babel-plugin-syntax-async-functions
* Disabled redundant regenerator transform
2016-08-25 13:52:16 +01:00
Felipe Moyano
dcdcab0ecc
Added support for webp images in #442 ( #458 )
2016-08-23 16:13:13 +01:00
Robin Ricard
318c803268
Deactivate the new-cap rule in ESLint ( #470 )
...
This rule is considered dangerous in certain situations. This is especially true for Immutable.js users. See the discussion at issue #465 for more information about this.
2016-08-22 13:51:20 +01:00
Gregory Shehet
b93e6c0bce
add otf font format to loaders ( #434 )
...
* add off font format to loaders
* add otf format support
2016-08-18 19:47:39 +01:00
Arunoda Susiripala
7c912b5ffe
Add a hash to media files even in the devmode. ( #446 )
...
This will work correctly when there are duplicate filenames in different paths.
Fixes : #445
2016-08-15 19:53:19 +01:00
Andrey Popp
60178ac742
Load favicon through html-loader. ( #428 )
...
* Load favicon through html-loader.
Fixes #291 .
* Add test for *.ico in e2e test suite
* Configure html-loader to process <link href="...">
* Address feedback on html-loader inclusion.
* Place favicon.ico at the root of the build dir
* Make comment style consistent between prod and dev webpack configs
* Fix html-loader config in dev mode
2016-08-12 22:37:54 +01:00
Luigi Maselli
623e1bd189
Add React Native Web support ( #407 )
2016-08-09 11:42:37 +01:00
Dan Abramov
bd2509a0e4
Add Object.assign() polyfill ( #399 )
2016-08-08 13:50:49 +01:00
Dan Abramov
8084a326f0
Tweak Jest default settings ( #378 )
...
Disable timer mocking and enable verbose output.
2016-08-05 18:39:50 +01:00
Dan Abramov
2cff34cd4c
Clarify why we only need css?-autoprefixer in development
...
Fixes #377
2016-08-05 17:15:49 +01:00
Dan Abramov
c1a984d98e
Document configuration and build process ( #362 )
2016-08-04 20:56:52 +01:00
Dan Abramov
cd815aafcd
Check for JS files first
2016-08-04 19:08:20 +01:00
Kristóf Poduszló
156a3c6cf1
Added a reasonable config for autoprefixer ( resolves #73 ) ( #345 )
...
* Added a reasonable config for autoprefixer (resolves #73 )
* Moved autoprefixer config to webpack.config
2016-08-04 15:32:47 +01:00
Eli Perelman
8f59cad16d
Adding namespaced environment variables to DefinePlugin under REACT_APP_ ( #342 )
2016-08-03 23:54:55 +01:00
Dan Abramov
a7f9016b3a
Force rebuild after npm install ( #349 )
...
Fixes #186
2016-08-03 23:50:49 +01:00
Ville Immonen
6ea7ec5a4b
Transform async functions with regenerator ( #332 )
...
* Transform async functions with regenerator
Remove `transform-async-to-generator`, which to my understanding is meant
to be used in environments that support generators natively.
Because we're compiling generators to ES5 anyway, we can simply use
`regenerator` to transform async functions too, which results in
slightly simpler output and only uses the regenerator runtime instead
regenerator runtime + _asyncToGenerator Babel helper.
* Add babel-plugin-transform-regenerator
* Use dependencies with an exact version
2016-08-03 00:44:09 +01:00
Dan Abramov
fa38991b75
Support async/await ( #327 )
...
* Make Babel config more verbose and simpler
* Support async/await
2016-08-02 14:38:43 +01:00
Christoph Pojer
0e5abada75
Add Jest. ( #250 )
2016-08-02 00:22:33 +01:00
Alex Zherdev
c239551713
Accept version when loading fonts e.g. font-awesome ( #298 )
...
* Accept version when loading fonts e.g. font-awesome
* Add query string support to mp4/webm
2016-07-30 18:51:27 +01:00
Alex Zherdev
c7c319e207
Webpack plugin to detect case mismatch in requires ( #266 )
2016-07-29 20:39:40 +01:00
Dan Abramov
f05cba5e29
Use /static paths for assets ( #278 )
...
* Use /static paths for assets
* Fix e2e test
2016-07-29 17:09:48 +01:00
Dallon Feldner
d2baa3c4dd
Symlink-friendly path resolution ( #277 )
...
* Symlink-friendly path resolution
I was having difficulties using a local copy of `react-scripts` and `npm link`ing it into a real world project. This change resolves paths relative to the current working directory (that is, most likely the directory of the app) rather than assuming a certain directory structure.
* Fix relative paths in post-eject case
because I'm an idiot
* Renamed resolveLib to resolveOwn
2016-07-29 17:09:40 +01:00
Konstantin Tarkus
dd6ec95cfe
Rename compressor field to compress in UglifyJsPlugin settings ( #264 )
2016-07-28 20:42:58 +01:00
Dan Abramov
fc32623fce
Replace eslint-plugin-flow-vars with eslint-plugin-flowtype
...
This is the one people are converging on, and flow-vars may get deprecated.
2016-07-28 19:55:48 +01:00
Dan Abramov
9dab8715d4
Add a temporary fix for generators ( #262 )
...
This enables us to ship them now, and find a way to resolve runtime path without webpack later.
See https://github.com/facebookincubator/create-react-app/issues/255
2016-07-28 19:52:14 +01:00
Dan Abramov
29c913e92e
Tweak ESLint to better understand Flow ( #261 )
2016-07-28 19:32:16 +01:00
Dan Abramov
373257255c
Enable Node environment for ESLint
...
Fixes #260
2016-07-28 17:13:30 +01:00