Commit Graph

49 Commits

Author SHA1 Message Date
Ian Schmitz
f35593c12d Bump minimal Node version to 6 (#1897)
* Bump minimal Node version to 4.7.0

* Bump minimal Node version to 4.7.0

Modified additional files that needed a bump to 4.7.0 minimum node version

* Bump minimal Node version to 4.7.0

Reverse changes to packages/create-react-app/index.js as this file needs to continue to work on Node 0.10+

* Bump minimal node version to 6

* Bump minimal node version to 6

* Bump minimal node version to 6
2017-05-09 11:11:31 +01:00
Joe Haddad
5364908ef9 Duplicate CLI file warning header 2017-03-27 00:39:14 -04:00
Koen de Leijer
0d4d59f73e Check internet connectivity with lookup instead of resolve (#1863)
Resolves #1818
2017-03-22 13:56:04 -04:00
Maxim Kazantsev
82cebbf34e Provide commander with package name (#1867)
commander to figure it out on its own
2017-03-22 13:47:59 -04:00
Jonathan
9512d97900 Allow creation of apps in empty mercurial repos (#1811)
* Allow creation of apps in empty mercurial repos

* Adding .hgignore to list of validFiles for isSafeToCreateProjectIn check

* Adding .hgcheck to list of validFiles for isSafeToCreateProjectIn check
2017-03-14 20:26:09 -04:00
Valerii Sorokobatko
fe7b5c212b update to modern code style (#1738)
* mv create-react-app/index.js -> create-react-app/creteReactApp.js

* update to modern code style

* var -> cosnt

* set trailing-coma to es5 for prettier
2017-03-07 19:46:10 +00:00
Joe Haddad
956322b76a Published branch 0.9.x
- create-react-app@1.3.0
 - eslint-config-react-app@0.6.1
 - react-dev-utils@0.5.2
 - react-scripts@0.9.4
2017-03-06 14:20:24 -05: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
Travis Giggy
db64278dd6 Diagnostic code (#1695)
* Adding diagnostic code as requested by @gaearon

* Oops
2017-03-02 21:51:22 +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
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
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
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
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
f3d8ffff0f Published 0.9.1 at 9e2624f332
- babel-preset-react-app@2.1.1
 - create-react-app@1.1.0
 - eslint-config-react-app@0.5.2
 - react-dev-utils@0.5.1
 - react-scripts@0.9.1
2017-02-25 22:10:11 -05:00
Vicente Jr Yuchitcho
6876c40259 Gracefully handle initial installation error (#1512)
* Gracefully handle initial installation error

* Print out message when problem occurs
* Delete project folder on errors

* Fix directory deleting message

Resolves #1505
2017-02-25 11:48:53 -05:00
Mo Binni
53db95a8c3 NPM version check for tip (#1193)
* Implemented a version check of npm to give a soft tip during the install procedure
and fixed gitignore

* Moved NPM check to method, it is only executed when you use NPM and the version is < 3.

* Minor formatting tweaks

* Simplify the code

* Remove unnecessary change
2017-02-24 20:25:18 +00:00
Daniel Riquelme
1c0851deb5 Update index.js (#1603)
To avoid file conflict issue with IJ static web projects
2017-02-24 17:58:49 +00:00
Jirat Ki
a82896c3e3 Install react, react-dom, and react-scripts at the same time (#1253)
* Install react and react-dom along with react-scripts

- Install react, react-dom and react-script in a same time
- Move react-scripts to devDependencies.

* Check if react, react-dom has been already installed

- To backward compatibility with old CRA’s cli
- In case old CRA doesn’t install react, react-don along with
react-scripts

* Use packageName to find script dependency

- use packageName to find dependency
- fix pathExists.sync

* Check dependencies.react in package.json instead of actual files

* Process exit when dependencies not found

- Show error and exit when dependencies not found.
- Log install show custom package name

* Remove template string

* Install dependencies if template is preseted

* Remove dangling comma

Resolves #1239
2017-02-22 22:55:41 -05:00
Tom Conroy
d9453703e6 Allow --scripts-version to be a git url (#1570) 2017-02-22 22:06:07 -05:00
Alexander James Phillips
2a8535b5d5 Add note for using CHOKIDAR_USEPOLLING in virtual machines to enable HMR (#1608)
* Add note for using CHOKIDAR_USEPOLLING in virtual machines to enable HMR

* Use br in react-scripts template README md

* Use br in md for new line breaks

* Update troubleshooting HMR to allow for VMs running Windows

* Fix up the instructions
2017-02-22 18:37:18 +00:00
Joe Haddad
67e6cf5a52 Publish
- babel-preset-react-app@2.1.0
 - create-react-app@1.0.4
 - eslint-config-react-app@0.5.1
 - react-dev-utils@0.5.0
 - react-scripts@0.9.0
2017-02-10 22:33:41 -05:00
Fabrizio Castellarin
9099570b94 Use a more sophisticated template for end-to-end testing. (#1187)
* Use a more sophisticated template for end-to-end testing.

* Not publish integration tests to npm

* Use "commander" for  cli argv handling

* Handle different scripts version forms and exits without a name given

* Prepare the commands for testing with a template

* Fix dev "template" path

* Add various features to test

* Test various features separately

* Test language features

* Comment unused e2e.sh lines

* Add "development" tests

* Test environment variables

* Test webpack plugins

* Replace kitchensink README

* Switch integration tests from jest to mocha

* Use `fs-extra`

* Use the correct folders

* Do some cleanup

* Print a better message for `--template`

* Test `npm start` with and without https

* Separate fast e2e testing from kitchensink testing

* Hide `--internal-testing-template` (former `--template`) CLI option
2017-01-23 20:43:16 +01:00
Ville Immonen
11cc5aef48 Merge pull request #1367 from facebookincubator/0.8.x
0.8.5
2017-01-09 17:59:11 +02:00
Ville Immonen
a5b838940e Publish
- create-react-app@1.0.3
 - react-scripts@0.8.5
2017-01-09 17:51:41 +02:00
Ville Immonen
24abc5e154 Use yarnpkg alias to run Yarn (#1365)
There’s a common tool included in Hadoop that also has a `yarn` command,
which created issues for users who had Hadoop installed:
* #1257
* #1363

Yarn also installs the command under `yarnpkg` alias (added in
cefa9a368d)
so we can use `yarnpkg` instead of `yarn` to make it more reliable.

This has no effect on users who don't have Hadoop installed, but those
who have won't see errors from falsely detecting Hadoop Yarn as Yarn
the package manager, and they can now also install Yarn to make use of
our Yarn support without the Hadoop Yarn interfering.
2017-01-09 17:27:07 +02:00
Ville Immonen
1b645e2cc4 Use yarnpkg alias to run Yarn (#1365)
There’s a common tool included in Hadoop that also has a `yarn` command,
which created issues for users who had Hadoop installed:
* #1257
* #1363

Yarn also installs the command under `yarnpkg` alias (added in
cefa9a368d)
so we can use `yarnpkg` instead of `yarn` to make it more reliable.

This has no effect on users who don't have Hadoop installed, but those
who have won't see errors from falsely detecting Hadoop Yarn as Yarn
the package manager, and they can now also install Yarn to make use of
our Yarn support without the Hadoop Yarn interfering.
2017-01-09 17:25:31 +02:00
Dinuka De Silva
5fa34ddba1 gh-1269: Enabling nested folder paths for project name (#1270)
* gh-1269: Enabling nested folder paths for project name

* gh-1269: Added "fs-extra" and removed "path-exists"

* gh-1269: Added e2e test cases to verify nested folder names
2016-12-18 19:51:05 +02:00
Dan Abramov
96f4be9b75 Publish
- create-react-app@1.0.2
 - react-dev-utils@0.4.2
 - react-scripts@0.8.4
2016-12-11 11:50:25 +00:00
Dan Abramov
a8dedf3275 Tweak console messages (#1236)
* Tweak minimal Node error message

* Tweak console messages

* It doesn't need to be from npm

* Try to fix e2e test
2016-12-11 03:20:49 -08:00
Fabrizio Castellarin
7f9fb294b3 Use "commander" for cli argv handling (#1195)
* Use "commander" for  cli argv handling

* Handle different scripts version forms and exits without a name given

* Revert comment about min supported node version

* Check sooner for the minimal node version

* Add travis test for node <4

* Parse stderr in node versions <4
2016-12-11 01:01:20 -08:00
Ville Immonen
0990ce089d Exit with an error code when npm/yarn install fails (#1224)
Previously create-react-app exited with 0 after an installation error.
2016-12-10 03:54:14 +02:00
Ville Immonen
2e02e36b9e Clean up Yarn detection and install code (#1223)
* Remove the “‘yarn’ is not recognized as an internal or external
  command, ...” message on Windows
* Simplify the detection code: just run `yarn --version` – if it
  succeeds use `yarn`, if it fails use `npm`.
2016-12-10 03:11:14 +02:00
Dan Abramov
e7d71bd574 Publish
- create-react-app@1.0.1
 - react-scripts@0.8.3
2016-12-08 15:45:27 +00: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
Ville Immonen
b57d8711b0 Publish
- 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
2016-12-03 18:03:38 +02:00
Ville Immonen
bcc469c9a5 Support Yarn (#898)
In the `create-react-app` command, try to install packages using Yarn.
If Yarn is not installed, use npm instead.

In `react-scripts`, detect if the project is using Yarn by checking if
a `yarn.lock` file exists. If the project is using Yarn, display all
the instructions with Yarn commands and use Yarn to install packages
in `init` and `eject` scripts.
2016-11-17 22:55:00 +02:00
Ville Immonen
a5f760bab9 Publish
- babel-preset-react-app@1.0.0
 - create-react-app@0.6.0
 - eslint-config-react-app@0.3.0
 - react-dev-utils@0.3.0
 - react-scripts@0.7.0
2016-10-22 23:49:30 +03:00
Jih-Chi Lee
c5f5b006d8 Fix using pre-release tags with a tarball url in --scripts-version (#876)
* Add supports for prelease tags version

* Add comment to regex

* Cut everything after the first -\d

* Make semver version optional, so just package name get parsed correctly
2016-10-12 13:46:14 +01:00
Patrick Dillon
1359cc492c Support passing scoped package names to --scripts-version arg (#826)
* Support passing scoped package names to --scripts-version arg

* Factor out bitwise operator in indexOf test

* Comment on stripping only version or tag from package name arg
2016-10-11 12:38:45 +01:00
Dan Abramov
d8e9a0e228 Bump create-react-app version 2016-09-23 21:03:49 +01:00
Dan Abramov
92afcaf854 Add READMEs for packages 2016-09-23 13:00:11 +01:00
Simen Bekkhus
07623e2f84 Use pre node@4 compatible path-exists (#685)
* Revert "Add ES5 version of `path-exists` to CLI"

This reverts commit fc3ab46d2a.

* Use pre node@4 compatible `path-exists`

Ref #617
2016-09-20 02:00:51 +03:00
Ville Immonen
26464096d5 Set up a monorepo with Lerna 2016-09-19 10:52:19 +03:00