DEV Community

Discussion on: Multiple VueJs Apps in a Lerna monorepo, sharing a Storybook component library.

Collapse
 
stefanovualto profile image
stefanovualto

The content seems nice, I will give it a try.

I have few questions:

  • Does then your webapp published when you run lerna publish or you do not publish your components on npm?
  • Does your transpile script (cf. "transpile": "vue-cli-service build --target lib ./src/index.js") use the babel behind the scene? What I mean by that is is it possible to have a generic babel config for the components and then a more specific one in any packages that need it (like the webapp)?

Thank you for helping to try to understand the coupling that lerna create between actual packages and any webapp/storybook ui.

Collapse
 
zleight1 profile image
Zachary Leighton • Edited

For babel you can put a babel.config.js at the root and then have package specific .babelrcs modify the default. Examples are on the babel documentation for this exact scenario.