Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/actuallyacat/stencil-ds-poc
https://github.com/actuallyacat/stencil-ds-poc
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/actuallyacat/stencil-ds-poc
- Owner: ActuallyACat
- License: mit
- Created: 2020-07-26T00:11:51.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-07-27T01:32:49.000Z (over 4 years ago)
- Last Synced: 2024-10-19T02:03:27.335Z (3 months ago)
- Language: TypeScript
- Size: 268 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Kaizen Web Components
This is a starter project for building a standalone Web Component using Stencil and Storybook.
I've pinched this starter from [Stencilbook](https://github.com/Edd-Strickland/stencilbook) and
added support for Sass.## Getting Started
Clone the repo
```bash
git clone https://github.com/Edd-Strickland/stencilbook.git
```Change into the base directory:
```bash
cd stencilbook
```Install the modules:
```bash
npm install
```and run a build for the entire repo:
```bash
npm run build:all
```After this run storybook:
```bash
npm run storybook
```## Other commands for this repo include:
Build stencil:
```bash
npm run stencil
```Start stencil directly in serve/watch mode; Useful for ameneding stencil components directly:
```bash
npm run stencil:start
```Run storybook and a stencil build with watch and serve, deleting any previous versions built and will serve locally:
```bash
npm run storybook:build:all
```Serve storybook Locally:
```bash
npm run storybook:serve
```Reset modules; Deletes and reinstalls node modules:
```bash
npm run reset:modules
```To run the unit tests for the components, run:
```bash
npm test
```## Test
To run tests in watch mode:
```bash
npm run test.watch
```## Generate new components
To generate new Stencil components automagically:
```bash
npm run generate
```