Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/greenteacake/gtc-components


https://github.com/greenteacake/gtc-components

stencil stenciljs typescript web-component web-component-starter web-component-tester web-components web-components-library webcomponent webcomponents

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# Web Components Library

Component documentation:

- [switch](/src/components/switch/readme.md)

The generated Storybook site also provides for the components the auto-generated
documentation, interactive playground and accessibilty tests.

## Build Flow

### Pre-requisites

- [Node 20 'Iron' (LTS)](https://nodejs.org/en/download) is installed

> There is `.nvmrc` so you can go like this:
>
> ```shell
> # in workspace root
> $ nvm use
> ```

### Build and Check Code

```shell
# go to workspace root
$ cd

# install dependencies
$ npm install

# (optional) lint code
$ npm run lint

# (optional) format code
$ npm run format

# (optional) run tests
$ npm run test

# build the code
$ npm run build

# start dev environment at http://localhost:3333/
$ npm run build && npm run start

# start storybook (in dev mode) at http://localhost:6006/
$ npm run build && npm run storybook

# build storybook (in static mode to deploy)
$ npm run build && npm run storybook:build

# serve storybook (in static mode) at http://localhost:3000/
$ npm run build && npm run storybook:build && npm run storybook:serve
```