# Initialize gcloud via CLI
# $ gcloud init

steps:

  # Install node packages for firestore
  - name: 'gcr.io/cloud-builders/npm'
    id: 'Install npm packages for firestore'
    waitFor: ['-']
    entrypoint: 'bash'
    args:
     - '-c'
     - |
       cd firestore && npm install

  # Install node packages for functions
  - name: 'gcr.io/cloud-builders/npm'
    id: 'Install npm packages for functions'
    waitFor: ['-']
    entrypoint: 'bash'
    args:
     - '-c'
     - |
       cd functions && npm install

  # Install node packages for web
  - name: 'gcr.io/cloud-builders/npm'
    id: 'Install npm packages for web'
    waitFor: ['-']
    entrypoint: 'bash'
    args:
     - '-c'
     - |
       cd web && npm install

  # Install node packages for web-ng
  - name: 'gcr.io/cloud-builders/npm'
    id: 'Install npm packages for web-ng' > &install_web_ng
    waitFor: ['-']
    entrypoint: 'bash'
    args:
     - '-c'
     - |
       cd web-ng && npm install

  # Run eslint for web-ng
  - name: 'gcr.io/cloud-builders/npm'
    id: 'Run eslint for web-ng'
    waitFor: ['*install_web_ng']
    entrypoint: 'bash'
    args:
     - '-c'
     - |
       cd web-ng && npm run eslint

# Initialize gcloud via CLI
# $ gcloud init

steps:

  # Install node packages for firestore
  - name: 'gcr.io/cloud-builders/npm'
    id: 'Install npm packages for firestore'
    waitFor: ['-']
    entrypoint: 'bash'
    args:
     - '-c'
     - |
       cd firestore && npm install

  # Install node packages for functions
  - name: 'gcr.io/cloud-builders/npm'
    id: 'Install npm packages for functions'
    waitFor: ['-']
    entrypoint: 'bash'
    args:
     - '-c'
     - |
       cd functions && npm install

  # Install node packages for web
  - name: 'gcr.io/cloud-builders/npm'
    id: 'Install npm packages for web'
    waitFor: ['-']
    entrypoint: 'bash'
    args:
     - '-c'
     - |
       cd web && npm install

  # Install node packages for web-ng
  - name: 'gcr.io/cloud-builders/npm'
    id: 'Install npm packages for web-ng' &install_web_ng
    waitFor: ['-']
    entrypoint: 'bash'
    args:
     - '-c'
     - |
       cd web-ng && npm install

  # Run eslint for web-ng
  - name: 'gcr.io/cloud-builders/npm'
    id: 'Run eslint for web-ng'
    waitFor: [*install_web_ng]
    entrypoint: 'bash'
    args:
     - '-c'
     - |
       cd web-ng && npm run eslint

Fix anchor aliases yaml syntax
Fix anchor aliases yaml syntax
