From b295599059568f03c47d9887297827da36c86a56 Mon Sep 17 00:00:00 2001 From: Paul Schaefer Date: Sun, 17 Feb 2019 14:16:25 -0500 Subject: [PATCH] Added .travis.yml and NPM scripts for #1. --- .travis.yml | 14 ++++++++++++++ package.json | 1 + 2 files changed, 15 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..5d7bcc8 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,14 @@ +language: node_js +node_js: + - 8 +before_script: + - npm install +script: npm run build +deploy: + local-dir: www + provider: pages + skip-cleanup: true + github-token: $GITHUB_TRAVIS_TOKEN # Set in travis-ci.org dashboard, marked secure + keep-history: true + on: + branch: master diff --git a/package.json b/package.json index 212df76..02cc894 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,7 @@ "main": "index.js", "scripts": { "serve": "node index.js; harp server --port $PORT", + "build": "node index.js; harp compile", "test": "echo \"Error: no test specified\" && exit 1" }, "repository": {