Skip to content

Add '--force' flag to 'vue init' command #708

Closed
@codetheorist

Description

@codetheorist

Problem:

When testing templates, it's a frequent cause of headaches when testing.

Currently in the template test.sh scripts, they use the yes command piped to the vue init, which doesn't work.

Solution

To workaround this, we could add a --force flag that will send a new line character to each inquirer prompt.

We could use the mock-stdin package for sending the input to the prompt.

There is a PR coming shortly, fully tested with the Vue Webpack template using both the --force and the -f flag.

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