Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow generator templates to create new directories #1123

Closed
andreasvirkus opened this issue Apr 13, 2018 · 2 comments
Closed

Allow generator templates to create new directories #1123

andreasvirkus opened this issue Apr 13, 2018 · 2 comments

Comments

@andreasvirkus
Copy link

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.

@Akryum
Copy link
Member

Akryum commented Apr 13, 2018

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.

@Akryum Akryum closed this as completed Apr 13, 2018
@andreasvirkus
Copy link
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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants