JakeCobley
2/28/2018 - 5:38 PM

Nuxt.js Travis-CI (Google Firebase hosting)

Travis-CI config for deploying Nuxt.js, as a static site (nuxt generate), to Google Firebase. Notifies Slack with success or failure.

language: node_js
node_js:
  - "lts/*"

cache:
  directories:
    - "node_modules"

script:
  - npm run lint
  - npm run generate

after_success:
  - test $TRAVIS_BRANCH = "master" &&
    firebase deploy --token $FIREBASE_TOKEN --non-interactive

notifications:
  slack: $SLACK_TOKEN