tools/binary_size/libsupersize/upload_html_viewer.py
def _FirebaseDeploy(project_dir, deploy_mode=PROD):
  """Deploy the project to firebase hosting."""
  if deploy_mode == DEV:
    subprocess.check_call([
        'firebase', '-P', FIREBASE_PROJECT, 'emulators:start', '--only',
        'hosting'
    ],
                          cwd=project_dir)
  elif deploy_mode == STAGING:
    print('Note: deploying to staging requires firebase cli >= 8.12.0')
    subprocess.check_call([
        'firebase', '-P', FIREBASE_PROJECT, 'hosting:channel:deploy', 'staging'
    ],
                          cwd=project_dir)
  else:
    subprocess.check_call(['firebase', 'deploy', '-P', FIREBASE_PROJECT],
                          cwd=project_dir)
Deploy the project to firebase hosting.
Deploy the project to firebase hosting.
Deploy the project to firebase hosting .
def _FirebaseDeploy(project_dir, deploy_mode=PROD):
  if deploy_mode == DEV:
    subprocess.check_call([
        'firebase', '-P', FIREBASE_PROJECT, 'emulators:start', '--only',
        'hosting'
    ],
                          cwd=project_dir)
  elif deploy_mode == STAGING:
    print('Note: deploying to staging requires firebase cli >= 8.12.0')
    subprocess.check_call([
        'firebase', '-P', FIREBASE_PROJECT, 'hosting:channel:deploy', 'staging'
    ],
                          cwd=project_dir)
  else:
    subprocess.check_call(['firebase', 'deploy', '-P', FIREBASE_PROJECT],
                          cwd=project_dir)
def _FirebaseDeploy ( project_dir , deploy_mode = PROD ) : if deploy_mode == DEV : subprocess . check_call ( [ 'firebase' , '-P' , FIREBASE_PROJECT , 'emulators:start' , '--only' , 'hosting' ] , cwd = project_dir ) elif deploy_mode == STAGING : print ( 'Note: deploying to staging requires firebase cli >= 8.12.0' ) subprocess . check_call ( [ 'firebase' , '-P' , FIREBASE_PROJECT , 'hosting:channel:deploy' , 'staging' ] , cwd = project_dir ) else : subprocess . check_call ( [ 'firebase' , 'deploy' , '-P' , FIREBASE_PROJECT ] , cwd = project_dir )
Deploy the project to firebase hosting.
Deploy the project to firebase hosting .
"""Deploy the project to firebase hosting."""
project_dir
deploy_mode