Commit Graph

800 Commits

Author SHA1 Message Date
Dan Abramov
1bfd5dafdf Fix internal linting setup and add missing headers (#1741) 2017-03-06 14:20:29 +00:00
Dan Abramov
03d15f4fd3 Relax ESLint config peerDependency (#1740) 2017-03-06 13:05:35 +00:00
Dan Abramov
e0365a54ad Bust AppVeoyr cache 2017-03-06 13:05:16 +00:00
Ade Viankakrisna Fadlil
fbdff9d722 extract generic build functions to react-dev-utils (#1726)
* Temp rename

* Rename to change the case

* extract generic build functions to react-dev-utils

* tweak package json files and move removeFileNameHash

* revert removeFileNameHash

* use paths.appBuild in printFileSizes

* use paths.appBuild in removeFileNameHash

* change curried functions to regular functions

* add fs-extra to react-dev-utils deps

* move getDifferenceLabel inside printFileSizes

* inline copyPublicFolder

* combine printFileSizes and removeFileNameHash to fileSizeReporter

* fix typo

* Tweak APIs and fix issues

* Fix heading

* Remove missing file

* Newline

* Newline

* Trailing space

* Update FileSizeReporter.js

* Update build.js
2017-03-06 01:49:53 +00:00
Joe Haddad
3fa5e8e7d7 Properly extract package name for installing tgz of scoped packages (#1706)
* Properly extract package name

* Download package if need be ...

* Oops

* Add e2e test based on #1537, but without specific filename

* Pass packageName through promises

A little bit more verbose but explicit and doesn't rely on shared mutable state.

* Fix up directory name in test

* Tweak failure message

* Fix lint
2017-03-05 23:45:29 +00:00
Dan Abramov
23dc422606 Fix ejecting from a scoped fork (#1727)
* Read script names from own bin instead of guessing

This fixes ejecting from a fork that uses a different bin script name.

* Fix ejecting for a scoped react-scripts fork

We shouldn't hardcode react-scripts because fork name might differ.
We also shouldn't rely on it being an immediate child because scoped packages are a level deeper.

* Clarify that own* properties only exist before ejecting
2017-03-05 23:23:51 +00:00
Dan Abramov
2f7e3a2168 Lint internal scripts with eslint:recommended (#1729)
* Lint internal scripts with eslint:recommended

* Warnings r bad
2017-03-05 22:29:28 +00:00
Joe Haddad
df3ca8e614 Fix Node 4 e2e tests (#1730) 2017-03-05 22:29:18 +00:00
Dan Abramov
e001da96e7 Bump root package’s ESLint config dep to latest to resolve peer on npm 2 2017-03-05 21:44:06 +00:00
Dan Abramov
dbee660b29 Bump ESLint config to 0.6.0 manually 2017-03-05 21:42:41 +00:00
Bond
13f26e3288 Bump jsx-a11y version (#1542)
* Bump jsx-a11y version

* Update package dependecy for jsx-a11y

* Bump version in react-scripts
2017-03-05 19:35:24 +00:00
Dan Abramov
ed9eeebf2b Don't use ES6 in a file that should run on Node 4 (#1724) 2017-03-05 19:10:48 +00:00
Dan Abramov
01c3597771 Skip AppVeyor CI builds for Markdown changes (#1723)
* Skip CI builds for Markdown changes

* I will never learn YML
2017-03-05 17:53:43 +00:00
Mato Ilic
5414cff033 Create empty package.json in e2e test (#1401) (#1402)
* Create empty package.json in e2e test

Create empty package.json in e2e test while installing packaged CLI to prevent installation issues.

* Use "npm init" to initialize package.json instead of just writing an empty object into it.

* Fix typo
2017-03-05 17:13:26 +00:00
Pierre Bertet
d07accbd09 Fix openBrowser() when BROWSER=open on macOS (#1690)
* Fix openBrowser() when BROWSER=open on macOS

* Tweaks
2017-03-05 16:42:13 +00:00
Dan Abramov
23f85d3f42 Trigger AppVeyor cache cleanup 2017-03-05 16:14:04 +00:00
Dan Abramov
9d8096e6ff Link Appveyor caches to appveyor.cleanup-cache.txt 2017-03-05 16:13:46 +00:00
Dan Abramov
ae61bf65ca Create appveyor.cleanup-cache.txt 2017-03-05 16:13:22 +00:00
Ade Viankakrisna Fadlil
4ec5af39ac add double quotes to escape spaces in paths in e2e (#1707)
* add double quotes to escape spaces in path

* Change $* to "$@" props to @n3tr

* escape spaces in path for all e2e tests
2017-03-05 15:42:10 +00:00
Chris Drackett
19a46724fb Add support for ignoreRestSiblings in no-unused-vars (#1705)
* updating eslint to 3.16.1

* add support for ignoreRestSiblings in eslint

http://eslint.org/docs/rules/no-unused-vars#ignorerestsiblings

* updating eslint to 3.16.1 in `react-scripts`

* updating eslint

* missing `^`

* missing ^

* pinning main eslint and updating readme

* Pin ESLint version
2017-03-05 14:54:33 +00:00
Ryan Platte
3fe828929f Update now.sh deployment instructions. (#1710)
* Update now.sh deployment instructions.

Incorporates changes announced at https://zeit.co/blog/now-static that streamline Now deployments from CRA projects.

* Remove unintentional reference to deployed app.

No emergency; just didn't intend to tout or send traffic to my prototype.
2017-03-05 14:44:35 +00:00
Ade Viankakrisna Fadlil
443ca23d55 Add docs for apache's client side routing setting (#1717)
* Add docs for apache's client side routing setting

* Tweak advice
2017-03-05 14:07:19 +00:00
Joe Haddad
8951fbe7a3 Lerna 2.0.0-beta.38 expects packages entry 2017-03-04 12:59:09 -05:00
Ade Viankakrisna Fadlil
b421ed9047 pin and bump lerna (#1688) 2017-03-04 13:52:37 +00:00
pd4d10
72695a1c7c Remove unneeded url lib (#1715)
Remove unused `url` import in Webpack config
2017-03-04 13:31:12 +00:00
Daniel Grant
b88d6655eb Modularise scripts (#1433)
* Refactor start script into modules

* Move dev server config into config file

* Replace eject file whitelist with a "remove-file-on-eject" flag

* Move utils into scripts folder (for inclusion in ejection)

* Add missed changes

* Pass showInstructions as an argument

* Fix eject bug

* Don't eject babelTransform
2017-03-03 22:05:07 -05:00
Chris Drackett
59cab8f590 Improve reliability of port hint. (#1696)
* fixing things for people with the username `cwd`

closes #1694

* combine awk into a single command and add escaping
2017-03-03 13:03:07 -05:00
Joe Haddad
c7a9daeb80 Fix Jest tests for Cygwin 2017-03-02 22:33:47 -05:00
Travis Giggy
db64278dd6 Diagnostic code (#1695)
* Adding diagnostic code as requested by @gaearon

* Oops
2017-03-02 21:51:22 +00:00
Simen Bekkhus
45d1d247df Update extract-text-webpack-plugin to latest (#1700) 2017-03-02 10:22:23 -05:00
Dan Abramov
404c354196 Suggest to use .env for enabling polling mode (#1698) 2017-03-02 12:29:44 +00:00
Joe Haddad
43139bc093 Re-enable e2e-install directory test 2017-03-01 20:11:08 -05:00
Myk Klemme
af6a0fffc1 Fixed missing flag in first preprocess command (#1687) 2017-03-01 01:41:09 -05:00
Dan Abramov
60ba9f2b11 Suggest CRA 1.2.1 in changelog 2017-03-01 02:49:56 +00:00
Joe Haddad
1a838dcc13 Published CLI from 0.9.x
- create-react-app@1.2.1
2017-02-28 20:56:12 -05:00
Joe Haddad
342867e147 appveyor: Build all branches 2017-02-28 20:56:12 -05:00
Dan Abramov
10a8dc66d3 Published 0.9.3 from 0.9.x
- create-react-app@1.2.0
 - react-scripts@0.9.3
2017-02-28 20:56:00 -05:00
Joe Haddad
a85ae1d951 False expression should not be in dependencies 2017-02-28 18:03:37 -05:00
Dan Abramov
ee3b788f8f Add "migrating" section for 0.9.3 2017-02-28 17:35:00 +00:00
Dan Abramov
15e1ec287f Add 0.9.3 changelog (#1683) 2017-02-28 17:33:12 +00:00
Simon Vocella
bf948bf24d Use offline cached version with yarn when it's possible (#1423)
* add --offline flag when we are using yarn and we are offline

* Revert changes to init script

We only run these commands for backward compat mode, in which we wouldn't receive the offline flag anyway

* Don't pass isOnline to init script because it doesn't need it

* Don't ping the Yarn registry if user doesn't have Yarn

* Remove unused/wrong arguments

* Move logs to error handler

* Fix error handling

* Report to the user that they're offline
2017-02-28 15:27:53 +00:00
Johann Hubert Sonntagbauer
2b824d8bc3 add X-FORWARDED headers for proxy requests (#1677) 2017-02-28 14:07:29 +00:00
Dan Abramov
7c899fc392 Revert "Enable eslint caching in development" (#1665) 2017-02-28 14:02:45 +00:00
Johann Hubert Sonntagbauer
3509dcd1f7 fix project cleanup on windows (#1675) 2017-02-28 14:00:58 +00:00
Johann Hubert Sonntagbauer
c51a6119a7 add project name validation (#1662)
* add project name validation

* Tweak console output
2017-02-28 13:58:15 +00:00
Joe Haddad
715968ecc1 Remove Windows 0.10 simple test 2017-02-28 08:50:28 -05:00
Johann Hubert Sonntagbauer
2d93ae125f fix react dependency versions during initial install (#1669)
* fix react dependency versions during initial install

* add review remarks
2017-02-28 13:45:41 +00:00
Joe Haddad
a3a223aa1e Add appveyor.yml (#1648)
* Add appveyor.yml

* Execute mocha directly in e2e test

* Replace e2e process substitution

* Kill nohup node processes after e2e

* Disable known failing Windows test

* Only build master
2017-02-27 18:41:49 -05:00
Joe Haddad
a1858c7b38 Fix e2e-simple (cont.) 2017-02-27 18:39:41 -05:00
Joe Haddad
d0695f7d5d Fix e2e when used with cold cache (#1667)
Resolves #1666
2017-02-27 10:46:42 -05:00