• Ville Immonen's avatar
    Support Yarn (#898) · bcc469c9
    Ville Immonen authored
    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.
    bcc469c9
.travis.yml 224 bytes
---
language: node_js
node_js:
  - 4
  - 6
cache:
  directories:
  - node_modules
  - packages/create-react-app/node_modules
  - packages/react-scripts/node_modules
script: tasks/e2e.sh
env:
  - USE_YARN=no
  - USE_YARN=yes