feat(angular): update Angular libraries to version 9.1.0
This commit is contained in:
parent
e5578076ed
commit
49d8ce1297
@ -96,9 +96,10 @@ export function runYarnInstall(silent: boolean = true) {
|
||||
return install ? install.toString() : '';
|
||||
}
|
||||
|
||||
export function runNgcc(silent: boolean = true) {
|
||||
export function runNgcc(silent: boolean = true, async: boolean = true) {
|
||||
const install = execSync(
|
||||
'node ./node_modules/@angular/compiler-cli/ngcc/main-ngcc.js',
|
||||
'node ./node_modules/@angular/compiler-cli/ngcc/main-ngcc.js' +
|
||||
(!async ? ' --async=false' : ''),
|
||||
{
|
||||
cwd: tmpProjPath(),
|
||||
...(silent ? { stdio: ['ignore', 'ignore', 'ignore'] } : {})
|
||||
@ -172,8 +173,8 @@ function default_1(factoryOptions = {}) {
|
||||
}
|
||||
exports.default = default_1;`
|
||||
);
|
||||
|
||||
runNgcc();
|
||||
const inCI = process.env['CIRCLECI'] ? true : false;
|
||||
runNgcc(!inCI, !inCI);
|
||||
|
||||
execSync(`mv ${tmpProjPath()} ${tmpBackupProjPath()}`);
|
||||
}
|
||||
|
||||
50
package.json
50
package.json
@ -32,24 +32,24 @@
|
||||
"submit-plugin": "node ./scripts/submit-plugin.js"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@angular-devkit/architect": "~0.900.1",
|
||||
"@angular-devkit/build-angular": "~0.900.1",
|
||||
"@angular-devkit/build-ng-packagr": "~0.900.1",
|
||||
"@angular-devkit/build-optimizer": "~0.900.1",
|
||||
"@angular-devkit/build-webpack": "~0.900.1",
|
||||
"@angular-devkit/core": "~9.0.1",
|
||||
"@angular-devkit/schematics": "~9.0.1",
|
||||
"@angular/cli": "~9.0.1",
|
||||
"@angular/common": "^9.0.0",
|
||||
"@angular/compiler": "^9.0.0",
|
||||
"@angular/compiler-cli": "^9.0.0",
|
||||
"@angular/core": "^9.0.0",
|
||||
"@angular/forms": "^9.0.0",
|
||||
"@angular/platform-browser": "^9.0.0",
|
||||
"@angular/platform-browser-dynamic": "^9.0.0",
|
||||
"@angular/router": "^9.0.0",
|
||||
"@angular/service-worker": "^9.0.0",
|
||||
"@angular/upgrade": "^9.0.0",
|
||||
"@angular-devkit/architect": "~0.901.0",
|
||||
"@angular-devkit/build-angular": "~0.901.0",
|
||||
"@angular-devkit/build-ng-packagr": "~0.901.0",
|
||||
"@angular-devkit/build-optimizer": "~0.901.0",
|
||||
"@angular-devkit/build-webpack": "~0.901.0",
|
||||
"@angular-devkit/core": "~9.1.0",
|
||||
"@angular-devkit/schematics": "~9.1.0",
|
||||
"@angular/cli": "~9.1.0",
|
||||
"@angular/common": "^9.1.0",
|
||||
"@angular/compiler": "^9.1.0",
|
||||
"@angular/compiler-cli": "^9.1.0",
|
||||
"@angular/core": "^9.1.0",
|
||||
"@angular/forms": "^9.1.0",
|
||||
"@angular/platform-browser": "^9.1.0",
|
||||
"@angular/platform-browser-dynamic": "^9.1.0",
|
||||
"@angular/router": "^9.1.0",
|
||||
"@angular/service-worker": "^9.1.0",
|
||||
"@angular/upgrade": "^9.1.0",
|
||||
"@babel/core": "7.8.4",
|
||||
"@babel/plugin-proposal-class-properties": "7.8.3",
|
||||
"@babel/plugin-proposal-decorators": "7.8.3",
|
||||
@ -71,11 +71,11 @@
|
||||
"@ngrx/schematics": "9.0.0",
|
||||
"@ngrx/store": "9.0.0",
|
||||
"@ngrx/store-devtools": "9.0.0",
|
||||
"@ngtools/webpack": "~9.0.1",
|
||||
"@ngtools/webpack": "~9.1.0",
|
||||
"@rollup/plugin-commonjs": "11.0.2",
|
||||
"@rollup/plugin-image": "2.0.4",
|
||||
"@rollup/plugin-node-resolve": "7.1.1",
|
||||
"@schematics/angular": "~9.0.1",
|
||||
"@schematics/angular": "~9.1.0",
|
||||
"@storybook/addon-knobs": "5.3.9",
|
||||
"@storybook/angular": "5.3.9",
|
||||
"@storybook/core": "5.3.9",
|
||||
@ -174,7 +174,7 @@
|
||||
"mini-css-extract-plugin": "0.8.0",
|
||||
"minimatch": "3.0.4",
|
||||
"next": "9.1.5",
|
||||
"ng-packagr": "5.7.0",
|
||||
"ng-packagr": "9.1.0",
|
||||
"ngrx-store-freeze": "0.2.4",
|
||||
"npm-run-all": "^4.1.5",
|
||||
"open": "6.4.0",
|
||||
@ -199,8 +199,8 @@
|
||||
"rollup-plugin-peer-deps-external": "2.2.2",
|
||||
"rollup-plugin-postcss": "2.1.1",
|
||||
"rollup-plugin-typescript2": "0.26.0",
|
||||
"rxjs": "6.5.3",
|
||||
"sass": "1.22.9",
|
||||
"rxjs": "6.5.4",
|
||||
"sass": "1.26.3",
|
||||
"sass-loader": "7.2.0",
|
||||
"semver": "6.3.0",
|
||||
"shelljs": "^0.8.3",
|
||||
@ -221,10 +221,10 @@
|
||||
"ts-loader": "^5.3.1",
|
||||
"ts-node": "^8.0.2",
|
||||
"tsconfig-paths-webpack-plugin": "^3.2.0",
|
||||
"tsickle": "^0.37.0",
|
||||
"tsickle": "^0.38.1",
|
||||
"tslib": "^1.9.3",
|
||||
"tslint": "6.0.0",
|
||||
"typescript": "~3.7.4",
|
||||
"typescript": "~3.8.3",
|
||||
"url-loader": "^3.0.0",
|
||||
"verdaccio": "^4.4.2",
|
||||
"webpack": "4.41.2",
|
||||
|
||||
@ -38,8 +38,8 @@
|
||||
"dependencies": {
|
||||
"@nrwl/cypress": "*",
|
||||
"@nrwl/jest": "*",
|
||||
"@angular-devkit/schematics": "~9.0.1",
|
||||
"@schematics/angular": "~9.0.1",
|
||||
"@angular-devkit/schematics": "~9.1.0",
|
||||
"@schematics/angular": "~9.1.0",
|
||||
"jasmine-marbles": "~0.6.0"
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
export const nxVersion = '*';
|
||||
export const angularVersion = '9.0.0';
|
||||
export const angularDevkitVersion = '0.900.1';
|
||||
export const angularVersion = '9.1.0';
|
||||
export const angularDevkitVersion = '0.901.0';
|
||||
export const angularJsVersion = '1.6.6';
|
||||
export const ngrxVersion = '9.0.0';
|
||||
export const rxjsVersion = '~6.5.0';
|
||||
export const rxjsVersion = '~6.5.4';
|
||||
export const jestPresetAngularVersion = '8.1.2';
|
||||
|
||||
@ -44,8 +44,8 @@
|
||||
]
|
||||
},
|
||||
"dependencies": {
|
||||
"@angular-devkit/core": "~9.0.1",
|
||||
"@angular-devkit/schematics": "~9.0.1",
|
||||
"@angular-devkit/core": "~9.1.0",
|
||||
"@angular-devkit/schematics": "~9.1.0",
|
||||
"@nrwl/cli": "*"
|
||||
},
|
||||
"peerDependencies": {
|
||||
|
||||
@ -36,8 +36,8 @@
|
||||
"cypress": ">= 3 < 5"
|
||||
},
|
||||
"dependencies": {
|
||||
"@angular-devkit/architect": "~0.900.1",
|
||||
"@angular-devkit/core": "~9.0.1",
|
||||
"@angular-devkit/architect": "~0.901.0",
|
||||
"@angular-devkit/core": "~9.1.0",
|
||||
"@cypress/webpack-preprocessor": "~4.1.2",
|
||||
"tree-kill": "1.2.2",
|
||||
"ts-loader": "^5.3.1",
|
||||
|
||||
@ -34,6 +34,6 @@
|
||||
"dependencies": {
|
||||
"@nrwl/node": "*",
|
||||
"@nrwl/jest": "*",
|
||||
"@angular-devkit/schematics": "~9.0.1"
|
||||
"@angular-devkit/schematics": "~9.1.0"
|
||||
}
|
||||
}
|
||||
|
||||
@ -35,8 +35,8 @@
|
||||
"@nrwl/workspace": "*"
|
||||
},
|
||||
"dependencies": {
|
||||
"@angular-devkit/architect": "~0.900.1",
|
||||
"@angular-devkit/core": "~9.0.1",
|
||||
"@angular-devkit/schematics": "~9.0.1"
|
||||
"@angular-devkit/architect": "~0.901.0",
|
||||
"@angular-devkit/core": "~9.1.0",
|
||||
"@angular-devkit/schematics": "~9.1.0"
|
||||
}
|
||||
}
|
||||
|
||||
@ -27,6 +27,6 @@
|
||||
"@nrwl/workspace": "*"
|
||||
},
|
||||
"dependencies": {
|
||||
"@angular-devkit/architect": "~0.900.1"
|
||||
"@angular-devkit/architect": "~0.901.0"
|
||||
}
|
||||
}
|
||||
|
||||
@ -34,6 +34,6 @@
|
||||
"dependencies": {
|
||||
"@nrwl/node": "*",
|
||||
"@nrwl/jest": "*",
|
||||
"@angular-devkit/schematics": "~9.0.1"
|
||||
"@angular-devkit/schematics": "~9.1.0"
|
||||
}
|
||||
}
|
||||
|
||||
@ -34,7 +34,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@nrwl/react": "*",
|
||||
"@angular-devkit/schematics": "~9.0.1",
|
||||
"@angular-devkit/schematics": "~9.1.0",
|
||||
"@svgr/webpack": "^4.3.3",
|
||||
"url-loader": "^2.2.0"
|
||||
}
|
||||
|
||||
@ -34,10 +34,10 @@
|
||||
"dependencies": {
|
||||
"@nrwl/jest": "*",
|
||||
"@nrwl/linter": "*",
|
||||
"@angular-devkit/architect": "~0.900.1",
|
||||
"@angular-devkit/core": "~9.0.1",
|
||||
"@angular-devkit/schematics": "~9.0.1",
|
||||
"@angular-devkit/build-webpack": "~0.900.1",
|
||||
"@angular-devkit/architect": "~0.901.0",
|
||||
"@angular-devkit/core": "~9.1.0",
|
||||
"@angular-devkit/schematics": "~9.1.0",
|
||||
"@angular-devkit/build-webpack": "~0.901.0",
|
||||
"circular-dependency-plugin": "5.2.0",
|
||||
"copy-webpack-plugin": "5.1.1",
|
||||
"fork-ts-checker-webpack-plugin": "^3.1.1",
|
||||
|
||||
@ -31,9 +31,9 @@
|
||||
"dependencies": {
|
||||
"@nrwl/node": "*",
|
||||
"@nrwl/linter": "*",
|
||||
"@angular-devkit/architect": "~0.900.1",
|
||||
"@angular-devkit/core": "~9.0.1",
|
||||
"@angular-devkit/schematics": "~9.0.1",
|
||||
"@angular-devkit/architect": "~0.901.0",
|
||||
"@angular-devkit/core": "~9.1.0",
|
||||
"@angular-devkit/schematics": "~9.1.0",
|
||||
"fs-extra": "7.0.1",
|
||||
"tmp": "0.0.33",
|
||||
"yargs-parser": "10.0.0",
|
||||
|
||||
@ -36,7 +36,7 @@
|
||||
"@nrwl/cypress": "*",
|
||||
"@nrwl/jest": "*",
|
||||
"@nrwl/web": "*",
|
||||
"@angular-devkit/schematics": "~9.0.1",
|
||||
"@angular-devkit/schematics": "~9.1.0",
|
||||
"@svgr/webpack": "^5.2.0",
|
||||
"babel-plugin-emotion": "^10.0.29",
|
||||
"babel-plugin-styled-components": "^1.10.7",
|
||||
|
||||
@ -29,9 +29,9 @@
|
||||
},
|
||||
"homepage": "https://nx.dev",
|
||||
"dependencies": {
|
||||
"@angular-devkit/schematics": "~9.0.1",
|
||||
"@angular-devkit/core": "~9.0.1",
|
||||
"@angular-devkit/architect": "~0.900.1",
|
||||
"@angular-devkit/schematics": "~9.1.0",
|
||||
"@angular-devkit/core": "~9.1.0",
|
||||
"@angular-devkit/architect": "~0.901.0",
|
||||
"inquirer": "^6.3.1",
|
||||
"minimist": "^1.2.0",
|
||||
"strip-json-comments": "2.0.1",
|
||||
|
||||
@ -34,11 +34,11 @@
|
||||
"@nrwl/cypress": "*",
|
||||
"@nrwl/jest": "*",
|
||||
"@nrwl/linter": "*",
|
||||
"@angular-devkit/architect": "~0.900.1",
|
||||
"@angular-devkit/build-optimizer": "~0.900.1",
|
||||
"@angular-devkit/build-webpack": "~0.900.1",
|
||||
"@angular-devkit/core": "~9.0.1",
|
||||
"@angular-devkit/schematics": "~9.0.1",
|
||||
"@angular-devkit/architect": "~0.901.0",
|
||||
"@angular-devkit/build-optimizer": "~0.901.0",
|
||||
"@angular-devkit/build-webpack": "~0.901.0",
|
||||
"@angular-devkit/core": "~9.1.0",
|
||||
"@angular-devkit/schematics": "~9.1.0",
|
||||
"@babel/core": "^7.8.4",
|
||||
"@babel/preset-env": "^7.8.4",
|
||||
"@babel/preset-typescript": "^7.8.3",
|
||||
@ -81,7 +81,7 @@
|
||||
"postcss-import": "12.0.1",
|
||||
"postcss-loader": "3.0.0",
|
||||
"raw-loader": "3.1.0",
|
||||
"rxjs": "^6.5.3",
|
||||
"rxjs": "^6.5.4",
|
||||
"regenerator-runtime": "0.13.3",
|
||||
"rollup": "1.31.1",
|
||||
"rollup-plugin-babel": "4.3.3",
|
||||
|
||||
@ -443,6 +443,55 @@
|
||||
"alwaysAddToPackageJson": false
|
||||
}
|
||||
}
|
||||
},
|
||||
"9.2.0": {
|
||||
"version": "9.2.0-beta.1",
|
||||
"packages": {
|
||||
"@angular/cli": {
|
||||
"version": "~9.1.0",
|
||||
"alwaysAddToPackageJson": false
|
||||
},
|
||||
"typescript": {
|
||||
"version": "~3.8.3",
|
||||
"alwaysAddToPackageJson": false
|
||||
},
|
||||
"@angular-devkit/architect": {
|
||||
"version": "~0.901.0",
|
||||
"alwaysAddToPackageJson": false
|
||||
},
|
||||
"@angular-devkit/build-angular": {
|
||||
"version": "~0.901.0",
|
||||
"alwaysAddToPackageJson": false
|
||||
},
|
||||
"@angular-devkit/build-ng-packagr": {
|
||||
"version": "~0.901.0",
|
||||
"alwaysAddToPackageJson": false
|
||||
},
|
||||
"@angular-devkit/build-webpack": {
|
||||
"version": "~0.901.0",
|
||||
"alwaysAddToPackageJson": false
|
||||
},
|
||||
"@angular-devkit/build-optimizer": {
|
||||
"version": "~0.901.0",
|
||||
"alwaysAddToPackageJson": false
|
||||
},
|
||||
"@angular-devkit/core": {
|
||||
"version": "~9.1.0",
|
||||
"alwaysAddToPackageJson": false
|
||||
},
|
||||
"@angular-devkit/schematics": {
|
||||
"version": "~9.1.0",
|
||||
"alwaysAddToPackageJson": false
|
||||
},
|
||||
"@schematics/angular": {
|
||||
"version": "~9.1.0",
|
||||
"alwaysAddToPackageJson": false
|
||||
},
|
||||
"rxjs": {
|
||||
"version": "~6.5.4",
|
||||
"alwaysAddToPackageJson": false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -50,15 +50,15 @@
|
||||
"prettier": "^1.19.1"
|
||||
},
|
||||
"dependencies": {
|
||||
"@angular-devkit/core": "~9.0.1",
|
||||
"@angular-devkit/schematics": "~9.0.1",
|
||||
"@angular-devkit/core": "~9.1.0",
|
||||
"@angular-devkit/schematics": "~9.1.0",
|
||||
"cosmiconfig": "4.0.0",
|
||||
"fs-extra": "6.0.0",
|
||||
"ignore": "5.0.4",
|
||||
"npm-run-all": "4.1.5",
|
||||
"hasha": "5.1.0",
|
||||
"opn": "^5.3.0",
|
||||
"rxjs": "^6.5.3",
|
||||
"rxjs": "^6.5.4",
|
||||
"semver": "5.4.1",
|
||||
"strip-json-comments": "2.0.1",
|
||||
"tmp": "0.0.33",
|
||||
|
||||
@ -1,5 +1,15 @@
|
||||
import { chain } from '@angular-devkit/schematics';
|
||||
import { formatFiles, updateJsonInTree } from '@nrwl/workspace';
|
||||
import {
|
||||
formatFiles,
|
||||
updateJsonInTree,
|
||||
updatePackagesInPackageJson
|
||||
} from '@nrwl/workspace';
|
||||
import { join } from 'path';
|
||||
|
||||
const updatePackages = updatePackagesInPackageJson(
|
||||
join(__dirname, '../../../', 'migrations.json'),
|
||||
'9.2.0'
|
||||
);
|
||||
|
||||
const addCacheableOperations = updateJsonInTree('nx.json', nxJson => {
|
||||
nxJson.tasksRunnerOptions = nxJson.tasksRunnerOptions || {};
|
||||
@ -47,5 +57,5 @@ const addCacheableOperations = updateJsonInTree('nx.json', nxJson => {
|
||||
});
|
||||
|
||||
export default function() {
|
||||
return chain([addCacheableOperations, formatFiles()]);
|
||||
return chain([updatePackages, addCacheableOperations, formatFiles()]);
|
||||
}
|
||||
|
||||
@ -77,7 +77,8 @@ describe('Hasher', () => {
|
||||
expect(e.message).toContain(
|
||||
'Nx failed to execute runtimeCacheInputs defined in nx.json failed:'
|
||||
);
|
||||
expect(e.message).toContain('boom: not found');
|
||||
expect(e.message).toContain('boom:');
|
||||
expect(e.message).toContain(' not found');
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
export const nxVersion = '*';
|
||||
|
||||
export const angularCliVersion = '9.0.1';
|
||||
export const typescriptVersion = '~3.7.4';
|
||||
export const angularCliVersion = '9.1.0';
|
||||
export const typescriptVersion = '~3.8.3';
|
||||
export const prettierVersion = '1.19.1';
|
||||
export const typescriptESLintVersion = '2.19.2';
|
||||
export const eslintVersion = '6.8.0';
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user