Skip to content

Commit aede534

Browse files
committed
update package.json
1 parent 08b5ab4 commit aede534

Some content is hidden

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

60 files changed

+112
-100
lines changed

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@angular/cli/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@
2727
},
2828
"homepage": "https://github.com/angular/angular-cli",
2929
"dependencies": {
30-
"@angular-devkit/architect": "angular/angular-devkit-architect-builds#7b1aa387",
31-
"@angular-devkit/build-webpack": "angular/angular-devkit-build-webpack-builds#7b1aa387",
32-
"@angular-devkit/core": "angular/angular-devkit-core-builds#7b1aa387",
30+
"@angular-devkit/architect": "angular/angular-devkit-architect-builds#891f470",
31+
"@angular-devkit/build-webpack": "angular/angular-devkit-build-webpack-builds#891f470",
32+
"@angular-devkit/core": "angular/angular-devkit-core-builds#891f470",
3333
"@angular-devkit/schematics": "0.4.3",
3434
"@ngtools/json-schema": "1.2.0",
3535
"@schematics/angular": "0.4.3",

packages/@angular/cli/utilities/build-webpack-compat.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ export function createArchitectWorkspace(cliConfig: any): any {
2929
main: app.main,
3030
polyfills: app.polyfills,
3131
tsConfig: app.tsconfig,
32+
progress: false,
3233
};
3334

3435
browserOptions.scripts = (app.scripts || []).map(extraEntryMapper);

tests/e2e/tests/basic/dev-build.ts

Lines changed: 0 additions & 16 deletions
This file was deleted.

tests/e2e/tests/basic/scripts-array.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export default function () {
6363
.then(() => expectFileToMatch('dist/main.js', 'console.log(\'string-script\');'));
6464
// TODO(architect): disabled until --prod is added.
6565
// Verify uglify, sourcemaps and hashes. Lazy scripts should not get hashes.
66-
// .then(() => ng('build', '--prod', '--sourcemap'))
66+
// .then(() => ng('build', '--prod', '--source-map'))
6767
// .then(() => expectFileMatchToExist('dist', /scripts\.[0-9a-f]{20}\.js/))
6868
// .then(fileName => expectFileToMatch(`dist/${fileName}`, 'var number=2;'))
6969
// .then(() => expectFileMatchToExist('dist', /scripts\.[0-9a-f]{20}\.js\.map/))

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export default function() {
2626
.then(() => appendToFile('src/app/app.component.html',
2727
'<h1 i18n="An introduction header for this sample">Hello i18n!</h1>'))
2828
.then(() => ng('build', '--aot', '--i18n-file', 'src/locale/messages.fr.xlf', '--i18n-format',
29-
'xlf', '--locale', 'fr'))
29+
'xlf', '--i18n-locale', 'fr'))
3030
.then(() => expectFileToMatch('dist/main.js', /Bonjour i18n!/))
3131
.then(() => ng('build', '--aot'))
3232
.then(() => expectToFail(() => expectFileToMatch('dist/main.js', /Bonjour i18n!/)))
@@ -38,10 +38,10 @@ export default function() {
3838
const version = new Version(JSON.parse(compilerCliPackage).version);
3939
if (version.major === 2) {
4040
return expectToFail(() => ng('build', '--aot', '--i18nFile', 'src/locale/messages.fr.xlf',
41-
'--i18nFormat', 'xlf', '--locale', 'fr', '--missingTranslation', 'ignore'));
41+
'--i18nFormat', 'xlf', '--i18n-locale', 'fr', '--i18n-missing-translation', 'ignore'));
4242
} else {
4343
return ng('build', '--aot', '--i18nFile', 'src/locale/messages.fr.xlf', '--i18nFormat',
44-
'xlf', '--locale', 'fr', '--missingTranslation', 'ignore')
44+
'xlf', '--i18n-locale', 'fr', '--i18n-missing-translation', 'ignore')
4545
.then(() => expectFileToMatch('dist/main.js', /Other content/));
4646
}
4747
})
@@ -51,10 +51,10 @@ export default function() {
5151
const version = new Version(JSON.parse(compilerCliPackage).version);
5252
if (version.isGreaterThanOrEqualTo(new SemVer('4.2.0-beta.0')) || version.major === 2) {
5353
return expectToFail(() => ng('build', '--aot', '--i18nFile', 'src/locale/messages.fr.xlf',
54-
'--i18nFormat', 'xlf', '--locale', 'fr', '--missingTranslation', 'error'));
54+
'--i18nFormat', 'xlf', '--i18n-locale', 'fr', '--i18n-missing-translation', 'error'));
5555
} else {
5656
return ng('build', '--aot', '--i18nFile', 'src/locale/messages.fr.xlf',
57-
'--i18nFormat', 'xlf', '--locale', 'fr', '--missingTranslation', 'error');
57+
'--i18nFormat', 'xlf', '--i18n-locale', 'fr', '--i18n-missing-translation', 'error');
5858
}
5959
})
6060
);

tests/e2e/tests/build/aot/exclude.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@ export default function () {
3434
delete tsconfigJson['compilerOptions']['types'];
3535
}))
3636
.then(() => ng('build', '--aot'))
37-
.then(() => !ejected && ng('test', '--single-run'));
37+
.then(() => !ejected && ng('test', '--watch=false'));
3838
}

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ import { readNgVersion } from '../../utils/version';
77

88

99
export default function () {
10+
// TODO(architect): re-enable after build-webpack supports this functionality.
11+
return;
12+
1013
// Skip this in ejected tests.
1114
if (getGlobalVariable('argv').eject) {
1215
return Promise.resolve();
@@ -35,8 +38,8 @@ export default function () {
3538
dependencies['@angular/platform-server'] = platformServerVersion;
3639
})
3740
.then(() => npm('install'))
38-
.then(() => ng('build', '--target', 'production'))
41+
.then(() => ng('build', '--optimization-level', '1'))
3942
.then(() => expectFileToMatch('dist/index.html', /app-shell works!/))
40-
.then(() => ng('build', '--target', 'production', '--skip-app-shell'))
43+
.then(() => ng('build', '--optimization-level', '1', '--skip-app-shell'))
4144
.then(() => expectToFail(() => expectFileToMatch('dist/index.html', /app-shell works!/)));
4245
}

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ import { stripIndent } from 'common-tags';
88

99

1010
export default function () {
11+
// TODO(architect): re-enable after build-webpack supports this functionality.
12+
return;
13+
1114
// Skip this in ejected tests.
1215
if (getGlobalVariable('argv').eject) {
1316
return Promise.resolve();
@@ -140,8 +143,8 @@ export default function () {
140143
dependencies['@angular/platform-server'] = platformServerVersion;
141144
})
142145
.then(() => npm('install')))
143-
.then(() => ng('build', '--target', 'production'))
146+
.then(() => ng('build', '--optimization-level', '1'))
144147
.then(() => expectFileToMatch('dist/index.html', /shell Works!/))
145-
.then(() => ng('build', '--target', 'production', '--skip-app-shell'))
148+
.then(() => ng('build', '--optimization-level', '1', '--skip-app-shell'))
146149
.then(() => expectToFail(() => expectFileToMatch('dist/index.html', /shell Works!/)));
147150
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default function () {
99

1010
return ng('build', '--aot', '--build-optimizer')
1111
.then(() => expectToFail(() => expectFileToMatch('dist/main.js', /\.decorators =/)))
12-
.then(() => ng('build', '--target', 'production'))
12+
.then(() => ng('build', '--optimization-level', '1'))
1313
.then(() => expectToFail(() => expectFileToExist('dist/vendor.js')))
1414
.then(() => expectToFail(() => expectFileToMatch('dist/main.js', /\.decorators =/)));
1515
}

0 commit comments

Comments
 (0)