Skip to content

Commit

Permalink
Remove unused leaflet libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
TomAdam committed Aug 9, 2023
1 parent da06563 commit 59c962b
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 99 deletions.
41 changes: 2 additions & 39 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,12 @@
"inlineStyleLanguage": "scss",
"assets": [
"src/favicon.ico",
"src/assets",
{
"glob": "*.png",
"input": "node_modules/leaflet/dist/images/",
"output": "assets/leaflet/"
}
"src/assets"
],
"styles": [
"@angular/material/prebuilt-themes/deeppurple-amber.css",
"src/styles.scss",
"node_modules/bootstrap/dist/css/bootstrap.css",
"node_modules/leaflet/dist/leaflet.css"
"node_modules/bootstrap/dist/css/bootstrap.css"
],
"scripts": []
},
Expand Down Expand Up @@ -132,37 +126,6 @@
}
}
}
},
"ngx-leaflet": {
"projectType": "library",
"root": "projects/ngx-leaflet",
"sourceRoot": "projects/ngx-leaflet/src",
"prefix": "lib",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:ng-packagr",
"options": {
"project": "projects/ngx-leaflet/ng-package.json"
},
"configurations": {
"production": {
"tsConfig": "projects/ngx-leaflet/tsconfig.lib.prod.json"
},
"development": {
"tsConfig": "projects/ngx-leaflet/tsconfig.lib.json"
}
},
"defaultConfiguration": "production"
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "projects/ngx-leaflet/src/test.ts",
"tsConfig": "projects/ngx-leaflet/tsconfig.spec.json",
"karmaConfig": "projects/ngx-leaflet/karma.conf.js"
}
}
}
}
},
"cli": {
Expand Down
55 changes: 6 additions & 49 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,9 @@
"@angular/router": "^15.0.0",
"@ctrl/ngx-chartjs": "^4.0.2",
"@ng-select/ng-select": "^10.0.4",
"@runette/ngx-leaflet-locate": "^2.0.6",
"bootstrap": "^4.6.1",
"chart.js": "^2.9.4",
"copyfiles": "^2.4.1",
"leaflet": "1",
"maplibre-gl": "^2.4.0",
"moment": "^2.29.4",
"rxjs": "~7.5.0",
Expand All @@ -40,7 +38,6 @@
"@angular/compiler-cli": "^15.0.0",
"@types/geojson": "^7946.0.10",
"@types/jasmine": "~3.10.0",
"@types/leaflet": "^1.9.3",
"@types/node": "^18.0.0",
"jasmine-core": "~4.0.0",
"karma": "~6.3.0",
Expand Down
3 changes: 0 additions & 3 deletions src/app/modules/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import {NaritComponent} from "../components/ui-components/attributions/narit.com
import {TcanComponent} from "../components/ui-components/attributions/tcan.component";
import {SeenComponent} from "../components/ui-components/attributions/seen.component";
import {UsAQIServices} from "../services/usAQI.services";
import {NgxLeafletLocateModule} from "@runette/ngx-leaflet-locate";
import {NgSelectModule} from "@ng-select/ng-select";
import {agMap4Component} from "../components/ag-map/ag-map4.component";

Expand All @@ -45,7 +44,6 @@ import {agMap4Component} from "../components/ag-map/ag-map4.component";
NaritComponent,
TcanComponent,
SeenComponent

],
imports: [
MaterialModule,
Expand All @@ -60,7 +58,6 @@ import {agMap4Component} from "../components/ag-map/ag-map4.component";
FlexLayoutModule,
ChartjsModule,
RouterModule,
NgxLeafletLocateModule
],
providers: [
ColorsServices,
Expand Down
6 changes: 1 addition & 5 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,7 @@
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"sourceMap": true,
"paths": {
"ngx-leaflet": [
"dist/ngx-leaflet"
]
},
"paths": {},
"declaration": false,
"downlevelIteration": true,
"experimentalDecorators": true,
Expand Down

0 comments on commit 59c962b

Please sign in to comment.