Skip to content
This repository has been archived by the owner on Jan 1, 2020. It is now read-only.

Power up CLI #145

Open
IniZio opened this issue Nov 27, 2018 · 0 comments
Open

Power up CLI #145

IniZio opened this issue Nov 27, 2018 · 0 comments

Comments

@IniZio
Copy link
Member

IniZio commented Nov 27, 2018

Description

Currently CLI is getting a bit bloaty due to added hooks, and is not clearly separated in terms of initializing clipped.

Think might be better to move it to separate package @clipped/cli like @babel/cli

Maybe do it before cac migration

And I think it will be awesome if when some cases can be automated for users.

Examples:

  • When user installed React and then runs clipped dev, cli can assume behaviour like create-react-app. So install webpack, babel and react plugin and then run the dev hook
  • If detect index.html in src, automatically use it as template in html-webpack-plugin

Possible issues:

  • How do I know if user want to use Webpack or Rollup?
  • How to cleanly revert if, e.g. user uninstalls React and install Vue

Suggestions

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant