Skip to content
This repository was archived by the owner on Jun 4, 2020. It is now read-only.
This repository was archived by the owner on Jun 4, 2020. It is now read-only.

offer to fix the path in the file name #25

@pmelieshchenko

Description

@pmelieshchenko

TemplateGenerator.js

add something like this:

...
key: '_createDirectory',
value: function _createDirectory(dirPath, data, fileTypes) {
...
name = name.split('/').slice(-1).join('').split('\'').slice(-1).join('');

so that you can generate a component with a path from the root of the project
like this:
vgc src/components/Home

this is probably not the best solution, but I really want to be able to generate components from the root of the project

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions