Git Product home page Git Product logo

Comments (3)

adambullmer avatar adambullmer commented on August 15, 2024 1

Definitely not out of the question, but I think your issue stems from your project setup. If you've got a set of shared components, you might want to go with a monorepo setup (Lerna or yarn workspaces do this well), where you have a package with all your shared components that is a dependency of your extension and web projects.

.
|- packages/
|   |- extension/
|       |- run `vue create .` and `vue add browser-extension`
|   |- project/
|       |- your existing web project
|   |- shared/
|       |- src/
|           |- components/
|               |- shared components
|- package.json

from vue-cli-plugin-browser-extension.

theharshin avatar theharshin commented on August 15, 2024

Hmm, what I was thinking of doing was, to manage all the builds under same Vue CLI setup. So my current setup looks like this.

image

What I can understand from your structure is that I'll need to install separate Vue CLI for extension and project right?

from vue-cli-plugin-browser-extension.

adambullmer avatar adambullmer commented on August 15, 2024

You're correct: I would recommend separate vue-cli projects per build style. On top of that, I would recommend a common components project that would be the source of anything you would want to be reusable across projects.

Closing due to the recommendation that a monorepo setup is the preferred project setup at this time for component reuse across different build types: web app, electron app, browser extension, and mobile app.
I'll be happy to revisit this in the future as technology continues to evolve, but at this time, supporting more than just browser extensions is outside the scope of this project.

from vue-cli-plugin-browser-extension.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.