Skip to content

Commit

Permalink
Update @angular to 14.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
inpercima committed Jul 27, 2022
1 parent a69c683 commit 0cacd14
Show file tree
Hide file tree
Showing 10 changed files with 1,868 additions and 2,237 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

environment.dev.ts

# environment.prod.ts is not listed here b/c this file is needed for automated build

# ignore all in '.vscode' b/c some vsc config files contain user specific content
.vscode/*

Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@ Coronavirus (COVID-19) cases in Germany, Saxony and Leipzig.

This app is online under [covid-19.inpercima.net](http://covid-19.inpercima.net).

This project was generated with [swaaplate](https://github.com/inpercima/swaaplate) version 2.3.1.
This project was generated with [swaaplate](https://github.com/inpercima/swaaplate) version 2.3.7.

## Prerequisites

### Angular CLI

* `angular-cli 14.0.0` or higher
* `angular-cli 14.1.0` or higher

### Node, npm or yarn

* `node 16.13.0` or higher in combination with
* `npm 8.12.1` or higher or
* `yarn 1.22.17` or higher, used in this repository
* `node 16.16.0` or higher in combination with
* `npm 8.12.2` or higher or
* `yarn 1.22.19` or higher, used in this repository

## Getting started

Expand Down
11 changes: 4 additions & 7 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,15 @@
"version": 1,
"cli": {
"packageManager": "yarn",
"defaultCollection": "@angular-eslint/schematics"
"schematicCollections": [
"@angular-eslint/schematics"
]
},
"newProjectRoot": "projects",
"projects": {
"covid-19": {
"projectType": "application",
"schematics": {
"@schematics/angular:application": {
"strict": true
}
},
"schematics": {},
"root": "",
"sourceRoot": "src",
"prefix": "covid",
Expand All @@ -27,7 +25,6 @@
"polyfills": "src/polyfills.ts",
"tsConfig": "tsconfig.app.json",
"assets": [
"src/.htaccess",
"src/favicon.ico",
"src/assets"
],
Expand Down
5 changes: 3 additions & 2 deletions cypress/fixtures/example.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"name": "Using fixtures to represent data",
"email": "[email protected]"
"name": "Using fixtures to represent data",
"email": "[email protected]"
}

69 changes: 34 additions & 35 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,60 +7,59 @@
}
],
"dependencies": {
"@angular/animations": "14.0.0",
"@angular/cdk": "14.0.0",
"@angular/common": "14.0.0",
"@angular/compiler": "14.0.0",
"@angular/core": "14.0.0",
"@angular/flex-layout": "13.0.0-beta.38",
"@angular/forms": "14.0.0",
"@angular/material": "14.0.0",
"@angular/platform-browser": "14.0.0",
"@angular/platform-browser-dynamic": "14.0.0",
"chart.js": "3.8.0",
"ng2-charts": "3.0.11",
"rxjs": "7.5.5",
"@angular/animations": "14.1.0",
"@angular/cdk": "14.1.0",
"@angular/common": "14.1.0",
"@angular/compiler": "14.1.0",
"@angular/core": "14.1.0",
"@angular/flex-layout": "14.0.0-beta.40",
"@angular/forms": "14.1.0",
"@angular/material": "14.1.0",
"@angular/platform-browser": "14.1.0",
"@angular/platform-browser-dynamic": "14.1.0",
"chart.js": "3.8.2",
"ng2-charts": "4.0.0",
"rxjs": "7.5.6",
"tslib": "2.4.0",
"zone.js": "0.11.5"
"zone.js": "0.11.7"
},
"description": "Coronavirus (COVID-19) cases in Germany, Saxony and Leipzig.",
"devDependencies": {
"@angular-devkit/build-angular": "14.0.0",
"@angular-eslint/builder": "13.2.1",
"@angular-eslint/eslint-plugin": "13.2.1",
"@angular-eslint/eslint-plugin-template": "13.2.1",
"@angular-eslint/schematics": "13.2.0",
"@angular-eslint/template-parser": "13.2.0",
"@angular/cli": "13.3.2",
"@angular/compiler-cli": "14.0.0",
"@angular-devkit/build-angular": "14.1.0",
"@angular-eslint/builder": "14.0.2",
"@angular-eslint/eslint-plugin": "14.0.2",
"@angular-eslint/eslint-plugin-template": "14.0.2",
"@angular-eslint/schematics": "14.0.2",
"@angular-eslint/template-parser": "14.0.2",
"@angular/cli": "14.1.0",
"@angular/compiler-cli": "14.1.0",
"@cypress/schematic": "2.0.0",
"@types/jasmine": "4.0.3",
"@types/node": "17.0.23",
"@typescript-eslint/eslint-plugin": "5.27.1",
"@typescript-eslint/parser": "5.27.1",
"cypress": "10.0.3",
"eslint": "8.17.0",
"jasmine-core": "4.1.1",
"karma": "6.3.20",
"@typescript-eslint/eslint-plugin": "5.31.0",
"@typescript-eslint/parser": "5.31.0",
"cypress": "latest",
"eslint": "8.20.0",
"jasmine-core": "4.3.0",
"karma": "6.4.0",
"karma-chrome-launcher": "3.1.1",
"karma-coverage": "2.2.0",
"karma-jasmine": "5.0.1",
"karma-jasmine": "5.1.0",
"karma-jasmine-html-reporter": "2.0.0",
"typescript": "4.7.3"
"typescript": "4.7.4"
},
"engines": {
"node": ">=16.13.0"
"node": ">=16.16.0"
},
"homepage": "https://inpercima.github.io/covid-19/",
"license": "MIT",
"name": "covid-19",
"private": true,
"repository": "https://github.com/inpercima/covid-19/",
"scripts": {
"build:dev": "export NODE_ENV='dev' && ng lint && ng build --configuration=development",
"build:dev": "ng lint && ng build --configuration=development",
"serve:dev": "ng serve -o --configuration=development",
"watch:dev": "export NODE_ENV='dev' && ng build --watch --configuration=development",
"build:prod": "export NODE_ENV='prod' && ng lint && ng build"
"watch:dev": "ng build --watch --configuration=development",
"build:prod": "ng lint && ng build"
},
"version": "1.0.0-SNAPSHOT"
}
2 changes: 0 additions & 2 deletions src/app/features/dashboard/dashboard.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ describe('DashboardComponent', () => {
],
})
.compileComponents();
});

beforeEach(() => {
fixture = TestBed.createComponent(DashboardComponent);
component = fixture.componentInstance;
fixture.detectChanges();
Expand Down
9 changes: 4 additions & 5 deletions src/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,18 @@ import {

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

// First, initialize the Angular testing environment.
getTestBed().initTestEnvironment(
BrowserDynamicTestingModule,
platformBrowserDynamicTesting(), {
teardown: { destroyAfterEach: false }
}
platformBrowserDynamicTesting(),
);

// Then we find all the tests.
const context = require.context('./', true, /\.spec\.ts$/);
// And load the modules.
context.keys().map(context);
context.keys().forEach(context);
Empty file modified swaaplate.json
100755 → 100644
Empty file.
5 changes: 4 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,8 @@
"strictInjectionParameters": true,
"strictInputAccessModifiers": true,
"strictTemplates": true
}
},
"include": [
"src/**/*"
]
}
Loading

0 comments on commit 0cacd14

Please sign in to comment.