From 13a63ba6622b22838d4937506175079e0b373687 Mon Sep 17 00:00:00 2001 From: Kanishk Gupta Date: Sat, 27 Jun 2020 17:52:16 +0530 Subject: [PATCH 1/4] Added Parcel documentation --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index c2333f2951a6..02975f5ef814 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,7 @@ - [Generate a basic configuration file](#generate-a-basic-configuration-file) - [Using Babel](#using-babel) - [Using Webpack](#using-webpack) + - [Using Parcel](#using-parcel) - [Using Typescript](#using-typescript) - [Documentation](#documentation) - [Badge](#badge) @@ -170,6 +171,10 @@ module.exports = { Jest can be used in projects that use [webpack](https://webpack.js.org/) to manage assets, styles, and compilation. webpack does offer some unique challenges over other tools. Refer to the [webpack guide](https://jestjs.io/docs/en/webpack) to get started. +### Using parcel + +Jest can be used in projects that use [parcel-bundler](https://parceljs.org/) to manage assests, styles, and compilation similar to webpack. Parcel bundler offers blazing fast performance utilizing multicore processing, and requires zero configuration. + ### Using TypeScript Jest supports TypeScript, via Babel. First, make sure you followed the instructions on [using Babel](#using-babel) above. Next, install the `@babel/preset-typescript` via `yarn`: From b4819ecb4e3d7d952f59c2b05f04e800eae55568 Mon Sep 17 00:00:00 2001 From: Kanishk Gupta Date: Sat, 27 Jun 2020 18:06:32 +0530 Subject: [PATCH 2/4] Updated CHANGELOG for parcel-bundler --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0528254517c8..37cecfbc8229 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -33,6 +33,7 @@ - `[jest-fake-timers]` Update `now` param type to support `Date` in addition to `number`. ([#10169](https://github.com/facebook/jest/pull/10169)) - `[docs]` Add param to `setSystemTime` docs and remove preceding period from it and `getRealSystemTime` ([#10169](https://github.com/facebook/jest/pull/10169)) - `[jest-snapshot, jest-util]` Replace `make-dir` with `fs.mkdir` ([#10136](https://github.com/facebook/jest/pull/10136)) +- `[docs]` Added parcel-bundler documentation inside readme.md file ### Performance From 77e9af09c361df09c2ab1d2c7aae88c8398faa31 Mon Sep 17 00:00:00 2001 From: Kanishk Gupta Date: Mon, 29 Jun 2020 17:28:12 +0530 Subject: [PATCH 3/4] added parcel documentation. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 02975f5ef814..0315111d0642 100644 --- a/README.md +++ b/README.md @@ -173,7 +173,7 @@ Jest can be used in projects that use [webpack](https://webpack.js.org/) to mana ### Using parcel -Jest can be used in projects that use [parcel-bundler](https://parceljs.org/) to manage assests, styles, and compilation similar to webpack. Parcel bundler offers blazing fast performance utilizing multicore processing, and requires zero configuration. +Jest can be used in projects that use [parcel-bundler](https://parceljs.org/) to manage assets, styles, and compilation similar to webpack. Parcel requires zero configuration. ### Using TypeScript From 15f9e94dc24fdc3b9750d617ba5bb7729aa6cab6 Mon Sep 17 00:00:00 2001 From: Kanishk Gupta Date: Mon, 29 Jun 2020 18:17:18 +0530 Subject: [PATCH 4/4] Added parcel docs --- docs/GettingStarted.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/GettingStarted.md b/docs/GettingStarted.md index a700bd8f664b..0324ecbe62ee 100644 --- a/docs/GettingStarted.md +++ b/docs/GettingStarted.md @@ -155,6 +155,10 @@ While we generally recommend using the same version of every Jest package, this Jest can be used in projects that use [webpack](https://webpack.js.org/) to manage assets, styles, and compilation. webpack does offer some unique challenges over other tools. Refer to the [webpack guide](Webpack.md) to get started. +### Using parcel + +Jest can be used in projects that use [parcel-bundler](https://parceljs.org/) to manage assets, styles, and compilation similar to webpack. Parcel requires zero configuration. Refer to the official [docs](https://parceljs.org/getting_started.html) to get started. + ### Using TypeScript Jest supports TypeScript, via Babel. First make sure you followed the instructions on [using Babel](#using-babel) above. Next install the `@babel/preset-typescript` via `yarn`: