Skip to content

Commit

Permalink
chore: update angular to v18
Browse files Browse the repository at this point in the history
  • Loading branch information
donaldxdonald committed Nov 3, 2024
1 parent 3a680d3 commit 664bd61
Show file tree
Hide file tree
Showing 16 changed files with 3,039 additions and 3,304 deletions.
5 changes: 5 additions & 0 deletions .changeset/grumpy-apples-sit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"embla-carousel-angular": major
---

bump the minimum required Angular version to v18
29 changes: 0 additions & 29 deletions .eslintrc.json

This file was deleted.

3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"typescript.tsdk": "node_modules/typescript/lib"
}
19 changes: 12 additions & 7 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"newProjectRoot": "projects",
"cli": {
"packageManager": "pnpm"
},
"projects": {
"embla-carousel-angular-monorepo": {
"projectType": "application",
Expand All @@ -11,12 +14,15 @@
"prefix": "app",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"builder": "@angular-devkit/build-angular:application",
"options": {
"outputPath": "dist/embla-carousel-angular-monorepo",
"outputPath": {
"base": "dist"
},
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
"polyfills": [
"src/polyfills.ts"
],
"tsConfig": "tsconfig.app.json",
"assets": [
"src/favicon.ico",
Expand All @@ -25,7 +31,8 @@
"styles": [
"src/styles.css"
],
"scripts": []
"scripts": [],
"browser": "src/main.ts"
},
"configurations": {
"production": {
Expand All @@ -50,9 +57,7 @@
"outputHashing": "all"
},
"development": {
"buildOptimizer": false,
"optimization": false,
"vendorChunk": true,
"extractLicenses": false,
"sourceMap": true,
"namedChunks": true
Expand Down
13 changes: 13 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { dndxdnd } from '@dndxdnd/eslint-config'

export default dndxdnd(
[
{
rules: {
'@angular-eslint/directive-selector': 'off',
},
},
],
{
angular: true,
})
44 changes: 22 additions & 22 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,42 +16,37 @@
"projects/*"
],
"dependencies": {
"@angular/animations": "^17.3.12",
"@angular/common": "^17.3.12",
"@angular/compiler": "^17.3.12",
"@angular/core": "^17.3.12",
"@angular/forms": "^17.3.12",
"@angular/platform-browser": "^17.3.12",
"@angular/platform-browser-dynamic": "^17.3.12",
"@angular/router": "^17.3.12",
"rxjs": "~7.5.0",
"@angular/animations": "^18.2.10",
"@angular/common": "^18.2.10",
"@angular/compiler": "^18.2.10",
"@angular/core": "^18.2.10",
"@angular/forms": "^18.2.10",
"@angular/platform-browser": "^18.2.10",
"@angular/platform-browser-dynamic": "^18.2.10",
"@angular/router": "^18.2.10",
"embla-carousel-angular": "workspace:*",
"rxjs": "~7.8.1",
"tslib": "^2.3.0",
"zone.js": "~0.14.10"
},
"devDependencies": {
"@angular-devkit/build-angular": "^17.3.11",
"@angular-eslint/builder": "17.5.3",
"@angular-eslint/eslint-plugin": "17.5.3",
"@angular-eslint/eslint-plugin-template": "17.5.3",
"@angular-eslint/schematics": "17.5.3",
"@angular-eslint/template-parser": "17.5.3",
"@angular/cli": "~17.3.11",
"@angular/compiler-cli": "^17.3.12",
"@angular-devkit/build-angular": "^18.2.11",
"@angular/cli": "~18.2.11",
"@angular/compiler-cli": "^18.2.10",
"@changesets/changelog-github": "^0.5.0",
"@changesets/cli": "^2.27.9",
"@dndxdnd/eslint-config": "^1.0.2",
"@dndxdnd/eslint-config": "^2.6.3",
"@types/jasmine": "~4.0.0",
"@typescript-eslint/eslint-plugin": "^7.2.0",
"@typescript-eslint/parser": "^7.2.0",
"eslint": "^8.57.0",
"angular-eslint": "^18.4.0",
"eslint": "^9.14.0",
"jasmine-core": "~4.3.0",
"karma": "~6.4.0",
"karma-chrome-launcher": "~3.1.0",
"karma-coverage": "~2.2.0",
"karma-jasmine": "~5.1.0",
"karma-jasmine-html-reporter": "~2.0.0",
"lint-staged": "^15.2.2",
"ng-packagr": "~17.3.0",
"ng-packagr": "~18.2.1",
"simple-git-hooks": "^2.9.0",
"typescript": "~5.4.5"
},
Expand All @@ -60,5 +55,10 @@
},
"lint-staged": {
"*.ts": "eslint"
},
"pnpm": {
"overrides": {
"eslint-plugin-import": "npm:eslint-plugin-import-x@^4"
}
}
}
Loading

0 comments on commit 664bd61

Please sign in to comment.