single-spa / single-spa-vue

a single-spa plugin for vue.js applications
MIT License
182 stars 42 forks source link

Standalone app testing #80

Closed jkblume closed 3 years ago

jkblume commented 3 years ago

Hello, thank you very much for the work in this project. I have a question about standalone testing of a single-spa-vue app. I manage very well to include the app in my orechstrator setup. You can find a lot of documentation for this accordingly. However, I am wondering: how can I launch my app standalone without the orchestrator project to be able to develop on it. I use the standard build process and also like to search for literature or documentation to understand what I need to change in the project setup to launch a functional standalone app. Link to repo / directory of vue single spa project: https://github.com/jkblume/family-dashboard/tree/master/randomphoto/frontend

Thanks for your help.

joeldenning commented 3 years ago

See https://github.com/single-spa/standalone-single-spa-webpack-plugin.

For projects using vue-cli-plugin-single-spa, the serve:standalone script lets you do this: https://github.com/single-spa/vue-cli-plugin-single-spa/blob/e3746601a76346f6b12bc8b3e756b93ae656ae88/generator.js#L35