Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/metonym/template-typescript-parcel-react

Template to build React apps using Parcel and optionally alias React to Preact X
https://github.com/metonym/template-typescript-parcel-react

alias linaria parcel preact react template typescript

Last synced: about 1 month ago
JSON representation

Template to build React apps using Parcel and optionally alias React to Preact X

Awesome Lists containing this project

README

        

# template-typescript-parcel-react

[![Build][build]][build-badge]
[![Coverage][codecov-shield]][codecov]

> Template to build React apps using Parcel and optionally alias React to Preact X.

This project aliases react to preact for smaller bundles. To opt out, remove the following field from [package.json](package.json):

```diff
# package.json
- "alias": {
- "react": "preact/compat",
- "react-dom": "preact/compat"
- }
```

## Getting Started

Clone the repo and install its dependencies.

```bash
git clone [email protected]:metonym/template-typescript-parcel-react.git
cd template-typescript-parcel-react
yarn install
```

## Available Scripts

### `yarn start`

Runs the project in development mode and watches for any changes.

### `yarn build`

Builds the project for production.

### `yarn test`

Runs test suites and generates a coverage report.

### `yarn test:tdd`

Runs tests in Test-driven Development (TDD) mode.

## License

[MIT](LICENSE)

[build]: https://travis-ci.com/metonym/template-typescript-parcel-react.svg?branch=master
[build-badge]: https://travis-ci.com/metonym/template-typescript-parcel-react
[codecov]: https://codecov.io/gh/metonym/template-typescript-parcel-react
[codecov-shield]: https://img.shields.io/codecov/c/github/metonym/template-typescript-parcel-react.svg