Skip to content

Commit cbd12d9

Browse files
filipesilvahansl
authored andcommitted
test: replace mentions of build-webpack with build-angular
1 parent 9a9bc00 commit cbd12d9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+80
-80
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
throw new Error(
2-
'In Angular CLI >6.0 the Karma plugin is now exported by "@angular-devkit/build-webpack" instead.\n'
3-
+ 'Please replace "@angular/cli" with "@angular-devkit/build-webpack" in your "karma.conf.js" file.'
2+
'In Angular CLI >6.0 the Karma plugin is now exported by "@angular-devkit/build-angular" instead.\n'
3+
+ 'Please replace "@angular/cli" with "@angular-devkit/build-angular" in your "karma.conf.js" file.'
44
);

tests/e2e/tests/basic/assets.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export default function () {
3333
'./src/output-asset.txt': 'output-asset.txt',
3434
'./node_modules/some-package/node_modules-asset.txt': 'node_modules-asset.txt',
3535
}))
36-
// TODO(architect): Review allowOutsideOutDir logic inside build-webpack.
36+
// TODO(architect): Review allowOutsideOutDir logic inside build-angular.
3737
// // Add invalid asset config in angular.json.
3838
// .then(() => updateJsonFile('angular.json', configJson => {
3939
// const app = configJson['apps'][0];

tests/e2e/tests/build/allow-js.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { updateTsConfig } from '../../utils/project';
33
import { appendToFile, writeFile } from '../../utils/fs';
44

55
export default async function() {
6-
// TODO(architect): Delete this test. It is now in devkit/build-webpack.
6+
// TODO(architect): Delete this test. It is now in devkit/build-angular.
77

88
await writeFile('projects/test-project/src/my-js-file.js', 'console.log(1); export const a = 2;');
99
await appendToFile('projects/test-project/src/main.ts', `

tests/e2e/tests/build/aot/aot-decorators.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {expectToFail} from '../../../utils/utils';
44
import {ngVersionMatches} from '../../../utils/version';
55

66
export default function() {
7-
// TODO(architect): This behaviour seems to have changed in devkit/build-webpack. Figure out why.
7+
// TODO(architect): This behaviour seems to have changed in devkit/build-angular. Figure out why.
88
return;
99

1010
return ng('generate', 'component', 'test-component', '--module', 'app.module.ts')

tests/e2e/tests/build/aot/aot-i18n.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { SemVer } from 'semver';
66

77
// tslint:disable:max-line-length
88
export default function () {
9-
// TODO(architect): Delete this test. It is now in devkit/build-webpack.
9+
// TODO(architect): Delete this test. It is now in devkit/build-angular.
1010

1111
return Promise.resolve()
1212
.then(() => createDir('projects/test-project/src/locale'))

tests/e2e/tests/build/base-href.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { expectFileToMatch } from '../../utils/fs';
33

44

55
export default function() {
6-
// TODO(architect): Delete this test. It is now in devkit/build-webpack.
6+
// TODO(architect): Delete this test. It is now in devkit/build-angular.
77

88
return ng('build', '--base-href', '/myUrl')
99
.then(() => expectFileToMatch('dist/test-project/index.html', /<base href="\/myUrl">/));

tests/e2e/tests/build/build-app-shell.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ export default function () {
2828
.then(() => updateJsonFile('angular.json', workspaceJson => {
2929
const appArchitect = workspaceJson.projects['test-project'].architect;
3030
appArchitect['server'] = {
31-
builder: '@angular-devkit/build-webpack:server',
31+
builder: '@angular-devkit/build-angular:server',
3232
options: {
3333
outputPath: 'dist/test-project-server',
3434
main: 'projects/test-project/src/main.server.ts',
3535
tsConfig: 'projects/test-project/tsconfig.server.json'
3636
}
3737
};
3838
appArchitect['app-shell'] = {
39-
builder: '@angular-devkit/build-webpack:app-shell',
39+
builder: '@angular-devkit/build-angular:app-shell',
4040
options: {
4141
browserTarget: 'test-project:build:production',
4242
serverTarget: 'test-project:server',

tests/e2e/tests/build/build-errors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const extraErrors = [
1313
];
1414

1515
export default function () {
16-
// TODO(architect): Delete this test. It is now in devkit/build-webpack.
16+
// TODO(architect): Delete this test. It is now in devkit/build-angular.
1717

1818
if (process.platform.startsWith('win')) {
1919
return Promise.resolve();

tests/e2e/tests/build/build-optimizer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { expectToFail } from '../../utils/utils';
44

55

66
export default function () {
7-
// TODO(architect): Delete this test. It is now in devkit/build-webpack.
7+
// TODO(architect): Delete this test. It is now in devkit/build-angular.
88

99
return ng('build', '--aot', '--build-optimizer')
1010
.then(() => expectToFail(() => expectFileToMatch('dist/test-project/main.js', /\.decorators =/)))

tests/e2e/tests/build/chunk-hash.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function validateHashes(
4242
}
4343

4444
export default function() {
45-
// TODO(architect): Delete this test. It is now in devkit/build-webpack.
45+
// TODO(architect): Delete this test. It is now in devkit/build-angular.
4646
return;
4747

4848
let oldHashes: Map<string, string>;

0 commit comments

Comments
 (0)