Skip to content

Commit fb21c4a

Browse files
alan-agius4clydin
authored andcommitted
feat(@angular-devkit/build-angular): deprecate protractor builder
1 parent 7ff41e4 commit fb21c4a

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

packages/angular_devkit/build_angular/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ This package contains [Architect builders](/packages/angular_devkit/architect/RE
1313
| karma | Execute unit tests using [Karma](https://github.com/karma-runner/karma) test runner. |
1414
| ng-packagr | Build and package an Angular library in [Angular Package Format (APF)](https://docs.google.com/document/d/1CZC2rcpxffTDfRDs6p1cfbmKNLA6x5O-NtkJglDaBVs/preview) format using [ng-packagr](https://github.com/ng-packagr/ng-packagr). |
1515
| server | Build an Angular application targeting a [Node.js](https://nodejs.org) environment. |
16-
| protractor | Run end-to-end tests using [Protractor](https://www.protractortest.org/) framework. |
16+
| protractor | **Deprecated** - Run end-to-end tests using [Protractor](https://www.protractortest.org/) framework. |
1717
| tslint | **Deprecated** - Statically analyze [TypeScript](https://www.typescriptlang.org/) files using [TSLint](https://palantir.github.io/tslint/). |
1818

1919
## Disclaimer

packages/angular_devkit/build_angular/src/protractor/index.ts

+6-2
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,11 @@ async function updateWebdriver() {
7373

7474
// run `webdriver-manager update --standalone false --gecko false --quiet`
7575
// if you change this, update the command comment in prev line
76-
return webdriverUpdate.program.run(({
76+
return webdriverUpdate.program.run({
7777
standalone: false,
7878
gecko: false,
7979
quiet: true,
80-
} as unknown) as JSON);
80+
} as unknown as JSON);
8181
}
8282

8383
export { ProtractorBuilderOptions };
@@ -89,6 +89,10 @@ export async function execute(
8989
options: ProtractorBuilderOptions,
9090
context: BuilderContext,
9191
): Promise<BuilderOutput> {
92+
context.logger.warn(
93+
'Protractor has been deprecated including its support in the Angular CLI. For additional information and alternatives, please see https://github.com/angular/protractor/issues/5502.',
94+
);
95+
9296
// ensure that only one of these options is used
9397
if (options.devServerTarget && options.baseUrl) {
9498
throw new Error(tags.stripIndents`

0 commit comments

Comments
 (0)