mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-04-03 22:44:38 +08:00
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.
15 lines
224 B
YAML
15 lines
224 B
YAML
---
|
|
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
|