Sample LWC OSS app along with source code that has been hosted on GitHub pages.
The build output is stored in the docs
folder. GitHub pages has been configured to use the docs
folder on the main
branch as the source of the site content. This approach allows us to open-source the source code of our app, and also deploy the build output of our app to GitHub pages from a single repo.
Watch this Quick Take to learn about the tweaks you need to make to your code to host your apps along with their source code on GitHub pages.
lwc-services.config.js
to update the build directory and resourcesscripts/server.js
to update the static content directory
Start simple by running yarn watch
(or npm run watch
, if you set up the project with npm
). This will start the project with a local development server.
The source files are located in the src
folder. All web components are within the src/modules
folder. The folder hierarchy also represents the naming structure of the web components.