Skip to content

Commit

Permalink
Fix Angular 15
Browse files Browse the repository at this point in the history
  • Loading branch information
bansan85 committed Dec 25, 2022
1 parent 185fd93 commit 922c851
Show file tree
Hide file tree
Showing 13 changed files with 15 additions and 172 deletions.
14 changes: 8 additions & 6 deletions src/angular/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "projects/toolbox/src/test.ts",
"polyfills": ["zone.js", "zone.js/testing"],
"tsConfig": "projects/toolbox/tsconfig.spec.json",
"karmaConfig": "projects/toolbox/karma.conf.js"
}
Expand Down Expand Up @@ -58,7 +58,7 @@
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "projects/jessica/src/test.ts",
"polyfills": ["zone.js", "zone.js/testing"],
"tsConfig": "projects/jessica/tsconfig.spec.json",
"karmaConfig": "projects/jessica/karma.conf.js"
}
Expand All @@ -82,7 +82,7 @@
"outputPath": "projects/app-main/dist",
"index": "projects/app-main/src/index.html",
"main": "projects/app-main/src/main.ts",
"polyfills": "projects/app-main/src/polyfills.ts",
"polyfills": "zone.js",
"tsConfig": "projects/app-main/tsconfig.app.json",
"assets": [
"projects/app-main/src/favicon.ico",
Expand Down Expand Up @@ -151,8 +151,7 @@
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "projects/app-main/src/test.ts",
"polyfills": "projects/app-main/src/polyfills.ts",
"polyfills": ["zone.js", "zone.js/testing"],
"tsConfig": "projects/app-main/tsconfig.spec.json",
"karmaConfig": "projects/app-main/karma.conf.js",
"assets": [
Expand All @@ -166,5 +165,8 @@
}
}
},
"defaultProject": "app-main"
"defaultProject": "app-main",
"cli": {
"analytics": "4153d04a-e76f-4106-aef5-5479d2538134"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { FormBuilder, FormGroup } from '@angular/forms';
styleUrls: ['./main.component.css']
})
export class MainComponent {
result!: MeyerhofResult;
result!: MeyerhofResult | undefined;
form: FormGroup;
private _lang?: string;

Expand Down
66 changes: 0 additions & 66 deletions src/angular/projects/app-main/src/polyfills.ts

This file was deleted.

30 changes: 0 additions & 30 deletions src/angular/projects/app-main/src/test.ts

This file was deleted.

2 changes: 1 addition & 1 deletion src/angular/projects/app-main/tsconfig.app.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"toolbox": ["./projects/toolbox/dist"]
}
},
"files": ["src/main.ts", "src/polyfills.ts"],
"files": ["src/main.ts"],
"include": [
"src/**/*.d.ts",
"./projects/app-main/node_modules/@angular/common/locales/*.d.ts",
Expand Down
1 change: 0 additions & 1 deletion src/angular/projects/app-main/tsconfig.spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,5 @@
"toolbox": ["./projects/toolbox/dist"]
}
},
"files": ["src/test.ts", "src/polyfills.ts"],
"include": ["src/**/*.spec.ts", "src/**/*.d.ts"]
}
31 changes: 0 additions & 31 deletions src/angular/projects/jessica/src/test.ts

This file was deleted.

2 changes: 1 addition & 1 deletion src/angular/projects/jessica/tsconfig.lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
},
"esModuleInterop": true
},
"exclude": ["src/test.ts", "**/*.spec.ts"]
"exclude": ["**/*.spec.ts"]
}
2 changes: 1 addition & 1 deletion src/angular/projects/jessica/tsconfig.spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
},
"esModuleInterop": true
},
"files": ["src/test.ts"],
"files": [],
"include": ["**/*.spec.ts", "**/*.d.ts"]
}
31 changes: 0 additions & 31 deletions src/angular/projects/toolbox/src/test.ts

This file was deleted.

2 changes: 1 addition & 1 deletion src/angular/projects/toolbox/tsconfig.lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
"inlineSources": true,
"types": []
},
"exclude": ["src/test.ts", "**/*.spec.ts"]
"exclude": ["**/*.spec.ts"]
}
2 changes: 1 addition & 1 deletion src/angular/projects/toolbox/tsconfig.spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
]
}
},
"files": ["src/test.ts"],
"files": [],
"include": ["**/*.spec.ts", "**/*.d.ts"]
}
2 changes: 1 addition & 1 deletion src/javascript/wasm/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ add_custom_target(
sed -i
"s#[\\'\\\"]jessica-web.wasm[\\'\\\"]#\\'assets/jessica-web.wasm\\'#g"
"${CMAKE_CURRENT_BINARY_DIR}/jessica-web.js"
COMMAND sed -i "s#var jessica#export var jessica#g"
COMMAND sed -i "s#^var jessica#export var jessica#g"
"${CMAKE_CURRENT_BINARY_DIR}/jessica-web.js"
COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_BINARY_DIR}/jessica-web.*"
"${CMAKE_SOURCE_DIR}/src/angular/projects/jessica/src/assets/")
Expand Down

0 comments on commit 922c851

Please sign in to comment.