From d222ef04fe768205733e637dbcdfd254295dd4e7 Mon Sep 17 00:00:00 2001 From: Jack Hsu Date: Tue, 27 Aug 2019 13:06:36 -0400 Subject: [PATCH] fix(react): set configPath for @babel/preset-env to match project context (#1758) --- docs/angular/api-workspace/npmscripts/affected-apps.md | 6 ++---- docs/angular/api-workspace/npmscripts/affected-build.md | 6 ++---- .../angular/api-workspace/npmscripts/affected-dep-graph.md | 6 ++---- docs/angular/api-workspace/npmscripts/affected-e2e.md | 6 ++---- docs/angular/api-workspace/npmscripts/affected-libs.md | 6 ++---- docs/angular/api-workspace/npmscripts/affected-lint.md | 6 ++---- docs/angular/api-workspace/npmscripts/affected-test.md | 6 ++---- docs/angular/api-workspace/npmscripts/affected.md | 6 ++---- docs/angular/api-workspace/npmscripts/dep-graph.md | 6 ++---- docs/angular/api-workspace/npmscripts/format-check.md | 3 ++- docs/angular/api-workspace/npmscripts/format-write.md | 3 ++- .../api-workspace/npmscripts/workspace-lint-files.md | 3 ++- .../api-workspace/npmscripts/workspace-schematic-name.md | 3 ++- docs/react/api-workspace/npmscripts/affected-apps.md | 6 ++---- docs/react/api-workspace/npmscripts/affected-build.md | 6 ++---- docs/react/api-workspace/npmscripts/affected-dep-graph.md | 6 ++---- docs/react/api-workspace/npmscripts/affected-e2e.md | 6 ++---- docs/react/api-workspace/npmscripts/affected-libs.md | 6 ++---- docs/react/api-workspace/npmscripts/affected-lint.md | 6 ++---- docs/react/api-workspace/npmscripts/affected-test.md | 6 ++---- docs/react/api-workspace/npmscripts/affected.md | 6 ++---- docs/react/api-workspace/npmscripts/dep-graph.md | 6 ++---- docs/react/api-workspace/npmscripts/format-check.md | 3 ++- docs/react/api-workspace/npmscripts/format-write.md | 3 ++- .../react/api-workspace/npmscripts/workspace-lint-files.md | 3 ++- .../api-workspace/npmscripts/workspace-schematic-name.md | 3 ++- docs/web/api-workspace/npmscripts/affected-apps.md | 6 ++---- docs/web/api-workspace/npmscripts/affected-build.md | 6 ++---- docs/web/api-workspace/npmscripts/affected-dep-graph.md | 6 ++---- docs/web/api-workspace/npmscripts/affected-e2e.md | 6 ++---- docs/web/api-workspace/npmscripts/affected-libs.md | 6 ++---- docs/web/api-workspace/npmscripts/affected-lint.md | 6 ++---- docs/web/api-workspace/npmscripts/affected-test.md | 6 ++---- docs/web/api-workspace/npmscripts/affected.md | 6 ++---- docs/web/api-workspace/npmscripts/dep-graph.md | 6 ++---- docs/web/api-workspace/npmscripts/format-check.md | 3 ++- docs/web/api-workspace/npmscripts/format-write.md | 3 ++- docs/web/api-workspace/npmscripts/workspace-lint-files.md | 3 ++- .../api-workspace/npmscripts/workspace-schematic-name.md | 3 ++- packages/react/src/plugins/babel.ts | 2 ++ .../files/app/{browserslist => .browserslistrc} | 7 +++++-- 41 files changed, 85 insertions(+), 122 deletions(-) rename packages/react/src/schematics/application/files/app/{browserslist => .browserslistrc} (63%) diff --git a/docs/angular/api-workspace/npmscripts/affected-apps.md b/docs/angular/api-workspace/npmscripts/affected-apps.md index 80013f5d00c83..bd9231c865ef7 100644 --- a/docs/angular/api-workspace/npmscripts/affected-apps.md +++ b/docs/angular/api-workspace/npmscripts/affected-apps.md @@ -8,10 +8,8 @@ Print applications affected by changes nx affected:apps ``` -Install `@nrwl/cli` globally to invoke the command directly using `nx`, or use `npm run nx` or `yarn nx`. - -### Examples - +Install `@nrwl/cli` globally to invoke the command directly using `nx`, or use `npm run nx` or `yarn nx`. + ### Examples Print the names of all the apps affected by changing the index.ts file: ```bash diff --git a/docs/angular/api-workspace/npmscripts/affected-build.md b/docs/angular/api-workspace/npmscripts/affected-build.md index 8b449c45c6ea1..4813da82e4e53 100644 --- a/docs/angular/api-workspace/npmscripts/affected-build.md +++ b/docs/angular/api-workspace/npmscripts/affected-build.md @@ -8,10 +8,8 @@ Build applications and publishable libraries affected by changes nx affected:build ``` -Install `@nrwl/cli` globally to invoke the command directly using `nx`, or use `npm run nx` or `yarn nx`. - -### Examples - +Install `@nrwl/cli` globally to invoke the command directly using `nx`, or use `npm run nx` or `yarn nx`. + ### Examples Run build in parallel: ```bash diff --git a/docs/angular/api-workspace/npmscripts/affected-dep-graph.md b/docs/angular/api-workspace/npmscripts/affected-dep-graph.md index d10f9ba624a2c..62568e0e25b5d 100644 --- a/docs/angular/api-workspace/npmscripts/affected-dep-graph.md +++ b/docs/angular/api-workspace/npmscripts/affected-dep-graph.md @@ -8,10 +8,8 @@ Graph dependencies affected by changes nx affected:dep-graph ``` -Install `@nrwl/cli` globally to invoke the command directly using `nx`, or use `npm run nx` or `yarn nx`. - -### Examples - +Install `@nrwl/cli` globally to invoke the command directly using `nx`, or use `npm run nx` or `yarn nx`. + ### Examples Open the dep graph of the workspace in the browser, and highlight the projects affected by changing the index.ts file: ```bash diff --git a/docs/angular/api-workspace/npmscripts/affected-e2e.md b/docs/angular/api-workspace/npmscripts/affected-e2e.md index 293c876542381..fcb468cecedcd 100644 --- a/docs/angular/api-workspace/npmscripts/affected-e2e.md +++ b/docs/angular/api-workspace/npmscripts/affected-e2e.md @@ -8,10 +8,8 @@ Run e2e tests for the applications affected by changes nx affected:e2e ``` -Install `@nrwl/cli` globally to invoke the command directly using `nx`, or use `npm run nx` or `yarn nx`. - -### Examples - +Install `@nrwl/cli` globally to invoke the command directly using `nx`, or use `npm run nx` or `yarn nx`. + ### Examples Run tests in parallel: ```bash diff --git a/docs/angular/api-workspace/npmscripts/affected-libs.md b/docs/angular/api-workspace/npmscripts/affected-libs.md index 1a10608a1cdf4..b74a7528e5de9 100644 --- a/docs/angular/api-workspace/npmscripts/affected-libs.md +++ b/docs/angular/api-workspace/npmscripts/affected-libs.md @@ -8,10 +8,8 @@ Print libraries affected by changes nx affected:libs ``` -Install `@nrwl/cli` globally to invoke the command directly using `nx`, or use `npm run nx` or `yarn nx`. - -### Examples - +Install `@nrwl/cli` globally to invoke the command directly using `nx`, or use `npm run nx` or `yarn nx`. + ### Examples Print the names of all the libs affected by changing the index.ts file: ```bash diff --git a/docs/angular/api-workspace/npmscripts/affected-lint.md b/docs/angular/api-workspace/npmscripts/affected-lint.md index 82e14e8103b7f..8f91a83a5e7c5 100644 --- a/docs/angular/api-workspace/npmscripts/affected-lint.md +++ b/docs/angular/api-workspace/npmscripts/affected-lint.md @@ -8,10 +8,8 @@ Lint projects affected by changes nx affected:lint ``` -Install `@nrwl/cli` globally to invoke the command directly using `nx`, or use `npm run nx` or `yarn nx`. - -### Examples - +Install `@nrwl/cli` globally to invoke the command directly using `nx`, or use `npm run nx` or `yarn nx`. + ### Examples Run lint in parallel: ```bash diff --git a/docs/angular/api-workspace/npmscripts/affected-test.md b/docs/angular/api-workspace/npmscripts/affected-test.md index 9cd2c067a3d2c..4a7da66568537 100644 --- a/docs/angular/api-workspace/npmscripts/affected-test.md +++ b/docs/angular/api-workspace/npmscripts/affected-test.md @@ -8,10 +8,8 @@ Test projects affected by changes nx affected:test ``` -Install `@nrwl/cli` globally to invoke the command directly using `nx`, or use `npm run nx` or `yarn nx`. - -### Examples - +Install `@nrwl/cli` globally to invoke the command directly using `nx`, or use `npm run nx` or `yarn nx`. + ### Examples Run tests in parallel: ```bash diff --git a/docs/angular/api-workspace/npmscripts/affected.md b/docs/angular/api-workspace/npmscripts/affected.md index 5b19879ba0495..4168bfd09c012 100644 --- a/docs/angular/api-workspace/npmscripts/affected.md +++ b/docs/angular/api-workspace/npmscripts/affected.md @@ -8,10 +8,8 @@ Run task for affected projects nx affected ``` -Install `@nrwl/cli` globally to invoke the command directly using `nx`, or use `npm run nx` or `yarn nx`. - -### Examples - +Install `@nrwl/cli` globally to invoke the command directly using `nx`, or use `npm run nx` or `yarn nx`. + ### Examples Run custom target for all affected projects: ```bash diff --git a/docs/angular/api-workspace/npmscripts/dep-graph.md b/docs/angular/api-workspace/npmscripts/dep-graph.md index 001e8f8abf594..3046acdf922f3 100644 --- a/docs/angular/api-workspace/npmscripts/dep-graph.md +++ b/docs/angular/api-workspace/npmscripts/dep-graph.md @@ -8,10 +8,8 @@ Graph dependencies within workspace nx dep-graph ``` -Install `@nrwl/cli` globally to invoke the command directly using `nx`, or use `npm run nx` or `yarn nx`. - -### Examples - +Install `@nrwl/cli` globally to invoke the command directly using `nx`, or use `npm run nx` or `yarn nx`. + ### Examples Open the dep graph of the workspace in the browser: ```bash diff --git a/docs/angular/api-workspace/npmscripts/format-check.md b/docs/angular/api-workspace/npmscripts/format-check.md index 4add210266a6d..20108e1b17dfe 100644 --- a/docs/angular/api-workspace/npmscripts/format-check.md +++ b/docs/angular/api-workspace/npmscripts/format-check.md @@ -8,7 +8,8 @@ Check for un-formatted files nx format:check ``` -Install `@nrwl/cli` globally to invoke the command directly using `nx`, or use `npm run nx` or `yarn nx`. +Install `@nrwl/cli` globally to invoke the command directly using `nx`, or use `npm run nx` or `yarn nx`. + ## Options diff --git a/docs/angular/api-workspace/npmscripts/format-write.md b/docs/angular/api-workspace/npmscripts/format-write.md index bc4309adabb13..cb9951ed368f6 100644 --- a/docs/angular/api-workspace/npmscripts/format-write.md +++ b/docs/angular/api-workspace/npmscripts/format-write.md @@ -8,7 +8,8 @@ Overwrite un-formatted files nx format:write ``` -Install `@nrwl/cli` globally to invoke the command directly using `nx`, or use `npm run nx` or `yarn nx`. +Install `@nrwl/cli` globally to invoke the command directly using `nx`, or use `npm run nx` or `yarn nx`. + ## Options diff --git a/docs/angular/api-workspace/npmscripts/workspace-lint-files.md b/docs/angular/api-workspace/npmscripts/workspace-lint-files.md index ddbeb4e34f152..25180e1e9124a 100644 --- a/docs/angular/api-workspace/npmscripts/workspace-lint-files.md +++ b/docs/angular/api-workspace/npmscripts/workspace-lint-files.md @@ -8,7 +8,8 @@ Lint workspace or list of files nx workspace-lint [files..] ``` -Install `@nrwl/cli` globally to invoke the command directly using `nx`, or use `npm run nx` or `yarn nx`. +Install `@nrwl/cli` globally to invoke the command directly using `nx`, or use `npm run nx` or `yarn nx`. + ## Options diff --git a/docs/angular/api-workspace/npmscripts/workspace-schematic-name.md b/docs/angular/api-workspace/npmscripts/workspace-schematic-name.md index 204b3a2167768..80a3fe8f2ba8b 100644 --- a/docs/angular/api-workspace/npmscripts/workspace-schematic-name.md +++ b/docs/angular/api-workspace/npmscripts/workspace-schematic-name.md @@ -8,7 +8,8 @@ Runs a workspace schematic from the tools/schematics directory nx workspace-schematic [name] ``` -Install `@nrwl/cli` globally to invoke the command directly using `nx`, or use `npm run nx` or `yarn nx`. +Install `@nrwl/cli` globally to invoke the command directly using `nx`, or use `npm run nx` or `yarn nx`. + ## Options diff --git a/docs/react/api-workspace/npmscripts/affected-apps.md b/docs/react/api-workspace/npmscripts/affected-apps.md index 80013f5d00c83..bd9231c865ef7 100644 --- a/docs/react/api-workspace/npmscripts/affected-apps.md +++ b/docs/react/api-workspace/npmscripts/affected-apps.md @@ -8,10 +8,8 @@ Print applications affected by changes nx affected:apps ``` -Install `@nrwl/cli` globally to invoke the command directly using `nx`, or use `npm run nx` or `yarn nx`. - -### Examples - +Install `@nrwl/cli` globally to invoke the command directly using `nx`, or use `npm run nx` or `yarn nx`. + ### Examples Print the names of all the apps affected by changing the index.ts file: ```bash diff --git a/docs/react/api-workspace/npmscripts/affected-build.md b/docs/react/api-workspace/npmscripts/affected-build.md index 8b449c45c6ea1..4813da82e4e53 100644 --- a/docs/react/api-workspace/npmscripts/affected-build.md +++ b/docs/react/api-workspace/npmscripts/affected-build.md @@ -8,10 +8,8 @@ Build applications and publishable libraries affected by changes nx affected:build ``` -Install `@nrwl/cli` globally to invoke the command directly using `nx`, or use `npm run nx` or `yarn nx`. - -### Examples - +Install `@nrwl/cli` globally to invoke the command directly using `nx`, or use `npm run nx` or `yarn nx`. + ### Examples Run build in parallel: ```bash diff --git a/docs/react/api-workspace/npmscripts/affected-dep-graph.md b/docs/react/api-workspace/npmscripts/affected-dep-graph.md index d10f9ba624a2c..62568e0e25b5d 100644 --- a/docs/react/api-workspace/npmscripts/affected-dep-graph.md +++ b/docs/react/api-workspace/npmscripts/affected-dep-graph.md @@ -8,10 +8,8 @@ Graph dependencies affected by changes nx affected:dep-graph ``` -Install `@nrwl/cli` globally to invoke the command directly using `nx`, or use `npm run nx` or `yarn nx`. - -### Examples - +Install `@nrwl/cli` globally to invoke the command directly using `nx`, or use `npm run nx` or `yarn nx`. + ### Examples Open the dep graph of the workspace in the browser, and highlight the projects affected by changing the index.ts file: ```bash diff --git a/docs/react/api-workspace/npmscripts/affected-e2e.md b/docs/react/api-workspace/npmscripts/affected-e2e.md index 293c876542381..fcb468cecedcd 100644 --- a/docs/react/api-workspace/npmscripts/affected-e2e.md +++ b/docs/react/api-workspace/npmscripts/affected-e2e.md @@ -8,10 +8,8 @@ Run e2e tests for the applications affected by changes nx affected:e2e ``` -Install `@nrwl/cli` globally to invoke the command directly using `nx`, or use `npm run nx` or `yarn nx`. - -### Examples - +Install `@nrwl/cli` globally to invoke the command directly using `nx`, or use `npm run nx` or `yarn nx`. + ### Examples Run tests in parallel: ```bash diff --git a/docs/react/api-workspace/npmscripts/affected-libs.md b/docs/react/api-workspace/npmscripts/affected-libs.md index 1a10608a1cdf4..b74a7528e5de9 100644 --- a/docs/react/api-workspace/npmscripts/affected-libs.md +++ b/docs/react/api-workspace/npmscripts/affected-libs.md @@ -8,10 +8,8 @@ Print libraries affected by changes nx affected:libs ``` -Install `@nrwl/cli` globally to invoke the command directly using `nx`, or use `npm run nx` or `yarn nx`. - -### Examples - +Install `@nrwl/cli` globally to invoke the command directly using `nx`, or use `npm run nx` or `yarn nx`. + ### Examples Print the names of all the libs affected by changing the index.ts file: ```bash diff --git a/docs/react/api-workspace/npmscripts/affected-lint.md b/docs/react/api-workspace/npmscripts/affected-lint.md index 82e14e8103b7f..8f91a83a5e7c5 100644 --- a/docs/react/api-workspace/npmscripts/affected-lint.md +++ b/docs/react/api-workspace/npmscripts/affected-lint.md @@ -8,10 +8,8 @@ Lint projects affected by changes nx affected:lint ``` -Install `@nrwl/cli` globally to invoke the command directly using `nx`, or use `npm run nx` or `yarn nx`. - -### Examples - +Install `@nrwl/cli` globally to invoke the command directly using `nx`, or use `npm run nx` or `yarn nx`. + ### Examples Run lint in parallel: ```bash diff --git a/docs/react/api-workspace/npmscripts/affected-test.md b/docs/react/api-workspace/npmscripts/affected-test.md index 9cd2c067a3d2c..4a7da66568537 100644 --- a/docs/react/api-workspace/npmscripts/affected-test.md +++ b/docs/react/api-workspace/npmscripts/affected-test.md @@ -8,10 +8,8 @@ Test projects affected by changes nx affected:test ``` -Install `@nrwl/cli` globally to invoke the command directly using `nx`, or use `npm run nx` or `yarn nx`. - -### Examples - +Install `@nrwl/cli` globally to invoke the command directly using `nx`, or use `npm run nx` or `yarn nx`. + ### Examples Run tests in parallel: ```bash diff --git a/docs/react/api-workspace/npmscripts/affected.md b/docs/react/api-workspace/npmscripts/affected.md index 5b19879ba0495..4168bfd09c012 100644 --- a/docs/react/api-workspace/npmscripts/affected.md +++ b/docs/react/api-workspace/npmscripts/affected.md @@ -8,10 +8,8 @@ Run task for affected projects nx affected ``` -Install `@nrwl/cli` globally to invoke the command directly using `nx`, or use `npm run nx` or `yarn nx`. - -### Examples - +Install `@nrwl/cli` globally to invoke the command directly using `nx`, or use `npm run nx` or `yarn nx`. + ### Examples Run custom target for all affected projects: ```bash diff --git a/docs/react/api-workspace/npmscripts/dep-graph.md b/docs/react/api-workspace/npmscripts/dep-graph.md index 001e8f8abf594..3046acdf922f3 100644 --- a/docs/react/api-workspace/npmscripts/dep-graph.md +++ b/docs/react/api-workspace/npmscripts/dep-graph.md @@ -8,10 +8,8 @@ Graph dependencies within workspace nx dep-graph ``` -Install `@nrwl/cli` globally to invoke the command directly using `nx`, or use `npm run nx` or `yarn nx`. - -### Examples - +Install `@nrwl/cli` globally to invoke the command directly using `nx`, or use `npm run nx` or `yarn nx`. + ### Examples Open the dep graph of the workspace in the browser: ```bash diff --git a/docs/react/api-workspace/npmscripts/format-check.md b/docs/react/api-workspace/npmscripts/format-check.md index 4add210266a6d..20108e1b17dfe 100644 --- a/docs/react/api-workspace/npmscripts/format-check.md +++ b/docs/react/api-workspace/npmscripts/format-check.md @@ -8,7 +8,8 @@ Check for un-formatted files nx format:check ``` -Install `@nrwl/cli` globally to invoke the command directly using `nx`, or use `npm run nx` or `yarn nx`. +Install `@nrwl/cli` globally to invoke the command directly using `nx`, or use `npm run nx` or `yarn nx`. + ## Options diff --git a/docs/react/api-workspace/npmscripts/format-write.md b/docs/react/api-workspace/npmscripts/format-write.md index bc4309adabb13..cb9951ed368f6 100644 --- a/docs/react/api-workspace/npmscripts/format-write.md +++ b/docs/react/api-workspace/npmscripts/format-write.md @@ -8,7 +8,8 @@ Overwrite un-formatted files nx format:write ``` -Install `@nrwl/cli` globally to invoke the command directly using `nx`, or use `npm run nx` or `yarn nx`. +Install `@nrwl/cli` globally to invoke the command directly using `nx`, or use `npm run nx` or `yarn nx`. + ## Options diff --git a/docs/react/api-workspace/npmscripts/workspace-lint-files.md b/docs/react/api-workspace/npmscripts/workspace-lint-files.md index ddbeb4e34f152..25180e1e9124a 100644 --- a/docs/react/api-workspace/npmscripts/workspace-lint-files.md +++ b/docs/react/api-workspace/npmscripts/workspace-lint-files.md @@ -8,7 +8,8 @@ Lint workspace or list of files nx workspace-lint [files..] ``` -Install `@nrwl/cli` globally to invoke the command directly using `nx`, or use `npm run nx` or `yarn nx`. +Install `@nrwl/cli` globally to invoke the command directly using `nx`, or use `npm run nx` or `yarn nx`. + ## Options diff --git a/docs/react/api-workspace/npmscripts/workspace-schematic-name.md b/docs/react/api-workspace/npmscripts/workspace-schematic-name.md index 204b3a2167768..80a3fe8f2ba8b 100644 --- a/docs/react/api-workspace/npmscripts/workspace-schematic-name.md +++ b/docs/react/api-workspace/npmscripts/workspace-schematic-name.md @@ -8,7 +8,8 @@ Runs a workspace schematic from the tools/schematics directory nx workspace-schematic [name] ``` -Install `@nrwl/cli` globally to invoke the command directly using `nx`, or use `npm run nx` or `yarn nx`. +Install `@nrwl/cli` globally to invoke the command directly using `nx`, or use `npm run nx` or `yarn nx`. + ## Options diff --git a/docs/web/api-workspace/npmscripts/affected-apps.md b/docs/web/api-workspace/npmscripts/affected-apps.md index 80013f5d00c83..bd9231c865ef7 100644 --- a/docs/web/api-workspace/npmscripts/affected-apps.md +++ b/docs/web/api-workspace/npmscripts/affected-apps.md @@ -8,10 +8,8 @@ Print applications affected by changes nx affected:apps ``` -Install `@nrwl/cli` globally to invoke the command directly using `nx`, or use `npm run nx` or `yarn nx`. - -### Examples - +Install `@nrwl/cli` globally to invoke the command directly using `nx`, or use `npm run nx` or `yarn nx`. + ### Examples Print the names of all the apps affected by changing the index.ts file: ```bash diff --git a/docs/web/api-workspace/npmscripts/affected-build.md b/docs/web/api-workspace/npmscripts/affected-build.md index 8b449c45c6ea1..4813da82e4e53 100644 --- a/docs/web/api-workspace/npmscripts/affected-build.md +++ b/docs/web/api-workspace/npmscripts/affected-build.md @@ -8,10 +8,8 @@ Build applications and publishable libraries affected by changes nx affected:build ``` -Install `@nrwl/cli` globally to invoke the command directly using `nx`, or use `npm run nx` or `yarn nx`. - -### Examples - +Install `@nrwl/cli` globally to invoke the command directly using `nx`, or use `npm run nx` or `yarn nx`. + ### Examples Run build in parallel: ```bash diff --git a/docs/web/api-workspace/npmscripts/affected-dep-graph.md b/docs/web/api-workspace/npmscripts/affected-dep-graph.md index d10f9ba624a2c..62568e0e25b5d 100644 --- a/docs/web/api-workspace/npmscripts/affected-dep-graph.md +++ b/docs/web/api-workspace/npmscripts/affected-dep-graph.md @@ -8,10 +8,8 @@ Graph dependencies affected by changes nx affected:dep-graph ``` -Install `@nrwl/cli` globally to invoke the command directly using `nx`, or use `npm run nx` or `yarn nx`. - -### Examples - +Install `@nrwl/cli` globally to invoke the command directly using `nx`, or use `npm run nx` or `yarn nx`. + ### Examples Open the dep graph of the workspace in the browser, and highlight the projects affected by changing the index.ts file: ```bash diff --git a/docs/web/api-workspace/npmscripts/affected-e2e.md b/docs/web/api-workspace/npmscripts/affected-e2e.md index 293c876542381..fcb468cecedcd 100644 --- a/docs/web/api-workspace/npmscripts/affected-e2e.md +++ b/docs/web/api-workspace/npmscripts/affected-e2e.md @@ -8,10 +8,8 @@ Run e2e tests for the applications affected by changes nx affected:e2e ``` -Install `@nrwl/cli` globally to invoke the command directly using `nx`, or use `npm run nx` or `yarn nx`. - -### Examples - +Install `@nrwl/cli` globally to invoke the command directly using `nx`, or use `npm run nx` or `yarn nx`. + ### Examples Run tests in parallel: ```bash diff --git a/docs/web/api-workspace/npmscripts/affected-libs.md b/docs/web/api-workspace/npmscripts/affected-libs.md index 1a10608a1cdf4..b74a7528e5de9 100644 --- a/docs/web/api-workspace/npmscripts/affected-libs.md +++ b/docs/web/api-workspace/npmscripts/affected-libs.md @@ -8,10 +8,8 @@ Print libraries affected by changes nx affected:libs ``` -Install `@nrwl/cli` globally to invoke the command directly using `nx`, or use `npm run nx` or `yarn nx`. - -### Examples - +Install `@nrwl/cli` globally to invoke the command directly using `nx`, or use `npm run nx` or `yarn nx`. + ### Examples Print the names of all the libs affected by changing the index.ts file: ```bash diff --git a/docs/web/api-workspace/npmscripts/affected-lint.md b/docs/web/api-workspace/npmscripts/affected-lint.md index 82e14e8103b7f..8f91a83a5e7c5 100644 --- a/docs/web/api-workspace/npmscripts/affected-lint.md +++ b/docs/web/api-workspace/npmscripts/affected-lint.md @@ -8,10 +8,8 @@ Lint projects affected by changes nx affected:lint ``` -Install `@nrwl/cli` globally to invoke the command directly using `nx`, or use `npm run nx` or `yarn nx`. - -### Examples - +Install `@nrwl/cli` globally to invoke the command directly using `nx`, or use `npm run nx` or `yarn nx`. + ### Examples Run lint in parallel: ```bash diff --git a/docs/web/api-workspace/npmscripts/affected-test.md b/docs/web/api-workspace/npmscripts/affected-test.md index 9cd2c067a3d2c..4a7da66568537 100644 --- a/docs/web/api-workspace/npmscripts/affected-test.md +++ b/docs/web/api-workspace/npmscripts/affected-test.md @@ -8,10 +8,8 @@ Test projects affected by changes nx affected:test ``` -Install `@nrwl/cli` globally to invoke the command directly using `nx`, or use `npm run nx` or `yarn nx`. - -### Examples - +Install `@nrwl/cli` globally to invoke the command directly using `nx`, or use `npm run nx` or `yarn nx`. + ### Examples Run tests in parallel: ```bash diff --git a/docs/web/api-workspace/npmscripts/affected.md b/docs/web/api-workspace/npmscripts/affected.md index 5b19879ba0495..4168bfd09c012 100644 --- a/docs/web/api-workspace/npmscripts/affected.md +++ b/docs/web/api-workspace/npmscripts/affected.md @@ -8,10 +8,8 @@ Run task for affected projects nx affected ``` -Install `@nrwl/cli` globally to invoke the command directly using `nx`, or use `npm run nx` or `yarn nx`. - -### Examples - +Install `@nrwl/cli` globally to invoke the command directly using `nx`, or use `npm run nx` or `yarn nx`. + ### Examples Run custom target for all affected projects: ```bash diff --git a/docs/web/api-workspace/npmscripts/dep-graph.md b/docs/web/api-workspace/npmscripts/dep-graph.md index 001e8f8abf594..3046acdf922f3 100644 --- a/docs/web/api-workspace/npmscripts/dep-graph.md +++ b/docs/web/api-workspace/npmscripts/dep-graph.md @@ -8,10 +8,8 @@ Graph dependencies within workspace nx dep-graph ``` -Install `@nrwl/cli` globally to invoke the command directly using `nx`, or use `npm run nx` or `yarn nx`. - -### Examples - +Install `@nrwl/cli` globally to invoke the command directly using `nx`, or use `npm run nx` or `yarn nx`. + ### Examples Open the dep graph of the workspace in the browser: ```bash diff --git a/docs/web/api-workspace/npmscripts/format-check.md b/docs/web/api-workspace/npmscripts/format-check.md index 4add210266a6d..20108e1b17dfe 100644 --- a/docs/web/api-workspace/npmscripts/format-check.md +++ b/docs/web/api-workspace/npmscripts/format-check.md @@ -8,7 +8,8 @@ Check for un-formatted files nx format:check ``` -Install `@nrwl/cli` globally to invoke the command directly using `nx`, or use `npm run nx` or `yarn nx`. +Install `@nrwl/cli` globally to invoke the command directly using `nx`, or use `npm run nx` or `yarn nx`. + ## Options diff --git a/docs/web/api-workspace/npmscripts/format-write.md b/docs/web/api-workspace/npmscripts/format-write.md index bc4309adabb13..cb9951ed368f6 100644 --- a/docs/web/api-workspace/npmscripts/format-write.md +++ b/docs/web/api-workspace/npmscripts/format-write.md @@ -8,7 +8,8 @@ Overwrite un-formatted files nx format:write ``` -Install `@nrwl/cli` globally to invoke the command directly using `nx`, or use `npm run nx` or `yarn nx`. +Install `@nrwl/cli` globally to invoke the command directly using `nx`, or use `npm run nx` or `yarn nx`. + ## Options diff --git a/docs/web/api-workspace/npmscripts/workspace-lint-files.md b/docs/web/api-workspace/npmscripts/workspace-lint-files.md index ddbeb4e34f152..25180e1e9124a 100644 --- a/docs/web/api-workspace/npmscripts/workspace-lint-files.md +++ b/docs/web/api-workspace/npmscripts/workspace-lint-files.md @@ -8,7 +8,8 @@ Lint workspace or list of files nx workspace-lint [files..] ``` -Install `@nrwl/cli` globally to invoke the command directly using `nx`, or use `npm run nx` or `yarn nx`. +Install `@nrwl/cli` globally to invoke the command directly using `nx`, or use `npm run nx` or `yarn nx`. + ## Options diff --git a/docs/web/api-workspace/npmscripts/workspace-schematic-name.md b/docs/web/api-workspace/npmscripts/workspace-schematic-name.md index 204b3a2167768..80a3fe8f2ba8b 100644 --- a/docs/web/api-workspace/npmscripts/workspace-schematic-name.md +++ b/docs/web/api-workspace/npmscripts/workspace-schematic-name.md @@ -8,7 +8,8 @@ Runs a workspace schematic from the tools/schematics directory nx workspace-schematic [name] ``` -Install `@nrwl/cli` globally to invoke the command directly using `nx`, or use `npm run nx` or `yarn nx`. +Install `@nrwl/cli` globally to invoke the command directly using `nx`, or use `npm run nx` or `yarn nx`. + ## Options diff --git a/packages/react/src/plugins/babel.ts b/packages/react/src/plugins/babel.ts index 952642f047331..6eb0ef10d4d7e 100644 --- a/packages/react/src/plugins/babel.ts +++ b/packages/react/src/plugins/babel.ts @@ -11,6 +11,8 @@ export function getBabelWebpackConfig(config: Configuration) { [ require('@babel/preset-env').default, { + // Include any project files, e.g. browserlist, by setting the context as config path + configPath: config.context, // Allow importing core-js in entrypoint and use browserlist to select polyfills useBuiltIns: 'entry', corejs: 3, diff --git a/packages/react/src/schematics/application/files/app/browserslist b/packages/react/src/schematics/application/files/app/.browserslistrc similarity index 63% rename from packages/react/src/schematics/application/files/app/browserslist rename to packages/react/src/schematics/application/files/app/.browserslistrc index 37371cb04b9f1..46a100aecfa11 100644 --- a/packages/react/src/schematics/application/files/app/browserslist +++ b/packages/react/src/schematics/application/files/app/.browserslistrc @@ -1,4 +1,7 @@ -# This file is currently used by autoprefixer to adjust CSS to support the below specified browsers +# This file is used by: +# 1. autoprefixer to adjust CSS to support the below specified browsers +# 2. babel preset-env to adjust included polyfills +# # For additional information regarding the format and rule options, please see: # https://github.com/browserslist/browserslist#queries # @@ -8,4 +11,4 @@ last 2 versions Firefox ESR not dead -not IE 9-11 \ No newline at end of file +not IE 9-11