Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/maxgfr/typescript-react-lib-swc

A minimalist typescript swc starter for creating react library of components
https://github.com/maxgfr/typescript-react-lib-swc

boilerplate boilerplate-components-library components-library gh-pages jest nodemon package prettier react react-boilerplate rust-compiler semantic-release starter-kit storybook testing-library typescript

Last synced: 7 days ago
JSON representation

A minimalist typescript swc starter for creating react library of components

Awesome Lists containing this project

README

        

# typescript-react-lib-swc

A simple react boilerplate for creating a library of components made in typescript using `swc`.

It also uses:
- `storybook` for viewing a components
- `testing-library` for testing components
- `semantic-release` for publishing a package for this library components

## Clone repository and install dependencies

```sh
git clone https://github.com/maxgfr/typescript-react-lib-swc # For cloning the repository
cd typescript-react-lib-swc # To navigate to the repository root
yarn # Install dependencies
```

## Building the code

```sh
yarn build # For building the code with typechecking
yarn build:swc # For building without typechecking
```

> **:warning: No typechecking made in dev mode**

## Testing the code

```sh
yarn test # For running unit test
yarn test:watch # For watching unit test
```