build: update to @angular/cli@11.0.0-rc.0 (#39432)
This updates just the cli packages, the material and cdk packages will be updated separately. PR Close #39432
This commit is contained in:
parent
e3365724f2
commit
904b213954
|
@ -12,8 +12,8 @@
|
|||
"master": {
|
||||
"uncompressed": {
|
||||
"runtime-es2015": 1485,
|
||||
"main-es2015": 17049,
|
||||
"polyfills-es2015": 36657
|
||||
"main-es2015": 17308,
|
||||
"polyfills-es2015": 36789
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -39,9 +39,9 @@
|
|||
"master": {
|
||||
"uncompressed": {
|
||||
"runtime-es2015": 2289,
|
||||
"main-es2015": 241945,
|
||||
"polyfills-es2015": 36938,
|
||||
"5-es2015": 751
|
||||
"main-es2015": 242687,
|
||||
"polyfills-es2015": 36789,
|
||||
"5-es2015": 747
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -49,9 +49,9 @@
|
|||
"master": {
|
||||
"uncompressed": {
|
||||
"runtime-es2015": 2289,
|
||||
"main-es2015": 217879,
|
||||
"polyfills-es2015": 36723,
|
||||
"5-es2015": 781
|
||||
"main-es2015": 222611,
|
||||
"polyfills-es2015": 36789,
|
||||
"5-es2015": 779
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
"version": "0.0.0",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"build": "npm run clean && npm run ngc && npm run rollup && npm run rollup:lazy && npm run es5 && npm run es5:lazy",
|
||||
"build": "yarn clean && yarn ngc && yarn rollup && yarn rollup:lazy && yarn es5 && yarn es5:lazy",
|
||||
"clean": "rm -rf dist",
|
||||
"//es5-note": "`--typeRoots ./dummy_folder_name/@types` is a workaround for https://github.com/Microsoft/TypeScript/issues/30845",
|
||||
"es5": "tsc --target es5 --skipLibCheck --allowJs dist/bundle.es2015.js --out dist/bundle.js --typeRoots ./dummy_folder_name/@types",
|
||||
|
@ -14,7 +14,7 @@
|
|||
"preprotractor": "tsc -p e2e",
|
||||
"protractor": "protractor e2e/protractor.config.js",
|
||||
"serve": "lite-server -c e2e/browser.config.json",
|
||||
"test": "npm run build && concurrently \"yarn run serve\" \"yarn run protractor\" --kill-others --success first"
|
||||
"test": "yarn build && concurrently \"yarn run serve\" \"yarn run protractor\" --kill-others --success first"
|
||||
},
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
},
|
||||
"scripts": {
|
||||
"build": "./build.sh",
|
||||
"test": "npm run build && concurrently \"npm run serve\" \"npm run protractor\" --kill-others --success first",
|
||||
"test": "yarn build && concurrently \"yarn serve\" \"yarn protractor\" --kill-others --success first",
|
||||
"serve": "node built/server-bundle.js",
|
||||
"preprotractor": "tsc -p e2e",
|
||||
"protractor": "protractor e2e/protractor.config.js"
|
||||
|
|
14
package.json
14
package.json
|
@ -41,11 +41,11 @@
|
|||
},
|
||||
"// 1": "dependencies are used locally and by bazel",
|
||||
"dependencies": {
|
||||
"@angular-devkit/architect": "0.1000.0-rc.2",
|
||||
"@angular-devkit/build-angular": "0.1000.0-rc.2",
|
||||
"@angular-devkit/build-optimizer": "0.1000.0-rc.2",
|
||||
"@angular-devkit/core": "10.0.0-rc.2",
|
||||
"@angular-devkit/schematics": "10.0.0-rc.2",
|
||||
"@angular-devkit/architect": "0.1100.0-rc.0",
|
||||
"@angular-devkit/build-angular": "0.1100.0-rc.0",
|
||||
"@angular-devkit/build-optimizer": "0.1100.0-rc.0",
|
||||
"@angular-devkit/core": "11.0.0-rc.0",
|
||||
"@angular-devkit/schematics": "11.0.0-rc.0",
|
||||
"@babel/cli": "^7.8.4",
|
||||
"@babel/core": "^7.8.6",
|
||||
"@babel/generator": "^7.8.6",
|
||||
|
@ -62,7 +62,7 @@
|
|||
"@microsoft/api-extractor": "7.7.11",
|
||||
"@octokit/rest": "16.28.7",
|
||||
"@octokit/types": "^5.0.1",
|
||||
"@schematics/angular": "10.0.0-rc.2",
|
||||
"@schematics/angular": "11.0.0-rc.0",
|
||||
"@types/angular": "^1.6.47",
|
||||
"@types/babel__core": "^7.1.6",
|
||||
"@types/babel__generator": "^7.6.1",
|
||||
|
@ -157,7 +157,7 @@
|
|||
},
|
||||
"// 2": "devDependencies are not used under Bazel. Many can be removed after test.sh is deleted.",
|
||||
"devDependencies": {
|
||||
"@angular/cli": "9.1.0",
|
||||
"@angular/cli": "11.0.0-rc.0",
|
||||
"@bazel/bazelisk": "^1.4.0",
|
||||
"@bazel/buildifier": "^0.29.0",
|
||||
"@bazel/ibazel": "^0.12.3",
|
||||
|
|
|
@ -60,12 +60,12 @@ describe('move-document migration', () => {
|
|||
expect(content).not.toContain(`import {DOCUMENT} from '@angular/platform-browser';`);
|
||||
});
|
||||
|
||||
it('should properly apply import replacement (BOM)', () => {
|
||||
it('should properly apply import replacement (BOM)', async () => {
|
||||
writeFile('/index.ts', `\uFEFF
|
||||
import {DOCUMENT} from '@angular/platform-browser';
|
||||
`);
|
||||
|
||||
runMigration();
|
||||
await runMigration();
|
||||
|
||||
const content = tree.readContent('/index.ts');
|
||||
|
||||
|
|
|
@ -1153,7 +1153,7 @@ describe('Undecorated classes with DI migration', () => {
|
|||
export class MyModule {}
|
||||
`);
|
||||
|
||||
expect(() => runMigration()).not.toThrow();
|
||||
await runMigration();
|
||||
|
||||
expect(errorOutput.length).toBe(1);
|
||||
expect(errorOutput[0]).toMatch(/Could not resolve non-existent/);
|
||||
|
|
Loading…
Reference in New Issue