flutterfire_cli
flutterfire_cli copied to clipboard
chore: format generated firebase.json for readability
Description
Running flutterfire configure generates a firebase.json like
{"firestore":{"database":"(default)","location":"nam5","rules":"firestore.rules","indexes":"firestore.indexes.json"},"flutter":{"platforms":{"dart":{"lib/firebase_options.dart":{"projectId":"PROJECT_ID","configurations":{"web":"APP_ID"}}}}}}
Add formatting to the generated firebase.json output when running flutterfire configure.
{
"firestore": {
"database": "(default)",
"location": "nam5",
"rules": "firestore.rules",
"indexes": "firestore.indexes.json"
},
"flutter": {
"platforms": {
"dart": {
"lib/firebase_options.dart": {
"projectId": "PROJECT_ID",
"configurations": {
"web": "APP_ID"
}
}
}
}
}
}
Type of Change
- [ ] โจ
feat-- New feature (non-breaking change which adds functionality) - [ ] ๐ ๏ธ
fix-- Bug fix (non-breaking change which fixes an issue) - [ ] โ
!-- Breaking change (fix or feature that would cause existing functionality to change) - [ ] ๐งน
refactor-- Code refactor - [ ] โ
ci-- Build configuration change - [ ] ๐
docs-- Documentation - [X] ๐๏ธ
chore-- Chore
note: it doesn't seem like writeFirebaseJsonFile is used anywhere, but updating it anyway. in case we'd prefer this to be removed, just let me know