How to install app extension from local directory or github repo #8801
-
|
I want to create an app extension just for internal use by our team. I don't want to publish it to npm. Instead I'd like to be able to install it from a github repo or local directory. Are either of these options possible? The documentation only shows installing app extensions using Alternatively, I could just create a library, since those can be referenced in package.json via a github url. I don't really need an app extension, since all I really want is to package up some custom quasar components and utility functions that I want to share among multiple projects. However I couldn't find directions for how to create a library of quasar components. Has anyone here done that, and have a link to some documentation on how? Would something like vue-sfc-rollup be useful for this? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
|
I am interested in this, too. Meanwhile, one solution would be to use e.g. https://verdaccio.org/en/ This allows you to publish your private app extensions to your own private registry. |
Beta Was this translation helpful? Give feedback.
-
|
It's the development process, so a bit more "roundabout", but you can clone the repo and then "invoke" the app extension. Scott |
Beta Was this translation helpful? Give feedback.
-
|
You don't have to necessarily publish the App Extension. To be a little more precise:
Note that for every change in the AE, you'll need to repeat the steps. |
Beta Was this translation helpful? Give feedback.
-
|
There should be a clear distinction between an App Extension and any UI package. All that the App Extension does is it injects specific Quasar CLI configuration (even boot files etc). App Extensions are a convenient way to share the configuration of a Quasar App. On the other hand, App Extensions can also supply packages to the Quasar app project. These packages should contain your components, directives, or any other feature AND of course, they can also be directly imported and used into an App. I think that you only want the second? In this case, same strategy should apply. SFC files are handled automatically by Quasar App CLI in the host app, regardless if they come from a dependency (like one of your packages) or they're part of your |
Beta Was this translation helpful? Give feedback.
You don't have to necessarily publish the App Extension. To be a little more precise:
Note that for every change in the AE, you'll need to repeat the steps.