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

Power up CLI #145

@IniZio

Description

@IniZio

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions