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
- "alias": {
- "react": "preact/compat",
- "react-dom": "preact/compat"
- }
Clone the repo and install its dependencies.
git clone [email protected]:metonym/template-typescript-parcel-react.git
cd template-typescript-parcel-react
yarn install
Runs the project in development mode and watches for any changes.
Builds the project for production.
Runs test suites and generates a coverage report.
Runs tests in Test-driven Development (TDD) mode.