Skip to content

Starter project with Web Components, TypeScript and Webpack support out of the box

License

Notifications You must be signed in to change notification settings

m4thieulavoie/webcomponents-starter

Repository files navigation

webcomponents-starter

code style: prettier Renovate enabled CircleCI

webcomponents-starter aims to be a battery-included starter project for any Web Components enthousiasth. Its goal is to accelerate your development process by providing all the behind-the-scenes tools, such as

  • Webpack
  • Typescript
  • SASS
  • Prettier/eslint/stylelint
  • A few Web Components examples (Made with FAST here)
  • vaadin router

This repo is based on this vaadin article for Web Components in Webpack, and this Webpack article for the Typescript support

Getting started

Clone the project

git clone [email protected]:m4thieulavoie/webcomponents-starter.git

Install dependencies

Then, to init the project

cd webcomponents-starter
npm install

Start the project

If you want to run the project, simply run

npm start

Webpack will then indicate you to open localhost:3000. When you'll do so, you'll see the project running.

Web Components

Underlying framework

For the sake of this project, we rely on FAST Components to accelerate the development of components. Definitely feel free to get rid of the dependency and add your favourite framework if you feel like it!

Polyfills

We provide @webcomponents/webcomponentsjs in the project, but disabled it by default (for bundle size reasons). If you want to support older browsers, head in index.ts and uncomment the line that requires webcomponentsjs.

About

Starter project with Web Components, TypeScript and Webpack support out of the box

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published