Lit-Mobx-Vaadin Starter Kit
This starter kit features Lit, Mobx and Vaadin elements.
Table of Contents
Overview
Tech Stack
- Lit - JavaScript framework for writing web components
- Mobx - State management library
- Vaadin - Routing and UI components
Included Tooling
- Playwright - Testing library
- TypeScript - Type checking
- Storybook - Component library
- ESLint - Code linting
- Prettier - Code formatting
Example Components
In the starters/lit-mobx-vaadin/src
directory you will find a few directories organizing the project. Files are organized in directories under src
as such:
api
- contains functions that can be used to contact the Starter.dev APIcomponents
- contains re-usable components used inside of the projectpages
- contains page components that are rendered when certain routes are visitedstyles
- contains stylsheets used by multiple components
Installation
CLI (Recommended)
npm create @this-dot/starter -- --kit lit-mobx-vaadin
or
yarn create @this-dot/starter --kit lit-mobx-vaadin
- Follow the prompts to select the
lit-mobx-vaadin
starter kit and name your new project. cd
into your project directory and runyarn
.- Run
yarn start
to start the development server. - Open your browser to
http://localhost:8000
to see the included example code running.
Manual
git clone https://github.com/thisdot/starter.dev.git
- Copy and rename the
starters/lit-mobx-vaadin
directory to the name of your new project. cd
into your project directory and runyarn
.- Run
yarn start
to start the development server. - Open your browser to
http://localhost:8000
to see the included example code running.
Commands
yarn start
oryarn dev
runs your app for development, reloading on file changesyarn start:build
runs your app after it has been built using the build commandyarn build
builds your app and outputs it in yourdist
directoryyarn test
runs your test suite with Web Test Runneryarn storybook
- Starts the Storybook UI.yarn lint
runs the linter for your projectyarn prettier
- Formats code for the entire project.