Skip to content

Commit

Permalink
Upgrade to Angular 13 (#847)
Browse files Browse the repository at this point in the history
* use npm for ng commands

* angular 12

* remove solution style tsconfig

* migrate to eslint

* upgrade to angular 13

* 4.0.0

* bump library version
  • Loading branch information
DenysVuika committed Apr 14, 2022
1 parent 0058328 commit 31672ae
Show file tree
Hide file tree
Showing 30 changed files with 4,636 additions and 8,874 deletions.
51 changes: 51 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"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/component-selector": [
"error",
{
"prefix": "app",
"style": "kebab-case",
"type": "element"
}
],
"@angular-eslint/directive-selector": [
"error",
{
"prefix": "app",
"style": "camelCase",
"type": "attribute"
}
]
}
},
{
"files": [
"*.html"
],
"extends": [
"plugin:@angular-eslint/template/recommended"
],
"rules": {}
}
]
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
!.vscode/extensions.json

# misc
/.angular/cache
/.sass-cache
/connect.lock
/coverage
Expand Down
58 changes: 34 additions & 24 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"version": 1,
"newProjectRoot": "projects",
"cli": {
"packageManager": "yarn"
"packageManager": "npm",
"defaultCollection": "@angular-eslint/schematics"
},
"projects": {
"app": {
Expand All @@ -16,7 +17,6 @@
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"aot": true,
"outputPath": "dist/app",
"index": "src/index.html",
"main": "src/main.ts",
Expand All @@ -43,7 +43,13 @@
},
"src/styles.css"
],
"scripts": []
"scripts": [],
"vendorChunk": true,
"extractLicenses": false,
"buildOptimizer": false,
"sourceMap": true,
"optimization": false,
"namedChunks": true
},
"configurations": {
"production": {
Expand All @@ -67,7 +73,8 @@
"vendorChunk": false,
"buildOptimizer": true
}
}
},
"defaultConfiguration": ""
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
Expand Down Expand Up @@ -102,10 +109,12 @@
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"builder": "@angular-eslint/builder:lint",
"options": {
"tsConfig": ["src/tsconfig.app.json", "src/tsconfig.spec.json"],
"exclude": ["**/node_modules/**"]
"lintFilePatterns": [
"src/**/*.ts",
"src/**/*.html"
]
}
}
}
Expand Down Expand Up @@ -138,13 +147,12 @@
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"builder": "@angular-eslint/builder:lint",
"options": {
"tsConfig": [
"projects/code-editor/tsconfig.lib.json",
"projects/code-editor/tsconfig.spec.json"
],
"exclude": ["**/node_modules/**"]
"lintFilePatterns": [
"projects/code-editor/**/*.ts",
"projects/code-editor/**/*.html"
]
}
}
}
Expand All @@ -164,7 +172,6 @@
"main": "projects/multiple-editors/src/main.ts",
"polyfills": "projects/multiple-editors/src/polyfills.ts",
"tsConfig": "projects/multiple-editors/tsconfig.app.json",
"aot": true,
"assets": [
"projects/multiple-editors/src/favicon.ico",
"projects/multiple-editors/src/assets",
Expand All @@ -182,7 +189,13 @@
"styles": [
"projects/multiple-editors/src/styles.css"
],
"scripts": []
"scripts": [],
"vendorChunk": true,
"extractLicenses": false,
"buildOptimizer": false,
"sourceMap": true,
"optimization": false,
"namedChunks": true
},
"configurations": {
"production": {
Expand Down Expand Up @@ -212,7 +225,8 @@
}
]
}
}
},
"defaultConfiguration": ""
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
Expand Down Expand Up @@ -243,15 +257,11 @@
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"builder": "@angular-eslint/builder:lint",
"options": {
"tsConfig": [
"projects/multiple-editors/tsconfig.app.json",
"projects/multiple-editors/tsconfig.spec.json",
"projects/multiple-editors/e2e/tsconfig.json"
],
"exclude": [
"**/node_modules/**"
"lintFilePatterns": [
"projects/multiple-editors/**/*.ts",
"projects/multiple-editors/**/*.html"
]
}
}
Expand Down
Loading

0 comments on commit 31672ae

Please sign in to comment.