firebaseDeployTargets function

List<String> firebaseDeployTargets({
  1. required bool firestore,
  2. required bool functions,
  3. required bool storage,
  4. required bool dataconnect,
  5. required bool hosting,
  6. required bool hostingGithubActions,
})

Returns Firebase CLI deploy targets enabled for the current flavor.

Hosting deployed by GitHub Actions is excluded from the local deploy.

Implementation

List<String> firebaseDeployTargets({
  required bool firestore,
  required bool functions,
  required bool storage,
  required bool dataconnect,
  required bool hosting,
  required bool hostingGithubActions,
}) =>
    [
      if (firestore) "firestore",
      if (functions) "functions",
      if (storage) "storage",
      if (dataconnect) "dataconnect",
      if (hosting && !hostingGithubActions) "hosting",
    ];