Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/metonym/template-typescript-parcel-react
- Owner: metonym
- License: mit
- Created: 2019-08-10T12:04:03.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T02:04:36.000Z (almost 2 years ago)
- Last Synced: 2023-03-02T20:06:28.649Z (over 1 year ago)
- Topics: alias, linaria, parcel, preact, react, template, typescript
- Language: TypeScript
- Homepage:
- Size: 1.11 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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