From 1c1fa8775b9cd691c124d82dd8ed7457b2b57dcd Mon Sep 17 00:00:00 2001 From: Sylvie Fiquet Date: Sat, 18 Dec 2021 11:59:58 +0000 Subject: [PATCH 1/4] Fix out of date doc about watching dot files --- website/versioned_docs/version-27.4/Configuration.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/website/versioned_docs/version-27.4/Configuration.md b/website/versioned_docs/version-27.4/Configuration.md index 0a15ba1e8b17..064bdf11a592 100644 --- a/website/versioned_docs/version-27.4/Configuration.md +++ b/website/versioned_docs/version-27.4/Configuration.md @@ -1411,7 +1411,17 @@ An array of RegExp patterns that are matched against all source file paths befor These patterns match against the full path. Use the `` string token to include the path to your project's root directory to prevent it from accidentally ignoring all of your files in different environments that may have different root directories. Example: `["/node_modules/"]`. -Even if nothing is specified here, the watcher will ignore changes to any hidden files and directories, i.e. files and folders that begin with a dot (`.`). +Hidden files and directories, i.e. files and folders that begin with a dot (`.`), are watched by default. Add them to `watchPathIgnorePatterns` if you need to ignore them. Remember to escape the dot as it is a special RegExp character. + +Example: +```json +{ + "watchPathIgnorePatterns": [ + "/\\.tmp/", + "/bar/" + ] +} +``` ### `watchPlugins` \[array<string | \[string, Object]>] From 2308117a987742a0c0a3cdb66eedfb0db33f1873 Mon Sep 17 00:00:00 2001 From: Sylvie Fiquet Date: Tue, 21 Dec 2021 12:42:06 +0000 Subject: [PATCH 2/4] doc: vcs folders ignored by watcher --- website/versioned_docs/version-27.4/Configuration.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/versioned_docs/version-27.4/Configuration.md b/website/versioned_docs/version-27.4/Configuration.md index 064bdf11a592..226732b25c31 100644 --- a/website/versioned_docs/version-27.4/Configuration.md +++ b/website/versioned_docs/version-27.4/Configuration.md @@ -1411,7 +1411,7 @@ An array of RegExp patterns that are matched against all source file paths befor These patterns match against the full path. Use the `` string token to include the path to your project's root directory to prevent it from accidentally ignoring all of your files in different environments that may have different root directories. Example: `["/node_modules/"]`. -Hidden files and directories, i.e. files and folders that begin with a dot (`.`), are watched by default. Add them to `watchPathIgnorePatterns` if you need to ignore them. Remember to escape the dot as it is a special RegExp character. +Even if nothing is specified here, the watcher will ignore changes to the version control folders (.git, .hg). Other hidden files and directories, i.e. those that begin with a dot (`.`), are watched by default. Remember to escape the dot when you add them to `watchPathIgnorePatterns` as it is a special RegExp character. Example: ```json From 76dd82a3c96a3bf72a7d9ea11c047d2943856dab Mon Sep 17 00:00:00 2001 From: Sylvie Fiquet Date: Tue, 21 Dec 2021 13:05:56 +0000 Subject: [PATCH 3/4] doc: update all relevant doc versions --- docs/Configuration.md | 12 +++++++++++- website/versioned_docs/version-26.x/Configuration.md | 12 +++++++++++- website/versioned_docs/version-27.0/Configuration.md | 12 +++++++++++- website/versioned_docs/version-27.1/Configuration.md | 12 +++++++++++- website/versioned_docs/version-27.2/Configuration.md | 12 +++++++++++- 5 files changed, 55 insertions(+), 5 deletions(-) diff --git a/docs/Configuration.md b/docs/Configuration.md index 0a15ba1e8b17..226732b25c31 100644 --- a/docs/Configuration.md +++ b/docs/Configuration.md @@ -1411,7 +1411,17 @@ An array of RegExp patterns that are matched against all source file paths befor These patterns match against the full path. Use the `` string token to include the path to your project's root directory to prevent it from accidentally ignoring all of your files in different environments that may have different root directories. Example: `["/node_modules/"]`. -Even if nothing is specified here, the watcher will ignore changes to any hidden files and directories, i.e. files and folders that begin with a dot (`.`). +Even if nothing is specified here, the watcher will ignore changes to the version control folders (.git, .hg). Other hidden files and directories, i.e. those that begin with a dot (`.`), are watched by default. Remember to escape the dot when you add them to `watchPathIgnorePatterns` as it is a special RegExp character. + +Example: +```json +{ + "watchPathIgnorePatterns": [ + "/\\.tmp/", + "/bar/" + ] +} +``` ### `watchPlugins` \[array<string | \[string, Object]>] diff --git a/website/versioned_docs/version-26.x/Configuration.md b/website/versioned_docs/version-26.x/Configuration.md index 7864096573e9..c88091756c19 100644 --- a/website/versioned_docs/version-26.x/Configuration.md +++ b/website/versioned_docs/version-26.x/Configuration.md @@ -1340,7 +1340,17 @@ An array of RegExp patterns that are matched against all source file paths befor These patterns match against the full path. Use the `` string token to include the path to your project's root directory to prevent it from accidentally ignoring all of your files in different environments that may have different root directories. Example: `["/node_modules/"]`. -Even if nothing is specified here, the watcher will ignore changes to any hidden files and directories, i.e. files and folders that begin with a dot (`.`). +Even if nothing is specified here, the watcher will ignore changes to the version control folders (.git, .hg). Other hidden files and directories, i.e. those that begin with a dot (`.`), are watched by default. Remember to escape the dot when you add them to `watchPathIgnorePatterns` as it is a special RegExp character. + +Example: +```json +{ + "watchPathIgnorePatterns": [ + "/\\.tmp/", + "/bar/" + ] +} +``` ### `watchPlugins` \[array<string | \[string, Object]>] diff --git a/website/versioned_docs/version-27.0/Configuration.md b/website/versioned_docs/version-27.0/Configuration.md index 215a7bd33465..0088bcaa335e 100644 --- a/website/versioned_docs/version-27.0/Configuration.md +++ b/website/versioned_docs/version-27.0/Configuration.md @@ -1370,7 +1370,17 @@ An array of RegExp patterns that are matched against all source file paths befor These patterns match against the full path. Use the `` string token to include the path to your project's root directory to prevent it from accidentally ignoring all of your files in different environments that may have different root directories. Example: `["/node_modules/"]`. -Even if nothing is specified here, the watcher will ignore changes to any hidden files and directories, i.e. files and folders that begin with a dot (`.`). +Even if nothing is specified here, the watcher will ignore changes to the version control folders (.git, .hg). Other hidden files and directories, i.e. those that begin with a dot (`.`), are watched by default. Remember to escape the dot when you add them to `watchPathIgnorePatterns` as it is a special RegExp character. + +Example: +```json +{ + "watchPathIgnorePatterns": [ + "/\\.tmp/", + "/bar/" + ] +} +``` ### `watchPlugins` \[array<string | \[string, Object]>] diff --git a/website/versioned_docs/version-27.1/Configuration.md b/website/versioned_docs/version-27.1/Configuration.md index 6c0256cb85ce..2527181d4bd6 100644 --- a/website/versioned_docs/version-27.1/Configuration.md +++ b/website/versioned_docs/version-27.1/Configuration.md @@ -1405,7 +1405,17 @@ An array of RegExp patterns that are matched against all source file paths befor These patterns match against the full path. Use the `` string token to include the path to your project's root directory to prevent it from accidentally ignoring all of your files in different environments that may have different root directories. Example: `["/node_modules/"]`. -Even if nothing is specified here, the watcher will ignore changes to any hidden files and directories, i.e. files and folders that begin with a dot (`.`). +Even if nothing is specified here, the watcher will ignore changes to the version control folders (.git, .hg). Other hidden files and directories, i.e. those that begin with a dot (`.`), are watched by default. Remember to escape the dot when you add them to `watchPathIgnorePatterns` as it is a special RegExp character. + +Example: +```json +{ + "watchPathIgnorePatterns": [ + "/\\.tmp/", + "/bar/" + ] +} +``` ### `watchPlugins` \[array<string | \[string, Object]>] diff --git a/website/versioned_docs/version-27.2/Configuration.md b/website/versioned_docs/version-27.2/Configuration.md index d444ebed606b..dd90153a6844 100644 --- a/website/versioned_docs/version-27.2/Configuration.md +++ b/website/versioned_docs/version-27.2/Configuration.md @@ -1409,7 +1409,17 @@ An array of RegExp patterns that are matched against all source file paths befor These patterns match against the full path. Use the `` string token to include the path to your project's root directory to prevent it from accidentally ignoring all of your files in different environments that may have different root directories. Example: `["/node_modules/"]`. -Even if nothing is specified here, the watcher will ignore changes to any hidden files and directories, i.e. files and folders that begin with a dot (`.`). +Even if nothing is specified here, the watcher will ignore changes to the version control folders (.git, .hg). Other hidden files and directories, i.e. those that begin with a dot (`.`), are watched by default. Remember to escape the dot when you add them to `watchPathIgnorePatterns` as it is a special RegExp character. + +Example: +```json +{ + "watchPathIgnorePatterns": [ + "/\\.tmp/", + "/bar/" + ] +} +``` ### `watchPlugins` \[array<string | \[string, Object]>] From b17dd4710319b847fb6d48f4f2f1882dbdb8c5de Mon Sep 17 00:00:00 2001 From: Sylvie Fiquet Date: Tue, 21 Dec 2021 22:00:16 +0000 Subject: [PATCH 4/4] run prettier --- docs/Configuration.md | 6 ++---- website/versioned_docs/version-26.x/Configuration.md | 6 ++---- website/versioned_docs/version-27.0/Configuration.md | 6 ++---- website/versioned_docs/version-27.1/Configuration.md | 6 ++---- website/versioned_docs/version-27.2/Configuration.md | 6 ++---- website/versioned_docs/version-27.4/Configuration.md | 6 ++---- 6 files changed, 12 insertions(+), 24 deletions(-) diff --git a/docs/Configuration.md b/docs/Configuration.md index 675b95ff4cc9..db32780483b3 100644 --- a/docs/Configuration.md +++ b/docs/Configuration.md @@ -1415,12 +1415,10 @@ These patterns match against the full path. Use the `` string token to Even if nothing is specified here, the watcher will ignore changes to the version control folders (.git, .hg). Other hidden files and directories, i.e. those that begin with a dot (`.`), are watched by default. Remember to escape the dot when you add them to `watchPathIgnorePatterns` as it is a special RegExp character. Example: + ```json { - "watchPathIgnorePatterns": [ - "/\\.tmp/", - "/bar/" - ] + "watchPathIgnorePatterns": ["/\\.tmp/", "/bar/"] } ``` diff --git a/website/versioned_docs/version-26.x/Configuration.md b/website/versioned_docs/version-26.x/Configuration.md index 3379b1396e97..516ab01714a2 100644 --- a/website/versioned_docs/version-26.x/Configuration.md +++ b/website/versioned_docs/version-26.x/Configuration.md @@ -1344,12 +1344,10 @@ These patterns match against the full path. Use the `` string token to Even if nothing is specified here, the watcher will ignore changes to the version control folders (.git, .hg). Other hidden files and directories, i.e. those that begin with a dot (`.`), are watched by default. Remember to escape the dot when you add them to `watchPathIgnorePatterns` as it is a special RegExp character. Example: + ```json { - "watchPathIgnorePatterns": [ - "/\\.tmp/", - "/bar/" - ] + "watchPathIgnorePatterns": ["/\\.tmp/", "/bar/"] } ``` diff --git a/website/versioned_docs/version-27.0/Configuration.md b/website/versioned_docs/version-27.0/Configuration.md index cb29b1cd9feb..76e63be36941 100644 --- a/website/versioned_docs/version-27.0/Configuration.md +++ b/website/versioned_docs/version-27.0/Configuration.md @@ -1374,12 +1374,10 @@ These patterns match against the full path. Use the `` string token to Even if nothing is specified here, the watcher will ignore changes to the version control folders (.git, .hg). Other hidden files and directories, i.e. those that begin with a dot (`.`), are watched by default. Remember to escape the dot when you add them to `watchPathIgnorePatterns` as it is a special RegExp character. Example: + ```json { - "watchPathIgnorePatterns": [ - "/\\.tmp/", - "/bar/" - ] + "watchPathIgnorePatterns": ["/\\.tmp/", "/bar/"] } ``` diff --git a/website/versioned_docs/version-27.1/Configuration.md b/website/versioned_docs/version-27.1/Configuration.md index afbfbe339b6f..315f15f5954c 100644 --- a/website/versioned_docs/version-27.1/Configuration.md +++ b/website/versioned_docs/version-27.1/Configuration.md @@ -1409,12 +1409,10 @@ These patterns match against the full path. Use the `` string token to Even if nothing is specified here, the watcher will ignore changes to the version control folders (.git, .hg). Other hidden files and directories, i.e. those that begin with a dot (`.`), are watched by default. Remember to escape the dot when you add them to `watchPathIgnorePatterns` as it is a special RegExp character. Example: + ```json { - "watchPathIgnorePatterns": [ - "/\\.tmp/", - "/bar/" - ] + "watchPathIgnorePatterns": ["/\\.tmp/", "/bar/"] } ``` diff --git a/website/versioned_docs/version-27.2/Configuration.md b/website/versioned_docs/version-27.2/Configuration.md index 7a88247fc78d..996b2cea8cc2 100644 --- a/website/versioned_docs/version-27.2/Configuration.md +++ b/website/versioned_docs/version-27.2/Configuration.md @@ -1413,12 +1413,10 @@ These patterns match against the full path. Use the `` string token to Even if nothing is specified here, the watcher will ignore changes to the version control folders (.git, .hg). Other hidden files and directories, i.e. those that begin with a dot (`.`), are watched by default. Remember to escape the dot when you add them to `watchPathIgnorePatterns` as it is a special RegExp character. Example: + ```json { - "watchPathIgnorePatterns": [ - "/\\.tmp/", - "/bar/" - ] + "watchPathIgnorePatterns": ["/\\.tmp/", "/bar/"] } ``` diff --git a/website/versioned_docs/version-27.4/Configuration.md b/website/versioned_docs/version-27.4/Configuration.md index 675b95ff4cc9..db32780483b3 100644 --- a/website/versioned_docs/version-27.4/Configuration.md +++ b/website/versioned_docs/version-27.4/Configuration.md @@ -1415,12 +1415,10 @@ These patterns match against the full path. Use the `` string token to Even if nothing is specified here, the watcher will ignore changes to the version control folders (.git, .hg). Other hidden files and directories, i.e. those that begin with a dot (`.`), are watched by default. Remember to escape the dot when you add them to `watchPathIgnorePatterns` as it is a special RegExp character. Example: + ```json { - "watchPathIgnorePatterns": [ - "/\\.tmp/", - "/bar/" - ] + "watchPathIgnorePatterns": ["/\\.tmp/", "/bar/"] } ```