Skip to content

Commit

Permalink
Merge pull request #37 from camptocamp/angular-18-migration
Browse files Browse the repository at this point in the history
Angular 18 migration
  • Loading branch information
lanseg authored Nov 11, 2024
2 parents a7ecfa5 + f0d43b5 commit a3b9667
Show file tree
Hide file tree
Showing 106 changed files with 7,181 additions and 9,720 deletions.
36 changes: 13 additions & 23 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"styles": [
"node_modules/ol/ol.css",
"node_modules/ol-geocoder/dist/ol-geocoder.min.css",
"@angular/material/prebuilt-themes/purple-green.css",
"src/theme.scss",
"src/styles.scss"
],
Expand Down Expand Up @@ -107,57 +108,46 @@
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "front:build"
"buildTarget": "front:build"
},
"configurations": {
"production": {
"browserTarget": "front:build:production"
"buildTarget": "front:build:production"
},
"development": {
"browserTarget": "front:build:development"
"buildTarget": "front:build:development"
},
"de": {
"browserTarget": "front:build:development,de"
"buildTarget": "front:build:development,de"
}
},
"defaultConfiguration": "development"
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "front:build"
"buildTarget": "front:build"
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "src/test.ts",
"polyfills": "src/polyfills.ts",
"polyfills": [
"src/polyfills.ts"
],
"tsConfig": "tsconfig.spec.json",
"karmaConfig": "karma.conf.js",
"assets": [
"src/favicon.ico",
"src/assets"
{
"glob": "**/*",
"input": "public"
}
],
"styles": [
"./node_modules/@angular/material/prebuilt-themes/purple-green.css",
"src/styles.scss"
],
"scripts": []
}
},
"e2e": {
"builder": "@angular-devkit/build-angular:protractor",
"options": {
"protractorConfig": "e2e/protractor.conf.js",
"devServerTarget": "front:serve"
},
"configurations": {
"production": {
"devServerTarget": "front:serve:production"
}
}
},
"lint": {
"builder": "@angular-eslint/builder:lint",
"options": {
Expand Down
32 changes: 0 additions & 32 deletions e2e/protractor.conf.js

This file was deleted.

23 changes: 0 additions & 23 deletions e2e/src/app.e2e-spec.ts

This file was deleted.

11 changes: 0 additions & 11 deletions e2e/src/app.po.ts

This file was deleted.

13 changes: 0 additions & 13 deletions e2e/tsconfig.json

This file was deleted.

23 changes: 23 additions & 0 deletions karma.conf.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
module.exports = function (config) {
config.set({
basePath: '',
frameworks: [
'jasmine',
'@angular-devkit/build-angular'
],
plugins: [
require('karma-jasmine'),
require('karma-firefox-launcher'),
require('@angular-devkit/build-angular/plugins/karma'),
],
client: {
clearContext: false // leave Jasmine Spec Runner output visible in browser
},
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['Firefox'],
singleRun: false
});
};
Loading

0 comments on commit a3b9667

Please sign in to comment.