From 48202528ec1323f9056aa69ae62c839752a0ca57 Mon Sep 17 00:00:00 2001 From: Jeronimo Vallelunga Date: Wed, 12 Jul 2017 21:20:14 -0300 Subject: [PATCH] Travis: examples install & build --- .travis.yml | 2 ++ package.json | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 01dbe67..f26c628 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,6 +13,7 @@ addons: - g++-4.8 script: - npm run test + - npm run example:webapp:install - npm run example:webapp:build branches: only: @@ -20,6 +21,7 @@ branches: cache: directories: - node_modules + - example/webapp/node_modules deploy: provider: pages skip_cleanup: true diff --git a/package.json b/package.json index 56d5a85..54a23ab 100644 --- a/package.json +++ b/package.json @@ -12,11 +12,13 @@ "test:watch": "npm test -- --watch", "prepublish": "npm run build", "release": "np", + "example:peripheral:install": "cd example/peripheral && npm install", + "example:peripheral:build": "cd example/peripheral && npm run build", "example:peripheral:start": "cd example/peripheral && npm start", + "example:webapp:install": "cd example/webapp && npm install", "example:webapp:build": "cd example/webapp && npm run build", "example:webapp:deploy": "cd example/webapp && npm run deploy", "example:start": "npm run example:peripheral:start" , - "example:build": "npm run example:webapp:build", "example:deploy": "npm run example:webapp:deploy" }, "babel": {