Skip to content
This repository has been archived by the owner on Mar 13, 2022. It is now read-only.

QUESTION : is it possible to add extension from another extension ? #9

Open
gbouteiller opened this issue Jul 5, 2019 · 3 comments

Comments

@gbouteiller
Copy link

Hello,
First of all, thank you for the amazing job made with Quasar.
I'm currently playing with app extensions as it is described as the way to create a clean starter.
I've already created extensions to cover my needs but instead of invoking them sequentially, I wonder if there is a way to create kind of a "meta" extension to install them automatically.
I've seen the hasExtension in the API but no addExtension, so is it possible to achieve?
Thank you

@lucasfernog
Copy link
Contributor

You could do it yourself by spawning yarn/NPM. Here's an example: https://github.com/quasarframework/quasar/blob/dev/app/lib/mode/mode-electron.js#L30

@gbouteiller
Copy link
Author

@lucasfernog thank you for the quick answer.
I ended up using execa with the quasar ext add command but it only works because I don't have any prompts yet. So I'm still wondering if there is a better way to do it, ideally with Quasar API.

@lucasfernog
Copy link
Contributor

You can create a feature request on the Quasar repo so we can discuss it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants