image: node:latest

stages:
  - build
  - docs

build:
  stage: build
  script:
    - yarn install
    - yarn test
    - yarn build || echo "Unable to build!"
    
pages:
  stage: docs
  script:
    - yarn typedoc 
    - mv docs public
  artifacts:
    paths:
      - public
  only: 
    - master
