Skip to content

Eject command #44

@matt-gadd

Description

@matt-gadd

Our cli commands are meant to make the consumers code config free by internalising the config/config generation into the command itself. Given this, if a user needs more flexibility than the basic setup, we should allow them to "eject" those configs from the cli so they can use as a base for them to build on. This is an idea implemented in create-react-app.

The easiest way to implement this would just be to add an additional function to the command interface named eject, it is then up to the command to dump whatever config it has in files to the project.

Additional thoughts:

  • Nearly all eject commands are going to want to add dependencies to the package.json, so we might want to implement a helper to do that.
  • dojo eject seems like it should be an internal command to the cli. We don't have the concept of internal commands at the moment.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions