Skip to content

Commit

Permalink
build: bump angualr to 15 (#118)
Browse files Browse the repository at this point in the history
  • Loading branch information
cipchk authored Jan 2, 2023
1 parent 9ccfad3 commit e7e49b2
Show file tree
Hide file tree
Showing 10 changed files with 50 additions and 138 deletions.
17 changes: 0 additions & 17 deletions .browserslistrc

This file was deleted.

15 changes: 12 additions & 3 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@
"outputPath": "dist",
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
"polyfills": [
"zone.js"
],
"tsConfig": "tsconfig.app.json",
"assets": [
"src/favicon.ico",
Expand Down Expand Up @@ -82,9 +84,16 @@
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "lib/test.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "tsconfig.spec.json",
"karmaConfig": "karma.conf.js"
"karmaConfig": "karma.conf.js",
"polyfills": [
"zone.js",
"zone.js/testing"
],
"include": [
"../lib/test.ts",
"../lib/**/*.spec.ts"
]
}
},
"lint": {
Expand Down
2 changes: 1 addition & 1 deletion lib/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ngx-countdown",
"version": "14.0.0",
"version": "15.0.0",
"description": "Simple, easy and performance countdown for angular",
"keywords": [
"ngx-countdown",
Expand Down
19 changes: 0 additions & 19 deletions lib/test.ts
Original file line number Diff line number Diff line change
@@ -1,23 +1,4 @@
// This file is required by karma.conf.js and loads recursively all the .spec and framework files

import 'zone.js/testing';
import { getTestBed } from '@angular/core/testing';
import { BrowserDynamicTestingModule, platformBrowserDynamicTesting } from '@angular/platform-browser-dynamic/testing';

declare const require: {
context(
path: string,
deep?: boolean,
filter?: RegExp,
): {
keys(): string[];
<T>(id: string): T;
};
};

// First, initialize the Angular testing environment.
getTestBed().initTestEnvironment(BrowserDynamicTestingModule, platformBrowserDynamicTesting());
// Then we find all the tests.
const context = require.context('./', true, /\.spec\.ts$/);
// And load the modules.
context.keys().map(context);
62 changes: 31 additions & 31 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ngx-countdown",
"version": "14.0.0",
"version": "15.0.0",
"description": "Simple, easy and performance countdown for angular",
"keywords": [
"ngx-countdown",
Expand Down Expand Up @@ -30,42 +30,42 @@
"release": "npm run build && cd publish && npm publish --access public"
},
"dependencies": {
"@angular/animations": "^14.0.0",
"@angular/common": "^14.0.0",
"@angular/compiler": "^14.0.0",
"@angular/core": "^14.0.0",
"@angular/forms": "^14.0.0",
"@angular/platform-browser": "^14.0.0",
"@angular/platform-browser-dynamic": "^14.0.0",
"@angular/router": "^14.0.0",
"@angular/animations": "^15.0.0",
"@angular/common": "^15.0.0",
"@angular/compiler": "^15.0.0",
"@angular/core": "^15.0.0",
"@angular/forms": "^15.0.0",
"@angular/platform-browser": "^15.0.0",
"@angular/platform-browser-dynamic": "^15.0.0",
"@angular/router": "^15.0.0",
"rxjs": "~7.5.0",
"tslib": "^2.3.0",
"zone.js": "~0.11.4",
"bootstrap": "^5.1.3",
"ngx-highlight-js": "^14.0.0",
"date-fns": "^2.28.0"
"zone.js": "~0.12.0",
"bootstrap": "^5.2.3",
"ngx-highlight-js": "^15.0.0",
"date-fns": "^2.29.0"
},
"devDependencies": {
"@angular-devkit/build-angular": "^14.0.3",
"@angular/cli": "~14.0.3",
"@angular/compiler-cli": "^14.0.0",
"@types/jasmine": "~4.0.0",
"jasmine-core": "~4.1.0",
"karma": "~6.3.0",
"karma-chrome-launcher": "~3.1.1",
"@angular-devkit/build-angular": "^15.0.4",
"@angular/cli": "~15.0.4",
"@angular/compiler-cli": "^15.0.0",
"@types/jasmine": "~4.3.0",
"jasmine-core": "~4.5.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": "~1.7.0",
"typescript": "~4.7.4",
"@angular-eslint/builder": "^14.0.0",
"@angular-eslint/eslint-plugin": "^14.0.0",
"@angular-eslint/eslint-plugin-template": "^14.0.0",
"@angular-eslint/schematics": "^14.0.0",
"@angular-eslint/template-parser": "^14.0.0",
"@typescript-eslint/eslint-plugin": "^5.29.0",
"@typescript-eslint/parser": "^5.29.0",
"karma-jasmine-html-reporter": "~2.0.0",
"typescript": "~4.8.2",
"@angular-eslint/builder": "^15.1.0",
"@angular-eslint/eslint-plugin": "^15.1.0",
"@angular-eslint/eslint-plugin-template": "^15.1.0",
"@angular-eslint/schematics": "^15.1.0",
"@angular-eslint/template-parser": "^15.1.0",
"@typescript-eslint/eslint-plugin": "^5.47.1",
"@typescript-eslint/parser": "^5.47.1",
"codecov": "^3.8.3",
"eslint": "^8.18.0",
"ng-packagr": "^14.0.2"
"eslint": "^8.31.0",
"ng-packagr": "^15.0.3"
}
}
2 changes: 1 addition & 1 deletion src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export function countdownConfigFactory(): CountdownConfig {
component: TestComponent,
},
],
{ useHash: true, relativeLinkResolution: 'legacy' },
{ useHash: true },
),
CountdownModule,
],
Expand Down
62 changes: 0 additions & 62 deletions src/polyfills.ts

This file was deleted.

2 changes: 1 addition & 1 deletion tsconfig.app.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
"outDir": "./out-tsc/app",
"types": []
},
"files": ["src/main.ts", "src/polyfills.ts"],
"files": ["src/main.ts"],
"include": ["src/**/*.d.ts"]
}
5 changes: 3 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,16 @@
"experimentalDecorators": true,
"moduleResolution": "node",
"importHelpers": true,
"target": "es2020",
"target": "ES2022",
"module": "es2020",
"lib": [
"es2020",
"dom"
],
"paths": {
"ngx-countdown": ["lib/src/index"]
}
},
"useDefineForClassFields": false
},
"angularCompilerOptions": {
"enableI18nLegacyMessageIdFormat": false,
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
"outDir": "./out-tsc/spec",
"types": ["jasmine"]
},
"files": ["lib/test.ts", "src/polyfills.ts"],
"files": ["lib/test.ts"],
"include": ["lib/**/*.spec.ts", "lib/**/*.d.ts"]
}

0 comments on commit e7e49b2

Please sign in to comment.