version: 0.2

phases:
  install:
    runtime-versions:
      nodejs: 10
    commands:
      # - apt update -y
      # - apt install curl -y
      # - curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
      # - apt install nodejs
      - npm install
      - npm install -g gulp
  pre_build:
    commands:
      - echo "Nothing to do in this phase"
  build:
    commands:
      - echo "Build started on `date`"
      - gulp dist
      - echo "Error loading page" > dist/error.html
  post_build:
    commands:
      - echo "Build completed on `date`"

artifacts:
  files:
    - dist/**/*
  discard-paths: yes
version: 0.2

phases:
  install:
    runtime-versions:
      nodejs: 10
    commands:
      # - apt update -y
      # - apt install curl -y
      # - curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
      # - apt install nodejs
      - npm install
      - npm install -g gulp
  pre_build:
    commands:
      - echo "Nothing to do in this phase"
  build:
    commands:
      - echo "Build started on `date`"
      - gulp dist
      - echo "Error loading page" > dist/error.html
  post_build:
    commands:
      - echo "Build completed on `date`"

artifacts:
  files:
    - dist/*
  discard-paths: yes
Remove recursion from the generated artifacts
Remove recursion from the generated artifacts
