Skip to content

Inconsistent behaviour when bootstrapping a project in cwd #3

@AbhinRustagi

Description

@AbhinRustagi

Currently, if a project is bootstrapped with the path argument as .

  • it still presents the name of the project in CLI as .,
  • and the validations applied for manual name input are not used for parsed arguments.
  • It does not check if the cwd already has any files

Reproduction steps

Bootstrap a project using npx create-c1-app . in an existing directory with a name that does not follow the validation rules (example: @#test) and has some existing files.

Result: The generator will still generate the project. The CLI will log the project name as "." instead of the actual directory name.

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