Commit Graph

1693 Commits

Author SHA1 Message Date
Dan Abramov
e9085b98ef Add 0.8.3 changelog (#1205) 2016-12-08 07:44:54 -08:00
Dan Abramov
270fe06c64 Catch synchronous errors from spawning yarn (#1204)
* Catch synchronous errors from spawning yarn

* Fix issues
2016-12-08 07:36:46 -08:00
Dan Abramov
0a9865db34 Update webpack-subresource-integrity to fix Windows builds (#1203) 2016-12-08 07:04:56 -08:00
mustang
adbc1a206d Instruct Jest to load native components from RNW instead of RN (#1201) 2016-12-08 00:40:18 +00:00
Marek Suscak
9fd528c5b7 Add syntax highlighting configuration guide. (#806)
* Add syntax highlighting configuration guide.

* Update link.
2016-12-07 23:37:10 +02:00
Dan Abramov
49414d6ba0 Publish
- babel-preset-react-app@2.0.1
 - eslint-config-react-app@0.5.0
 - react-dev-utils@0.4.1
 - react-scripts@0.8.2
v0.8.2 react-scripts@0.8.2
2016-12-07 21:31:11 +00:00
Dan Abramov
28ed5b5c68 Add changelog for 0.8.2 (#1198)
* Add changelog for 0.8.2

* Fix date
2016-12-07 21:23:33 +00:00
Dan Abramov
5456ffff29 Let Jest handle all file types (#1197)
* Let Jest handle all file types

* Update regexes

* Fix exclusion regex to also exclude files without extension
* Be over-cautious with Windows paths because I'm not sure how Jest handles them

* There is no automatic babel-jest discovery now that we use transsform
2016-12-07 20:28:03 +00:00
Dan Abramov
cf64077f81 Only honor relative NODE_PATH (#1194) 2016-12-07 16:06:35 +00:00
Dan Abramov
d68a989779 Relax peerDependencies for ESLint preset (#1191) 2016-12-07 14:12:58 +00:00
Dan Abramov
5f57040376 Update Webpack to fix source map issues (#1188) 2016-12-07 12:58:01 +00:00
Vincenzo Chianese
45c042685e Update webpack prod config (#1181) 2016-12-07 12:27:07 +00:00
Jirat Ki
6ebec23a85 Chrome 'open tab' reuse an empty tab when possible (#1165)
* Reuse empty tab on open chrome apple script

* Break find tab into function

* Use property to store found

* Fix minor issues that caused window to not get active
2016-12-06 17:14:57 +00:00
Bogdan Soare
15feb02e9c Use file-loader for svgs (#1180) 2016-12-06 16:07:50 +00:00
Dan Abramov
d8dfdb01c7 Fix Babel issues in tests by applying the right transforms (#1179) 2016-12-06 15:10:42 +00:00
Fabrizio Castellarin
7af5374ec9 [babel-preset-react-app] Temporary fix missing babel plugins (#1177)
* temporary fix missing babel plugins

* Add an issue link
2016-12-06 13:50:50 +00:00
Vincenzo Chianese
11cd813802 Add Subresource Integrity support (#1176)
* Add Subresource Integrity support

* Pin dependency
2016-12-06 12:20:09 +00:00
Harun
80765677d5 Remove path module from webpack config on eject. (#1175)
* Remove path module from webpack config on eject.

Fixes #1174

* Move path module inclusion right after the other imports

Re: #1174
2016-12-06 11:17:18 +00:00
James Newell
f7d9cd8166 Don't strip stack traces of evaluated webpack bundles (#1050)
* Don't strip stack traces of evaluated webpack code

* Strip stack traces at the end of a string

because the last line doesn't always have a `\n` and `create-react-app` is leaving the last line of the stack traces present in the error messages

* code comment

* code comment
2016-12-05 22:58:36 +00:00
Guilherme Heynemann Bruzzi
023a5d9d46 Add deploy to Firebase CDN on template's README (Closes #374) (#1143)
* Add deploy to Firebase CDN on template's README (Closes #374)

* Move section and minor tweaks
2016-12-05 22:19:26 +00:00
Dan Abramov
3a36693a05 Update e2e.sh (#1167) 2016-12-05 21:58:31 +00:00
Li Xuanji
b61dc67430 Document what npm build does and pushState (#933)
* Document what npm build does and pushState

* Fix typos, add express example

* Tweaks

* Update README.md
2016-12-05 21:57:54 +00:00
Alex Wilmer
3f6d68390a Fix minor typo/grammar (#1099) 2016-12-05 21:40:22 +00:00
Dan Abramov
0b6f4b8d3c Add "npm run build silently fails" to Troubleshooting (#1168)
* Add "npm run build silently fails" to Troubleshooting

* Update README.md
2016-12-05 21:24:54 +00:00
Stephen John Sorensen
aaa615f6fa Add testURL to jest config (#1120)
In my tests, jsdom was throwing a "SecurityError" at HistoryImpl._sharedPushAndReplaceState (node_modules/react-scripts/node_modules/jsdom/lib/jsdom/living/window/History-impl.js:87:15)

This happens because document.URL defaults to "about:blank". Unfortunately, if you interact with the History object it tries and fails to parse the URL, causing a "SecurityError" to be thrown. Setting the default URL to "http://localhost" fixes this issue.
2016-12-05 20:06:47 +00:00
Brian Ng
15f65a0a4e Make jsx-no-undef rule an error (#1159) 2016-12-05 19:59:25 +00:00
Ville Immonen
4f3675c81f Update CHANGELOG.md 2016-12-04 11:11:45 +02:00
Ville Immonen
b844e4e878 Publish
- react-scripts@0.8.1
v0.8.1 react-scripts@0.8.1
2016-12-04 11:04:12 +02:00
Ville Immonen
ea38f0b922 Update changelog for 0.8.1 2016-12-04 11:04:00 +02:00
Ville Immonen
715de0de6b Revert Jest moduleNameMapper regex back to a whitelist (#1149)
Jest matches moduleNameMapper regexes with module names, not the full
file path, so the negative lookahead doesn’t work for filtering out
JS files, because they can be imported without the extension. So paths
like `lodash.assign` and `../utils/range` were mislabeled as resources
with unknown file extensions because they have a dot in the name.

As a stopgap measure, revert the moduleNameMapper regex added in #1077.
2016-12-04 10:57:57 +02:00
Ville Immonen
b57d8711b0 Publish
- create-react-app@1.0.0
create-react-app@1.0.0
2016-12-03 20:02:15 +02:00
Ville Immonen
329911606c Update package.json 2016-12-03 20:02:05 +02:00
Ville Immonen
2769933825 Bump global CLI to 1.0.0 2016-12-03 19:57:53 +02:00
Ville Immonen
5ee027d638 Publish
- babel-preset-react-app@2.0.0
 - create-react-app@0.7.0
 - eslint-config-react-app@0.4.0
 - react-dev-utils@0.4.0
 - react-scripts@0.8.0
babel-preset-react-app@2.0.0 react-scripts@0.8.0 react-dev-utils@0.4.0 eslint-config-react-app@0.4.0 create-react-app@0.7.0 v0.8.0
2016-12-03 18:03:38 +02:00
Ville Immonen
e167e45a2c Update changelog for 0.8.0 and add Lerna Changelog (#1141) 2016-12-03 17:53:03 +02:00
Dirk-Jan Rutten
cdd17a6914 Crash the build during CI whenever linter warnings are encountered (#944)
* Added functionality to crash the build during CI whenever linter warnings are encountered.

* Updated the docs with a description on how to use the build in CI

* Fixed small typo

* Fixed description of build error.
2016-12-03 14:39:29 +02:00
Orta
9ce0aa5f5a Add a note about vscode-jest (#1126) 2016-12-01 16:09:43 +00:00
Dan Abramov
5a273b2a93 Add link to PWA instructions to main README 2016-11-28 17:37:01 +00:00
Dan Abramov
f5f4460681 Add a link to PWA instructions 2016-11-28 17:35:57 +00:00
Adam Stankiewicz
dc6edce99b Add support for non-interactive terminal (#1032) 2016-11-23 23:36:01 +02:00
Dave Ceddia
ce918191b2 Enable proxying of websockets (#1090)
Added `ws: true` to the httpProxyMiddleware options, and also listen
for the "upgrade" event so that websockets can be proxied immediately,
rather than waiting for an initial HTTP request.
2016-11-23 19:42:54 +00:00
Dan Abramov
ab57f77200 Add troubleshooting to main ToC 2016-11-23 13:17:48 +00:00
Daniel Rech
66adb3e021 Add a note for OSX users about watchman and jest (#1080)
* Add a note for OSX users about watchman and jest

Minor additional information on how to solve watchman problems reported in #713 and #1767

* Introduced new Troubleshooting section

Add better explanation how to solve #713 and linked related Issues.

* Tweak wording and add it to TOC
2016-11-23 13:17:02 +00:00
Ian McNally
05c3b55c62 add logging of existing default port process on start (#816)
* add logging of existing port process on start

* Move port process wording in start command on to next line

* Color the named processes as cyan in terminal output

* Add handling for multiple processes on a part

- With the currently process filtering, if multiple processes are returned as running on port 3000, this command would fail. This splits apart the process IDing and the process naming, to support multiple processes.
- One curious thing about the bash command to get processes, is that it'll include browsers with a window open on localhost:3000. May want to reconsider that.

* Add process directory to existing port warning

- also moved terminal coloring up, when getting the process, to be able to distinguish the process command from the directory

* Change output color to all cyan, except "in"

* Rename getProcessNameOnPort -> getProcessForPort

- better reflects its broadened scope (both command and directory)

* Add checking if process is a CRA instance, to customize port running message

- moved from using package.json to a regex, for reliability

* Move getProcessForPort to react-dev-utils

- also allowed for breakdown of commands into helper methods

* Add documentation for getProcessForPort

* Add getProcessForPort to list of dev-scripts files

* Use app's package name when CRA app is running on another port

* Filter port process by those listening

- Removed the handling of multiple process IDs since you can filtering by listening process (and not have the browser in the list of processes)
- Trimmed the terminal outputs for better matching (process id) and better terminal output (directory of process)

* Update README on port helpers, to specify only one port returned

* Add ignore of stderr when executing process commands

- Make sure any potential errors don't leak to the user
2016-11-22 22:44:21 +02:00
Brian Ng
9c45b25281 Enable useBuiltIns option on object-rest-spread (#902)
* Enable useBuiltIns option on object-rest-spread

* note polyfill requirement

* Enable useBuiltIns with transform-react-jsx

* Add direct ref to transform-react-jsx
2016-11-22 00:08:58 +02:00
Stefan
6e00813632 Adapt jest and eslint for new default loader scope. (#1077)
Revert webpack prod config comments to not refer to dev server.
2016-11-22 00:03:40 +02:00
Ville Immonen
7e9cb18a55 Upgrade Jest to 17.0 (#1078)
* Replace `scriptPreprocessor` config with `transform`.
* Also remove `moduleFileExtensions` which has been redundant since 16.0
  (`['js', 'json', 'jsx', 'node’]` is the default)
2016-11-21 23:00:39 +02:00
Brian Ng
2da6edabab Replace rimraf with fs-extra functions (#1072) 2016-11-21 18:26:08 +00:00
Stefan
058b2cc887 exclude html from default loader. (#1075) 2016-11-21 13:57:21 +02:00
Ville Immonen
e04263408c Remove bundledDependencies (#1068)
* Remove bundledDependencies
* Change the e2e scripts to use local file dependencies instead of
  bundledDependencies to test the packages
2016-11-21 13:26:07 +02:00