Skip to content

Commit

Permalink
Merge pull request #2459 from ike18t/renovate/e2e/nx/patch-nrwl-monorepo
Browse files Browse the repository at this point in the history
chore(deps): update nrwl monorepo to v14.1.5 (patch)
  • Loading branch information
satanTime authored May 14, 2022
2 parents 0af4bbd + 4103797 commit 47799eb
Show file tree
Hide file tree
Showing 12 changed files with 186 additions and 150 deletions.
2 changes: 2 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ settings:
- ./e2e/jasmine/tsconfig.json
- ./e2e/jest/tsconfig.json
- ./e2e/min/tsconfig.json
- ./e2e/nx/tsconfig.base.json
- ./e2e/nx/apps/a-nx/tsconfig.json
es-roikoren:
aggressive: true
Expand Down Expand Up @@ -55,6 +56,7 @@ overrides:
- ./e2e/jasmine/tsconfig.json
- ./e2e/jest/tsconfig.json
- ./e2e/min/tsconfig.json
- ./e2e/nx/tsconfig.base.json
- ./e2e/nx/apps/a-nx/tsconfig.json
extends:
- 'eslint:recommended'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
export default {
displayName: 'a-nx',
preset: '../../jest.preset.js',
setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
Expand Down
15 changes: 1 addition & 14 deletions e2e/nx/apps/a-nx/project.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"projectType": "application",
"root": "apps/a-nx",
"sourceRoot": "apps/a-nx/src",
"prefix": "nx",
"targets": {
Expand Down Expand Up @@ -35,23 +34,11 @@
},
"defaultConfiguration": "development"
},
"extract-i18n": {
"executor": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "a-nx:build"
}
},
"lint": {
"executor": "@nrwl/linter:eslint",
"options": {
"lintFilePatterns": ["apps/a-nx/src/**/*.ts", "apps/a-nx/src/**/*.html"]
}
},
"test": {
"executor": "@nrwl/jest:jest",
"outputs": ["coverage/apps/a-nx"],
"options": {
"jestConfig": "apps/a-nx/jest.config.js",
"jestConfig": "apps/a-nx/jest.config.ts",
"passWithNoTests": true
}
}
Expand Down
2 changes: 1 addition & 1 deletion e2e/nx/apps/a-nx/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "../../tsconfig.base.json",
"files": ["src/main.ts", "src/polyfills.ts", "src/test-setup.ts"],
"include": ["**/*.test.ts", "**/*.spec.ts", "**/*.d.ts"],
"include": ["**/*.test.ts", "**/*.spec.ts", "**/*.d.ts", "jest.config.ts"],
"compilerOptions": {
"outDir": "../../dist/out-tsc",
"forceConsistentCasingInFileNames": true,
Expand Down
2 changes: 1 addition & 1 deletion e2e/nx/decorate-angular-cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ function symlinkNgCLItoNxCLI() {

try {
symlinkNgCLItoNxCLI();
require('@nrwl/cli/lib/decorate-cli').decorateCli();
require('nx/src/adapter/decorate-cli').decorateCli();
output.log({ title: 'Angular CLI has been decorated to enable computation caching.' });
} catch (e) {
output.error({ title: 'Decoration of the Angular CLI did not complete successfully' });
Expand Down
5 changes: 0 additions & 5 deletions e2e/nx/jest.config.js

This file was deleted.

5 changes: 5 additions & 0 deletions e2e/nx/jest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { getJestProjects } from '@nrwl/jest';

export default {
projects: getJestProjects(),
};
2 changes: 1 addition & 1 deletion e2e/nx/jest.preset.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
const nxPreset = require('@nrwl/jest/preset');
const nxPreset = require('@nrwl/jest/preset').default;

module.exports = { ...nxPreset };
2 changes: 1 addition & 1 deletion e2e/nx/nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"tasksRunnerOptions": {
"default": {
"runner": "@nrwl/workspace/tasks-runners/default",
"runner": "nx/tasks-runners/default",
"options": {
"cacheableOperations": ["build", "test"]
}
Expand Down
Loading

0 comments on commit 47799eb

Please sign in to comment.