image: digitallyseamless/nodejs-bower-grunt

stages:
  - build
  - deploy

before_script:
    - npm install --global npm@latest
    - npm install --global yo
    - npm install -g grunt-cli
    - npm install -g generator-reveal
    - npm install -g bower
    - npm install

cache:
  paths:
    - node_modules/
    - bower_components/

pages:
  stage: deploy
  only:
    - gitlab-pages
  script:
    - grunt dist
    - ls
    - ls dist
    - mv dist public
  artifacts:
    paths:
      - public