Skip to content

feat: upgrade to Angular 18 #942

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"root": true,
"ignorePatterns": [
"projects/**/*"
],
"overrides": [
{
"files": [
"*.ts"
],
"parserOptions": {
"project": [
"tsconfig.json",
"e2e/tsconfig.json"
],
"createDefaultProgram": true
},
"extends": [
"plugin:@angular-eslint/recommended",
"plugin:@angular-eslint/template/process-inline-templates"
],
"rules": {
"@angular-eslint/prefer-standalone": "off",
"@angular-eslint/component-selector": [
"error",
{
"prefix": "lib",
"style": "kebab-case",
"type": "element"
}
],
"@angular-eslint/directive-selector": [
"error",
{
"prefix": "lib",
"style": "camelCase",
"type": "attribute"
}
]
}
},
{
"files": [
"*.html"
],
"extends": [
"plugin:@angular-eslint/template/recommended"
],
"rules": {}
}
]
}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,5 @@ testResults
e2eResults

e2e/dist

.angular
121 changes: 74 additions & 47 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,26 @@
"prefix": "app",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"builder": "@angular-devkit/build-angular:application",
"options": {
"outputPath": "dist/example-app",
"outputPath": {
"base": "dist/example-app"
},
"index": "projects/example-app/src/index.html",
"main": "projects/example-app/src/main.ts",
"polyfills": "projects/example-app/src/polyfills.ts",
"polyfills": [
"projects/example-app/src/polyfills.ts"
],
"tsConfig": "projects/example-app/tsconfig.app.json",
"aot": false,
"aot": true,
"assets": [
"projects/example-app/src/favicon.ico",
"projects/example-app/src/assets"
],
"styles": ["projects/example-app/src/styles.scss"],
"scripts": []
"styles": [
"projects/example-app/src/styles.scss"
],
"scripts": [],
"browser": "projects/example-app/src/main.ts"
},
"configurations": {
"production": {
Expand All @@ -44,8 +50,6 @@
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"budgets": [
{
"type": "initial",
Expand Down Expand Up @@ -73,14 +77,14 @@
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "example-app:build"
"buildTarget": "example-app:build"
},
"configurations": {
"production": {
"browserTarget": "example-app:build:production"
"buildTarget": "example-app:build:production"
},
"es5": {
"browserTarget": "example-app:build:es5"
"buildTarget": "example-app:build:es5"
}
}
},
Expand All @@ -103,13 +107,12 @@
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"builder": "@angular-eslint/builder:lint",
"options": {
"tsConfig": [
"projects/example-app/tsconfig.app.json",
"projects/example-app/tsconfig.spec.json"
],
"exclude": ["**/node_modules/**"]
"lintFilePatterns": [
"projects/example-app/**/*.ts",
"projects/example-app/**/*.html"
]
}
}
}
Expand All @@ -123,9 +126,17 @@
"build": {
"builder": "@angular-devkit/build-angular:ng-packagr",
"options": {
"tsConfig": "projects/angular-tree-component/tsconfig.lib.json",
"project": "projects/angular-tree-component/ng-package.json"
}
},
"configurations": {
"production": {
"tsConfig": "projects/angular-tree-component/tsconfig.lib.prod.json"
},
"development": {
"tsConfig": "projects/angular-tree-component/tsconfig.lib.json"
}
},
"defaultConfiguration": "production"
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
Expand All @@ -136,13 +147,12 @@
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"builder": "@angular-eslint/builder:lint",
"options": {
"tsConfig": [
"projects/angular-tree-component/tsconfig.lib.json",
"projects/angular-tree-component/tsconfig.spec.json"
],
"exclude": ["**/node_modules/**"]
"lintFilePatterns": [
"projects/angular-tree-component/**/*.ts",
"projects/angular-tree-component/**/*.html"
]
}
}
}
Expand All @@ -159,20 +169,26 @@
"prefix": "app",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"builder": "@angular-devkit/build-angular:application",
"options": {
"outputPath": "dist/docs-app",
"outputPath": {
"base": "dist/docs-app"
},
"index": "projects/docs-app/src/index.html",
"main": "projects/docs-app/src/main.ts",
"polyfills": "projects/docs-app/src/polyfills.ts",
"polyfills": [
"projects/docs-app/src/polyfills.ts"
],
"tsConfig": "projects/docs-app/tsconfig.app.json",
"aot": false,
"aot": true,
"assets": [
"projects/docs-app/src/favicon.ico",
"projects/docs-app/src/assets"
],
"styles": ["projects/docs-app/src/styles.scss"],
"scripts": []
"styles": [
"projects/docs-app/src/styles.scss"
],
"scripts": [],
"browser": "projects/docs-app/src/main.ts"
},
"configurations": {
"production": {
Expand All @@ -187,8 +203,6 @@
"sourceMap": false,
"namedChunks": false,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"budgets": [
{
"type": "initial",
Expand All @@ -207,18 +221,18 @@
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "docs-app:build"
"buildTarget": "docs-app:build"
},
"configurations": {
"production": {
"browserTarget": "docs-app:build:production"
"buildTarget": "docs-app:build:production"
}
}
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "docs-app:build"
"buildTarget": "docs-app:build"
}
},
"test": {
Expand All @@ -232,23 +246,36 @@
"projects/docs-app/src/favicon.ico",
"projects/docs-app/src/assets"
],
"styles": ["projects/docs-app/src/styles.scss"],
"styles": [
"projects/docs-app/src/styles.scss"
],
"scripts": []
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"builder": "@angular-eslint/builder:lint",
"options": {
"tsConfig": [
"projects/docs-app/tsconfig.app.json",
"projects/docs-app/tsconfig.spec.json",
"projects/docs-app/e2e/tsconfig.json"
],
"exclude": ["**/node_modules/**"]
"lintFilePatterns": [
"projects/docs-app/**/*.ts",
"projects/docs-app/**/*.html"
]
}
}
}
}
},
"defaultProject": "example-app"
"cli": {
"schematicCollections": [
"@angular-eslint/schematics"
],
"analytics": "a06db211-a04e-4b67-9907-678b2804665f"
},
"schematics": {
"@angular-eslint/schematics:application": {
"setParserOptionsProject": true
},
"@angular-eslint/schematics:library": {
"setParserOptionsProject": true
}
}
}
1 change: 1 addition & 0 deletions doc/.nojekyll
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
TypeDoc added this file to prevent GitHub Pages from using Jekyll. You can turn off this behavior by setting the `githubPages` option to false.
Loading