Skip to content

Commit 0896628

Browse files
chore: updates for angular 16
1 parent 6dbb644 commit 0896628

18 files changed

Lines changed: 8364 additions & 26486 deletions

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

.eslintrc.json

Lines changed: 34 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,37 +4,61 @@
44
"**/*"
55
],
66
"plugins": [
7-
"@nrwl/nx"
7+
"@nx"
88
],
99
"overrides": [
1010
{
11-
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
11+
"files": [
12+
"*.ts",
13+
"*.tsx",
14+
"*.js",
15+
"*.jsx"
16+
],
1217
"rules": {
13-
"@nrwl/nx/enforce-module-boundaries": [
18+
"@nx/enforce-module-boundaries": [
1419
"error",
1520
{
1621
"enforceBuildableLibDependency": true,
1722
"allow": [],
1823
"depConstraints": [
19-
{ "sourceTag": "*", "onlyDependOnLibsWithTags": ["*"] }
24+
{
25+
"sourceTag": "*",
26+
"onlyDependOnLibsWithTags": [
27+
"*"
28+
]
29+
}
2030
]
2131
}
2232
]
2333
}
2434
},
2535
{
26-
"files": ["*.ts", "*.tsx"],
27-
"extends": ["plugin:@nrwl/nx/typescript"],
28-
"parserOptions": { "project": "./tsconfig.*?.json" },
36+
"files": [
37+
"*.ts",
38+
"*.tsx"
39+
],
40+
"extends": [
41+
"plugin:@nx/typescript"
42+
],
43+
"parserOptions": {
44+
"project": "./tsconfig.*?.json"
45+
},
2946
"rules": {
3047
"semi": "off",
31-
"@typescript-eslint/semi": ["error"],
48+
"@typescript-eslint/semi": [
49+
"error"
50+
],
3251
"@typescript-eslint/ban-ts-comment": "off"
3352
}
3453
},
3554
{
36-
"files": ["*.js", "*.jsx"],
37-
"extends": ["plugin:@nrwl/nx/javascript"],
55+
"files": [
56+
"*.js",
57+
"*.jsx"
58+
],
59+
"extends": [
60+
"plugin:@nx/javascript"
61+
],
3862
"rules": {}
3963
}
4064
]

angular.json

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

apps/demo/.eslintrc.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"*.ts"
1212
],
1313
"extends": [
14-
"plugin:@nrwl/nx/angular",
14+
"plugin:@nx/angular",
1515
"plugin:@angular-eslint/template/process-inline-templates"
1616
],
1717
"rules": {}
@@ -21,7 +21,7 @@
2121
"*.html"
2222
],
2323
"extends": [
24-
"plugin:@nrwl/nx/angular-template"
24+
"plugin:@nx/angular-template"
2525
],
2626
"rules": {}
2727
}

apps/demo/project.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"dependsOn": [
2828
{
2929
"target": "build",
30-
"projects": "dependencies"
30+
"dependencies": true
3131
}
3232
],
3333
"configurations": {
@@ -62,7 +62,7 @@
6262
}
6363
},
6464
"lint": {
65-
"executor": "@nrwl/linter:eslint",
65+
"executor": "@nx/linter:eslint",
6666
"options": {
6767
"lintFilePatterns": [
6868
"apps/demo/**/*.ts"

apps/demo/src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import '../../../scripts/polyfills.ts';
1+
import './polyfills';
22

33
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
44
import { enableProdMode } from '@angular/core';

apps/demo/src/polyfills.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/***************************************************************************************************
2+
* Zone JS is required by default for Angular itself.
3+
*/
4+
import 'zone.js'; // Included with Angular CLI.
5+
6+
/***************************************************************************************************
7+
* APPLICATION IMPORTS
8+
*/
9+
10+
(window as any)['global'] = window;

apps/demo/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"extends": "../../tsconfig.base.json",
33
"files": [
44
"./src/main.ts",
5-
"../../scripts/polyfills.ts"
5+
"./src/polyfills.ts"
66
],
77
"include": [
88
"./src/typings.d.ts"

decorate-angular-cli.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ const cp = require('child_process');
2727
const isWindows = os.platform() === 'win32';
2828
let output;
2929
try {
30-
output = require('@nrwl/workspace').output;
30+
output = require('@nx/workspace').output;
3131
} catch (e) {
32-
console.warn('Angular CLI could not be decorated to enable computation caching. Please ensure @nrwl/workspace is installed.');
32+
console.warn('Angular CLI could not be decorated to enable computation caching. Please ensure @nx/workspace is installed.');
3333
process.exit(0);
3434
}
3535

jest.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
const { getJestProjects } = require('@nrwl/jest');
1+
const { getJestProjects } = require('@nx/jest');
22

33
export default {"projects": getJestProjects()};

0 commit comments

Comments
 (0)