# Initialize gcloud via CLI
# $ gcloud init

steps:

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

  # Build productive files
  - name: 'gcr.io/cloud-builders/npm'
    args: [ 'run', 'build', '--prod' ]

# Initialize gcloud via CLI
# $ gcloud init

steps:

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

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

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

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

Install npm packages for each dir
Install npm packages for each dir
