Add dependency cruiser; fix tests

This commit is contained in:
pietervdvn 2021-10-14 20:14:14 +02:00
parent ce884baf6a
commit fea020956a
3 changed files with 1755 additions and 8 deletions

View file

@ -134,7 +134,7 @@ export default class LocationInput extends InputElement<Loc> implements MinimapO
})
}
this.mapBackground = options.mapBackground ?? State.state?.backgroundLayer ?? new UIEventSource(AvailableBaseLayers.osmCarto)
this.mapBackground = options.mapBackground ?? State.state?.backgroundLayer
this.SetClass("block h-full")

1757
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -46,7 +46,8 @@
"deploy:production": "cd ~/git/mapcomplete.github.io/ && git pull && cd - && rm -rf ./assets/generated && npm run prepare-deploy && npm run optimize-images && rm -rf ~/git/mapcomplete.github.io/* && cp -r dist/* ~/git/mapcomplete.github.io/ && cd ~/git/mapcomplete.github.io/ && echo \"mapcomplete.osm.be\" > CNAME && git add * && git commit -m 'New MapComplete Version' && git push && cd - && npm run clean && npm run gittag",
"gittag": "ts-node scripts/printVersion.ts | bash",
"lint": "tslint --project . -c tslint.json '**.ts' ",
"clean": "rm -rf .cache/ && (find *.html | grep -v \"\\(index\\|land\\|test\\|preferences\\|customGenerator\\).html\" | xargs rm) && rm *.webmanifest"
"clean": "rm -rf .cache/ && (find *.html | grep -v \"\\(index\\|land\\|test\\|preferences\\|customGenerator\\).html\" | xargs rm) && rm *.webmanifest",
"generate:dependency-graph": "node_modules/.bin/depcruise --exclude \"^node_modules\" --output-type dot test/TestAll.ts > dependencies.dot && dot dependencies.dot -T svg -o dependencies.svg && rm dependencies.dot"
},
"keywords": [
"OpenStreetMap",
@ -96,6 +97,7 @@
"@babel/polyfill": "^7.10.4",
"@types/node": "^7.0.5",
"assert": "^2.0.0",
"dependency-cruiser": "^10.4.0",
"fs": "0.0.1-security",
"git-json-merge": "^0.4.5",
"marked": "^2.0.0",