Skip to content

Commit a2390a0

Browse files
committed
make it compile to angular 13
1 parent 6a5edbb commit a2390a0

28 files changed

+21079
-6858
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
EntityFrameworkCore.Diagrams/EntityFrameworkCore.Diagrams/wwwroot/
2-
EntityFrameworkCore.Diagrams/EntityFrameworkCore.Diagrams.Frontend/dist
2+
EntityFrameworkCore.Diagrams/EntityFrameworkCore.Diagrams.Frontend/dist
3+
EntityFrameworkCore.Diagrams/EntityFrameworkCore.Diagrams.Frontend/.angular

EntityFrameworkCore.Diagrams/EntityFrameworkCore.Diagrams.Frontend/.angular-cli.json

Lines changed: 0 additions & 83 deletions
This file was deleted.
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
{
2+
"version": 1,
3+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
4+
"defaultProject": "efd",
5+
"projects": {
6+
"efd": {
7+
"projectType": "application",
8+
"root": "src",
9+
"sourceRoot": "src",
10+
"architect": {
11+
"build": {
12+
"builder": "@angular-devkit/build-angular:browser",
13+
"configurations": {
14+
"production": {
15+
"browserTarget": "angular8:build:production"
16+
}
17+
},
18+
"options": {
19+
"outputPath": "../EntityFrameworkCore.Diagrams/wwwroot/db-diagrams",
20+
"index": "src/index.html",
21+
"main": "src/main.ts",
22+
"polyfills": "src/polyfills.ts",
23+
"tsConfig": "tsconfig.json",
24+
"i18nMissingTranslation": "error",
25+
"stylePreprocessorOptions": {
26+
"includePaths": [
27+
"app/shared/styles"
28+
]
29+
},
30+
"assets": [
31+
"src/assets",
32+
"src/favicon.ico"
33+
],
34+
"styles": [
35+
"./node_modules/material-design-icons/iconfont/material-icons.css",
36+
"src/styles.scss"
37+
],
38+
"aot": false,
39+
"buildOptimizer": false,
40+
"optimization": {
41+
"scripts": false,
42+
"styles": false
43+
},
44+
"vendorChunk": true,
45+
"extractLicenses": false,
46+
"sourceMap": true,
47+
"namedChunks": true
48+
}
49+
}
50+
},
51+
"prefix": "efd"
52+
}
53+
}
54+
}

EntityFrameworkCore.Diagrams/EntityFrameworkCore.Diagrams.Frontend/git-version.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import fs = require('fs');
2-
import { Observable } from 'rxjs';
1+
import * as fs from 'fs';
2+
import { combineLatest, Observable } from 'rxjs';
33

44

55
const exec = require('child_process').exec;
@@ -26,8 +26,7 @@ const branch = new Observable<string>(s => {
2626
});
2727
});
2828

29-
Observable
30-
.combineLatest(revision, branch)
29+
combineLatest([revision, branch])
3130
.subscribe(([revision, branch]) => {
3231
const fields = [
3332
`version: '${process.env.npm_package_version}'`,
@@ -40,7 +39,7 @@ Observable
4039
console.log(versionsObj);
4140

4241
const content =
43-
`// this file is automatically generated by git-version.ts script
42+
`// this file is automatically generated by git-version.ts script
4443
export const versions = ${versionsObj};
4544
`;
4645

0 commit comments

Comments
 (0)