Skip to content

Allow to create new projects (intelligently) in existing directory #9456

@Relequestual

Description

@Relequestual

When creating a new service via serverless create, cloudflare-workers template won't complete if .gitignore is present, and cannot be ignored.

Use case description

When creating a new service using the cloudflare-workers template (and likely others, I'm not sure), I may already have a .gitignore file which covers more things than just Serverless. I don't want to override it. Maybe I want to add to it. But I don't want to be blocked from creating the initial setup for a new service if I want to keep my .gitignore.

Proposed solution

Provide a CLI flag to avoid trying to create a .gitignore file.
Ideally, provide an option to merge with existing.

Related: #3582

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions