Skip to content

create-spectacle: Overwriting for onepage vs t/jsx. #1199

@gksander

Description

@gksander

A onepage project ends up in a file foobar.html, whereas the jsx/tsx project ends up in foobar/.

If user provides a project name foobar and foobar/ directory already exists, we prompt them regarding overwriting the directory. However, if the foobar/ directory already exists, but the user selects a onepage project, then we don't necessarily need to overwrite anything.

We should make the overwrite option more flexible based on the type of project. We likely need to prompt the user for type of project prior to asking for the name, so we can do a dynamic overwrite check based on type of project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    create-spectacleIssues related to create-spectacle

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions