Skip to content

Commit

Permalink
feat: upgrade to angular 15 (#93)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: angular 15 or higher is now required to use this package
  • Loading branch information
tzetter authored Apr 25, 2023
1 parent 4b13e0c commit d93a440
Show file tree
Hide file tree
Showing 27 changed files with 13,894 additions and 16,555 deletions.
12 changes: 0 additions & 12 deletions .browserslistrc

This file was deleted.

40 changes: 40 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"root": true,
"ignorePatterns": ["projects/**/*"],
"overrides": [
{
"files": ["*.ts"],
"parserOptions": {
"project": ["tsconfig.json"],
"createDefaultProgram": true
},
"extends": [
"plugin:@angular-eslint/recommended",
"plugin:@angular-eslint/template/process-inline-templates"
],
"rules": {
"@angular-eslint/component-selector": [
"error",
{
"prefix": "mwl",
"style": "kebab-case",
"type": "element"
}
],
"@angular-eslint/directive-selector": [
"error",
{
"prefix": "mwl",
"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 @@ -32,6 +32,7 @@ speed-measure-plugin*.json
.history/*

# misc
/.angular/cache
/.sass-cache
/connect.lock
/coverage
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ https://mattlewis92.github.io/angular-confirmation-popover/

## About

A simple angular 10.0+ directive to display a bootstrap styled confirmation popover when an element is clicked.
A simple angular 15.0+ directive to display a bootstrap styled confirmation popover when an element is clicked.

[AngularJS 1.x version](https://github.com/mattlewis92/angular-bootstrap-confirm)

Expand Down
38 changes: 19 additions & 19 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,15 @@
"main": "projects/demo/main.ts",
"polyfills": "projects/demo/polyfills.ts",
"tsConfig": "tsconfig.app.json",
"aot": true,
"assets": ["projects/demo/favicon.ico", "projects/demo/assets"],
"styles": ["projects/demo/styles.scss"],
"scripts": []
"scripts": [],
"vendorChunk": true,
"extractLicenses": false,
"buildOptimizer": false,
"sourceMap": true,
"optimization": false,
"namedChunks": true
},
"configurations": {
"production": {
Expand All @@ -38,7 +43,6 @@
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"extractLicenses": true,
"vendorChunk": false,
Expand All @@ -56,7 +60,8 @@
}
]
}
}
},
"defaultConfiguration": ""
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
Expand All @@ -69,13 +74,6 @@
}
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": ["tsconfig.app.json", "tsconfig.spec.json"],
"exclude": ["**/node_modules/**"]
}
},
"deploy": {
"builder": "angular-cli-ghpages:deploy",
"options": {
Expand All @@ -92,7 +90,7 @@
"prefix": "lib",
"architect": {
"build": {
"builder": "@angular-devkit/build-ng-packagr:build",
"builder": "@angular-devkit/build-angular:ng-packagr",
"options": {
"tsConfig": "projects/angular-confirmation-popover/tsconfig.lib.json",
"project": "projects/angular-confirmation-popover/ng-package.json"
Expand All @@ -112,17 +110,19 @@
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"builder": "@angular-eslint/builder:lint",
"options": {
"tsConfig": [
"projects/angular-confirmation-popover/tsconfig.lib.json",
"projects/angular-confirmation-popover/tsconfig.spec.json"
],
"exclude": ["**/node_modules/**"]
"lintFilePatterns": [
"projects/angular-confirmation-popover/**/*.ts",
"projects/angular-confirmation-popover/**/*.html"
]
}
}
}
}
},
"defaultProject": "demo"
"cli": {
"analytics": false,
"schematicCollections": ["@angular-eslint/schematics"]
}
}
Loading

0 comments on commit d93a440

Please sign in to comment.