Skip to content

Allow generator templates to create new directories #1123

@andreasvirkus

Description

@andreasvirkus

Version

3.0.0-beta.6

Reproduction link

https://github.com/andreasvirkus/vue-cli-plugin-express

Steps to reproduce

Install the plugin and invoke it

npm i andreasvirkus/vue-cli-plugin-express
vue invoke express

What is expected?

Any directory and its contents are also created

What is actually happening?

The plugin succeeds, but no /server directory is created (nor the contents of template/default of the generator).


It might be that this is expected behaviour atm and this is actually a feature request.

Activity

Akryum

Akryum commented on Apr 13, 2018

@Akryum
Member

Your api.render call must be put in the main code, not in the api.onCreateComplete hook. Take a look at vue-cli-plugin-apollo.

andreasvirkus

andreasvirkus commented on Apr 13, 2018

@andreasvirkus
Author

Oof, embarrassing. That was it. Sorry and thanks @Akryum !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

        Participants

        @Akryum@andreasvirkus

        Issue actions

          Allow generator templates to create new directories · Issue #1123 · vuejs/vue-cli