Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

feat(cli): use cac for cli #264

Merged
merged 3 commits into from
Jun 27, 2019
Merged

feat(cli): use cac for cli #264

merged 3 commits into from
Jun 27, 2019

Conversation

2nthony
Copy link
Contributor

@2nthony 2nthony commented Jun 21, 2019

$ yarn create nuxt-app --help
...
success Installed "[email protected]" with binaries:
      - create-nuxt-app
> Generating Nuxt.js project in /Users/evila/--help
? Project name (--help) 

The target path is /User/evila/--help obviously not right 🤔

@2nthony 2nthony changed the title refactor(cli): use cac refactor(cli): use cac for cli.js Jun 21, 2019
@TheAlexLichter TheAlexLichter requested a review from clarkdo June 24, 2019 19:06
Copy link
Member

@clarkdo clarkdo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@evillt Thank you for the pr, I'm curious that what's the reason for choosing cac, is there any benefit comparing with commander or minimalist ?

@2nthony
Copy link
Contributor Author

2nthony commented Jun 27, 2019

CAC is very similar to commander.

The main reason is SAO already taken CAC as a dependency(you can see here), reuse a node-module to keep create-nuxt-app the same download size.

How do you think 🤔

@clarkdo clarkdo changed the title refactor(cli): use cac for cli.js feat(cli): use cac for cli Jun 27, 2019
@clarkdo clarkdo changed the title feat(cli): use cac for cli feat(cli): use cac for cli Jun 27, 2019
@clarkdo clarkdo merged commit b80fa2d into nuxt:master Jun 27, 2019
@clarkdo
Copy link
Member

clarkdo commented Jun 27, 2019

Thanks

@2nthony
Copy link
Contributor Author

2nthony commented Jun 27, 2019

It would be honer 💃

@2nthony 2nthony deleted the refactor-bin branch October 23, 2019 04:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants