create-evergreen-app icon indicating copy to clipboard operation
create-evergreen-app copied to clipboard

contextualize CEA installer when using --yarn flag

Open thescientist13 opened this issue 7 years ago • 1 comments

Type of Change

  • [ ] New Feature Request
  • [ ] Documentation
  • [x] Improvement / Suggestion
  • [ ] Bug
  • [ ] Other (please clarify below)

Summary

When running

$ npx create-evergreen-app my-app --yarn

The user will see this

Installing project dependencies...
yarn install v1.12.3
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.

And also

 npx create-evergeen-app my-app --yarn
.
.
.
And then launch your project with: npm start
-------------------------------------------------------

Details

If the --yarn flag is passed, we should delete package-lock.json before running install and make sure the instructional text references Yarn instead of npm.

related to #23

thescientist13 avatar Feb 27 '19 02:02 thescientist13

Also, we should update the success message that is output too

$ npx create-evergeen-app my-app --yarn
.
.
.
And then launch your project with: npm start
-------------------------------------------------------

We should have it say yarn start

thescientist13 avatar Mar 03 '19 00:03 thescientist13