Skip to content

Latest commit

 

History

History
40 lines (29 loc) · 2.01 KB

README.md

File metadata and controls

40 lines (29 loc) · 2.01 KB

stenciljs-in-vue-nuxt monorepo

In the repo all the reusable Stenciljs Web Components are in the /shared-components folder and can be used by each invididual project in the /projects.


StencilJs version: ^2.0.3
vueJs version: ^2.6.11
NuxtJs version: ^2.14.6

Project setup

You need to install node, git and lerna locally. he project is based on Stenciljs, vue & nuxt.

Inside the /projects folder you can create a project in any lib/framework (Vue, React, Angular, ...) you want. For components reuability, don't forget to add the stencil-components-collection dependency with the command lerna add stencil-components-collection in order to create lernas's package symlink.

Check here how to add stencil web component to a vue project and to here to Nuxt respectively.

Run the project

lerna bootstrap
npm run start

It's as simple as that!

You can choose a choose static generation build only if your project is created entirely in StencilJs. If you want to prerender a web component you can check Dynamic Rendering from Google's recommendation here.

Links