Skip to content
This repository was archived by the owner on Dec 11, 2018. It is now read-only.
This repository was archived by the owner on Dec 11, 2018. It is now read-only.

Handle project names with spaces #10

@fkling

Description

@fkling

If exerslide init is run as

exerslide init "My Project Name"

it will fail silently. It looks like everything will have installed fine but that's not the case. That's because the project name is used in the package.json's name field which doesn't allow spaces, so npm refuses to install any dependencies.

The name is also used in other places where spaces (and other characters) are not valid.

Proposed solution

Use the passed name only as the <title> in the index.html in the HTML template. For all other cases, use the current 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